python scripts and panflute filters for producing technical documents from markdown
Project description
Markdown Manuscript Filters
Intended to work with:
- a markdown preview plugin for Atom or VSCode
- an intallation of LaTeX + pandoc
- markdown-manuscript-template
Installation
locally, from git repo:
pip install -e .
🚧
from PyPi
pip install markdown-manuscript-filters
Usage
usage: compile_markdown.py [-h] [--dir DIR] [--aux AUX] [--out OUT] [-p] [-v] [-e] src_file
Converts markdown with @import statements to all-in-one markdown file
- then filters out common annotation
- then converts to pdf with pandoc
positional arguments:
src_file source markdown file (with @imports)
optional arguments:
-h, --help show this help message and exit
--dir DIR starting directory
--aux AUX directory for auxiliary files
--out OUT directory for outputs (i.e. pdf)
-p open (p)df after successful compile
-v (v)erbose
-e halt (e)xecution if a step errors
for example:
python markdown_manuscript_filters/compile_markdown.py -pve manuscript_v1 --dir tests/ --aux publish/aux/ --out publish/output
↪example terminal output
.. compiling @imports ..
importing: 1_introduction.md
importing: 2_methods.md
importing: 3_results.md
writing compiled file to : tests/publish/aux/mv1_out.md
.. re-adding yaml ..
.. re-adding yaml, again ..
.. undoing line wrap ..
☼☼ PDF export complete ☼☼
☼☼ available at tests/publish/output/manuscript_v1.pdf ☼☼
Image Attribution:
By johnny_automatic - Open Clip Art Library image's page, CC0, https://commons.wikimedia.org/w/index.php?curid=11066062
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for markdown-manuscript-filters-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c8c8a3393b23abaeaed0e2c16918afd18bab627a7e41f916286bbd67bc4f34d |
|
MD5 | 9a5b1906d83ddfdcbef8db60456ae906 |
|
BLAKE2b-256 | 3396b8a514b70459b517eb6199babd4a48766bef790179c3765e831a66041d1d |
Close
Hashes for markdown_manuscript_filters-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7738bd3f6b32c3551a0537d3e7a75902b12b57c564f2994fc1b8ecbb78371c |
|
MD5 | a04d85579453193f3c217527f84896f9 |
|
BLAKE2b-256 | 28b23412e1cc9fd60137c780edbe505f2c1daee4c58c7e927cde443fddce9b4d |