API Reference
Class
VisualMarkupScanner
Scans Markdown for ChartForgeX and Mermaid visual fenced blocks without depending on a Markdown renderer.
Inheritance
- Object
- VisualMarkupScanner
Methods
ExtractBlocks(System.String text) #Extracts all supported visual fenced blocks from Markdown.
Parameters
- text System.String
- The Markdown text.
Returns
The supported visual blocks.
ParseFenceBlock(System.String fenceInfo, System.String payload, System.Int32 fenceLine, System.Int32 payloadStartLine, System.Int32 payloadEndLine) #Validates and projects a visual fence that was already discovered by another Markdown parser.
Parameters
- fenceInfo System.String
- The full fence info string after the opening marker.
- payload System.String
- The fence payload.
- fenceLine System.Int32
- The one-based source line containing the opening fence.
- payloadStartLine System.Int32
- The one-based source line where the payload starts.
- payloadEndLine System.Int32
- The one-based source line where the payload ends.
Returns
A scan result containing the projected block or validation diagnostics.
Scan(System.String text) #Scans Markdown for supported visual fenced blocks and line-aware diagnostics.
Parameters
- text System.String
- The Markdown text.
Returns
The visual scan result.