CLI#
HumanMark includes an optional command line interface (CLI) which includes useful commands for debugging. To install the optional dependencies:
pip install "humanmark[cli]"
humanmark#
Utilities for working with markdown.
humanmark [OPTIONS] COMMAND [ARGS]...
Options
- --backend <backend>#
Specify the backend used to parse markdown.
- Options
markdown_it
- --renderer <renderer>#
Specify the renderer used to render the AST.
- Options
json | markdown | txt
render#
Parse and render source.
humanmark render [OPTIONS] SOURCE
Arguments
- SOURCE#
Required argument
tree#
Pretty-print a visual representation of a parsed markdown file’s AST (abstract syntax tree).
humanmark tree [OPTIONS] SOURCE
Arguments
- SOURCE#
Required argument