Options (3)
-l, --listbooleanList all headings in a markdown file
Example:
treemd {{[-l|--list]}} {{path/to/file.md}}-s, --sectionbooleanExtract a specific section by heading name
Example:
treemd {{[-s|--section]}} {{heading_name}} {{path/to/file.md}}-q, --querybooleanQuery and extract markdown structure using the treemd query language
Example:
treemd {{[-q|--query]}} '{{.h2 | text}}' {{path/to/file.md}}Examples (6)
Open a markdown file in interactive TUI mode
treemd path/to/file.mdList all headings in a markdown file
treemd [-l|--list] path/to/file.mdShow the heading tree structure of a markdown file
treemd --tree path/to/file.mdExtract a specific section by heading name
treemd [-s|--section] heading_name path/to/file.mdFilter headings by a specific pattern
treemd [-l|--list] --filter pattern path/to/file.mdQuery and extract markdown structure using the treemd query language
treemd [-q|--query] '.h2 | text' path/to/file.mdmade by @shridhargupta | data from tldr-pages