Skip to content

conanfanli/rendermd

Repository files navigation

Table of Contents

renderme

Render markdown templates by injecting table of contents and shell command output.

Installation

pip install renderme

Usage

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

Examples:

  • [//]: # (start:toc) and [//]: # (end) will produce table of contents.
  • [//]: # (start:shellecho abc) and [//] # (end) will produce abc (the output of the shell command echo abc.
  • More examples can be found in test_toc_generator.py and test_shell_generator.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published