@kayvan/markdown-tree-parser

Parse and manipulate markdown files as tree structures

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

Parse a markdown file and output its tree structure$ markdown-tree-parser parse document.md
Extract specific heading levels from a markdown file$ markdown-tree-parser extract --level 2 document.md
Transform markdown file structure and output to new file$ markdown-tree-parser transform input.md --output output.md