Overview

Tree Markdown Parser turns fenced tree blocks into a structured AST and renders them as clean, collapsible HTML without JavaScript. It supports CLI previews, stable HTML/PDF exports, and live rendering in VS Code.

Why it exists

Markdown previews and exports often render directory trees inconsistently. This tool standardizes tree rendering across previews, CLI workflows, and document exports.

Interfaces

  • CLI: tmd (preprocess, preview, export)
  • Library API: parseTreeBlock, renderHTML, renderMermaid, renderText
  • Plugins: remark and markdown-it
  • VS Code extension: vscode-tree-markdown

Links