markdown_include
This is a simple Python script that processes Markdown files by including the contents of other Markdown files.
The script takes in a Markdown file as input, looks for lines that are similar to <!-- include (file.md) --> (Parentheses are necessary to identify the path) and treats them as include directives. For each include directive, the script reads the specified file and writes its contents to the output file. The result is a new Markdown file that includes the contents of all included files.
Installation
pip install md-incl
The md_incl command will be added to the $PATH after installation.
Usage
-
put filenames of directives in the format of
<!-- include (file.md) -->in your main markdown file -
simply pass the input file name and the output file name as command-line arguments. The script will process the input file, generate the output file, and exit. Here's an example of how to run the script:
md_incl input_file.md output_file.md
It could be used in some building system like Makefile, which allows for the automatic assembly of large and complex reports and papers.
Requirements
>Python 3.8- A text editor to modify the input and included files
Contributions
If you'd like to contribute to the development of this script, feel free to fork the repository and submit a pull request. I'll be happy to review your changes and merge them into the main codebase.
License
This script is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for md-incl 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| md_incl-0.0.4.tar.gz | 3.7 kB | Without provenance | Details for md_incl-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| md_incl-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for md_incl-0.0.4-py3-none-any.whl |
Total release size: 8.0 kB
Release files / md_incl-0.0.4.tar.gz
| Download URL | md_incl-0.0.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58d382ccb240171328b2082d1bfd243679cca431c6b1e50b7f33e80c2baa5452
|
|
BLAKE2b-256 checksum How to use checksums |
fdc17dc8d56f9ffbf447e3c2f13f10d26ad88dbf67440ae431ae73f6fc9d3a80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / md_incl-0.0.4-py3-none-any.whl
| Download URL | md_incl-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f86ae878ddc9910f7f7fb4c9cff179e3847e187f33fa4079b72bb57f71fb96fe
|
|
BLAKE2b-256 checksum How to use checksums |
88f7d1b4baab48f10a1f5331de9905d45cfb320a2b16e7fd7bf47b365535b153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for md-incl 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.