Class MermaidFenceHelper
- Namespace
- ProjGraph.Lib.Core.Abstractions
- Assembly
- ProjGraph.Lib.Core.dll
Shared helper for wrapping Mermaid diagram output in a Markdown code fence and rendering the optional YAML front-matter title block.
public static class MermaidFenceHelper
- Inheritance
-
MermaidFenceHelper
- Inherited Members
Methods
AppendFenceEnd(StringBuilder, DiagramOptions?)
Appends the closing fence (```) to the StringBuilder.
public static void AppendFenceEnd(StringBuilder sb, DiagramOptions? options)
Parameters
sbStringBuilderThe StringBuilder to append to.
optionsDiagramOptionsDiagram rendering options (may be
null).
AppendFenceStart(StringBuilder, DiagramOptions?, string?)
Appends the opening fence (```mermaid) and optional title block to the StringBuilder.
public static void AppendFenceStart(StringBuilder sb, DiagramOptions? options, string? title)
Parameters
sbStringBuilderThe StringBuilder to append to.
optionsDiagramOptionsDiagram rendering options (may be
null).titlestringThe diagram title. Ignored when
nullor whitespace.