Class
MermaidVisualMarkupBlockParser
ChartForgeX.Markup.Mermaid
Parses Mermaid Markdown fences into ChartForgeX visual artifacts.
Inheritance
- object
- MermaidVisualMarkupBlockParser
Constructors
MermaidVisualMarkupBlockParser 3 overloads
public MermaidVisualMarkupBlockParser() #Initializes a Mermaid visual block parser.
public MermaidVisualMarkupBlockParser(MermaidRenderOptions renderOptions) #Initializes a Mermaid visual block parser with rendering defaults.
Parameters
- renderOptions ChartForgeX.Mermaid.MermaidRenderOptions
- Optional rendering defaults by Mermaid diagram kind.
public MermaidVisualMarkupBlockParser(MermaidRenderOptions renderOptions, ThemeMode? defaultThemeMode) #Initializes a parser with a host theme fallback applied before native appearance capture.
Parameters
- renderOptions ChartForgeX.Mermaid.MermaidRenderOptions
- Rendering defaults captured independently for this parser.
- defaultThemeMode ChartForgeX.ThemeMode?
- Fallback for fences without an authored theme; null preserves native defaults.
Methods
public bool CanParse(VisualMarkupBlock block) #Returns true when this parser can parse the supplied visual block.
Parameters
- block ChartForgeX.Markup.VisualMarkupBlock
- The scanned visual markup block.
Returns
bool True when this parser should handle the block.public void Parse(VisualMarkupBlock block, VisualMarkupParseResult result) #Parses the supplied visual block and appends artifacts and diagnostics to the shared parse result.
Parameters
- block ChartForgeX.Markup.VisualMarkupBlock
- The scanned visual markup block.
- result ChartForgeX.Markup.VisualMarkupParseResult
- The parse result receiving artifacts and diagnostics.