Releases: gagoar/mermaid-flowchart-parser
Releases · gagoar/mermaid-flowchart-parser
Release list
v0.1.1
Adds git-URL dependency support: commits dist/ build output and adds a
prepare script, so consumers can depend on this package directly via a
github: reference (npm publish is currently blocked on an unrelated
account-level issue; this unblocks consumption in the meantime).
v0.1.0
Initial release: a dependency-free parser that recovers node ids and edges from Mermaid flowchart source, without pulling in mermaid's rendering pipeline (d3, cytoscape, katex, roughjs).
parseFlowchart(source)— returns declared node ids (in first-seen order) and edges (from/to/arrow/label)extractMermaidNodeIds(source)— convenience wrapper returning just the set of node ids- Handles bracket/paren/brace node shapes, solid/dotted/thick arrows, arrow-tip variants, pipe-delimited edge labels, chained edges, subgraphs, and quoted labels containing punctuation that would otherwise look like a second declaration
See README for background on why this exists (mermaid's flowchart grammar isn't yet exposed as a standalone, render-free API).