API Reference
Class
VisualMarkupScanner
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) #Returns:
List<VisualMarkupBlock>Extracts all supported visual fenced blocks from Markdown.
Parameters
- text System.String
- The Markdown text.
Returns
The supported visual blocks.
public static VisualMarkupScanResult ParseFenceBlock(String fenceInfo, String payload, Int32 fenceLine, Int32 payloadStartLine, Int32 payloadEndLine) #Returns:
VisualMarkupScanResultValidates 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.
public static VisualMarkupScanResult Scan(String text) #Returns:
VisualMarkupScanResultScans Markdown for supported visual fenced blocks and line-aware diagnostics.
Parameters
- text System.String
- The Markdown text.
Returns
The visual scan result.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?