Markdown → node tree
Parse Chinese headings, multi-level lists, code and link snippets into a deterministic collapsible node tree; over-deep/long/large input is compacted; HTML/scripts never execute; only the newest render is kept.
Inputs and parameters
input— Markdown outline (processed locally)templateId— Local template (optional, ID only)
Real example
# Study plan
- Week 1
- Semantic HTML and `display:flex`
- Read the [MDN](https://developer.mozilla.org) guide
→ {"root":{"label":"Study plan","children":[…]},"nodes":5,"depth":2,"truncated":false,"layout":{"boxes":[…]}} → the right pane shows the tree, layout boxes and fold/restore buttons.
Limits and failure handling
Defaults: 200 KiB / 2000 nodes / depth 8 / 160 chars per label; overflow asks you to shorten instead of recursing forever. No real markmap SVG rendering this round: output is a deterministic node tree + layout plan (JSON text and visual boxes), not a browser-painted mind-map image. No remote images, no AI outline generation.
FAQ
How is nesting computed?
Headings #..###### give levels 1..6; every 2 spaces (or a tab) of list indentation adds one level beneath it. Siblings stay siblings.
Does collapsing lose data?
No. Children are kept in hiddenChildren and restored verbatim; the original tree object is never mutated.
Will a parse failure blank the screen?
No. The last successful view is kept and marked “not a result of the current input”, with a clear reason and the input preserved.