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