Render markdown templates by injecting table of contents and shell command output.
pip install renderme
usage: rendermd [-h] [-p PATTERNS] [--no-recursive]
Render markdown templates. This command recursively search the current
directly and find all markdown files by matching given patterns (default to
"**/README.md").
optional arguments:
-h, --help show this help message and exit
-p PATTERNS, --pattern PATTERNS
Comma separated list of markdown files to populate
--no-recursive Do not search for files recursively
[//]: # (start:toc)
and[//]: # (end)
will produce table of contents.[//]: # (start:shell
echo abc)
and[//] # (end)
will produceabc
(the output of the shell commandecho abc
.- More examples can be found in test_toc_generator.py and test_shell_generator.py