treemd shows a markdown document as a navigable outline next to its rendered
content, with syntax highlighting, tables, task lists, images and Mermaid
diagrams. A jq-like query language extracts headings, links, code blocks and
other elements for scripts.
Examples
treemd README.md
treemd -q '.h2' README.md
treemd https://example.com/guide.md
File access
treemd can open documents in your home directory and from URLs. To also open
documents on USB drives and other removable media (/media, /mnt), run:
sudo snap connect treemd:removable-media