Table of Contents

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

sb StringBuilder

The StringBuilder to append to.

options DiagramOptions

Diagram 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

sb StringBuilder

The StringBuilder to append to.

options DiagramOptions

Diagram rendering options (may be null).

title string

The diagram title. Ignored when null or whitespace.