# MermaidFlowchartRendering

Provides ChartForgeX rendering adapters for parsed Mermaid flowcharts.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidFlowchartRendering.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartRendering.cs#L22)

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid flowcharts.

## Inheritance

- object
- MermaidFlowchartRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static byte[] ToPng(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidflowchartdocument-chartforgex-mermaid-mermaidflowchartrenderoptions) 

[MermaidFlowchartRendering.cs:247](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartRendering.cs#L247)

Renders a Mermaid flowchart document to static PNG through ChartForgeX topology rendering.

Parameters

**document ChartForgeX.Mermaid.MermaidFlowchartDocument required**

The parsed Mermaid flowchart document.

**options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional**

Optional conversion and rendering defaults.

Returns

 `byte[]` PNG bytes. 

 `public static string ToSvg(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidflowchartdocument-chartforgex-mermaid-mermaidflowchartrenderoptions) 

[MermaidFlowchartRendering.cs:235](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartRendering.cs#L235)

Renders a Mermaid flowchart document to static SVG through ChartForgeX topology rendering.

Parameters

**document ChartForgeX.Mermaid.MermaidFlowchartDocument required**

The parsed Mermaid flowchart document.

**options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional**

Optional conversion and rendering defaults.

Returns

 `string` SVG markup. 

 `public static TopologyChart ToTopologyChart(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null)` [#](#method-totopologychart-chartforgex-mermaid-mermaidflowchartdocument-chartforgex-mermaid-mermaidflowchartrenderoptions) 

[MermaidFlowchartRendering.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartRendering.cs#L22)

Converts a Mermaid flowchart document into a renderer-independent topology chart.

Parameters

**document ChartForgeX.Mermaid.MermaidFlowchartDocument required**

The parsed Mermaid flowchart document.

**options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional**

Optional conversion and rendering defaults.

Returns

 `TopologyChart` A topology chart that can render to ChartForgeX SVG, HTML, PNG, and raster outputs. 

 `public static VisualArtifact ToVisualArtifact(MermaidFlowchartDocument document, MermaidFlowchartRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidflowchartdocument-chartforgex-mermaid-mermaidflowchartrenderoptions) 

[MermaidFlowchartRendering.cs:193](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidFlowchartRendering.cs#L193)

Wraps a Mermaid flowchart document in a product-neutral visual artifact envelope backed by a topology chart.

Parameters

**document ChartForgeX.Mermaid.MermaidFlowchartDocument required**

The parsed Mermaid flowchart document.

**options ChartForgeX.Mermaid.MermaidFlowchartRenderOptions? = null optional**

Optional conversion and rendering defaults.

Returns

 `VisualArtifact` A visual artifact envelope. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:8EC64C467AB0DB72DCBDFCFAF5BC87A28AE5D3F0D0013A0A8B1DFFB54F7C0D35 -->
