plusparse/block_syntax library

Pure-Dart extension points for block syntax. No Flutter dependency.

Classes

FencedBlockSyntax
A convenient opaque container such as :::warning ... :::. Its body is raw text, including blank lines. An unfinished block consumes the remaining input with MdCustomBlock.closed false. It does not nest the same fence.
MarkdownBlockMatch
A successful match consumes endLine exclusively. Parsers must be pure, deterministic, and accept incomplete input. A match may inspect only its consumed lines; otherwise independently cached blocks would be unsafe.
MarkdownBlockRegistry
Compiled first-character dispatch shared by segmentation and parsing. Invalid consumption is rejected rather than looping or dropping input.
MarkdownBlockSyntax
A locally parsable custom block. Register a matching renderer with MarkdownBlockComponent on GptMarkdown.blockComponents.