@kayvan/markdown-tree-parser

Parse and manipulate markdown files as tree structures from CLI.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

A powerful JavaScript library and CLI tool for parsing and manipulating markdown files as tree structures using the remark/unified ecosystem

Commands

markdown-tree-parser

Examples

convert markdown file to tree structure$ markdown-tree-parser input.md
extract all headings from markdown file$ markdown-tree-parser input.md --filter heading
save markdown tree output to JSON file$ markdown-tree-parser input.md --output tree.json
parse markdown and pretty print the tree$ markdown-tree-parser input.md --format pretty
get depth of markdown document structure$ markdown-tree-parser input.md --depth