plusparse/block_parser library

Block parser: walks the document line-by-line and produces block-level MdNodes, recursing into the inline parser for text content and into itself for nested content (list items, blockquotes). Single pass, error-tolerant: it never throws on malformed or partial (streaming) input. Ported 1:1 from the Rust plusparse block parser.

Functions

parseBlocks(List<String> lines, bool useDollar, [MarkdownBlockRegistry? registry, MarkdownDefinitions defs = MarkdownDefinitions.empty]) → List<MdNode>
parseDocument(String src, bool useDollar, [MarkdownBlockRegistry? registry, MarkdownDefinitions? definitions]) → MdDocument
Parses src. Link and footnote definitions are collected from src itself unless definitions is given — the incremental view passes the whole document's, because it parses one segment at a time.