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 - pypi page
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 -m compile_markdown -pve manuscript_v1 --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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c3b67a7f2c7e04cba41d4f7cb70301f575e6181c2ac36320fcf5f15cc5e0aaa |
|
MD5 | 4ce2d08296dd87cb03cf06dab396ed96 |
|
BLAKE2b-256 | 042f7f09bc2932d36b77c78f4122dce58acc1de07f9e5e478678e4ee50a7b204 |
Close
Hashes for markdown_manuscript_filters-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7903ff846d0a65c304951d7b4ca615422a86f3dd79f5cce87d47d3455ef300 |
|
MD5 | 5ab4817aff1508bccf7e043f48cc80c1 |
|
BLAKE2b-256 | 1437bbcb508bdfda2d219d3fcd084dd3bd3fcc486087793312b77ddcdf8fca1d |