# MermaidGitGraphRendering

Provides ChartForgeX rendering adapters for parsed Mermaid git graph diagrams.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidGitGraphRendering.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphRendering.cs#L17)

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid git graph diagrams.

## Inheritance

- object
- MermaidGitGraphRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static GitGraphBlock ToGitGraphBlock(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null)` [#](#method-togitgraphblock-chartforgex-mermaid-mermaidgitgraphdocument-chartforgex-mermaid-mermaidgitgraphrenderoptions) 

[MermaidGitGraphRendering.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphRendering.cs#L17)

Converts a Mermaid git graph document into a reusable git graph visual block.

Parameters

**document ChartForgeX.Mermaid.MermaidGitGraphDocument required**

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

Returns

 `GitGraphBlock` 

 `public static byte[] ToPng(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidgitgraphdocument-chartforgex-mermaid-mermaidgitgraphrenderoptions) 

[MermaidGitGraphRendering.cs:83](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphRendering.cs#L83)

Renders a Mermaid git graph document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidGitGraphDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidgitgraphdocument-chartforgex-mermaid-mermaidgitgraphrenderoptions) 

[MermaidGitGraphRendering.cs:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphRendering.cs#L79)

Renders a Mermaid git graph document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidGitGraphDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidGitGraphDocument document, MermaidGitGraphRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidgitgraphdocument-chartforgex-mermaid-mermaidgitgraphrenderoptions) 

[MermaidGitGraphRendering.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidGitGraphRendering.cs#L49)

Wraps a Mermaid git graph document in a visual artifact envelope backed by a git graph block.

Parameters

**document ChartForgeX.Mermaid.MermaidGitGraphDocument required**

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

Returns

 `VisualArtifact` 

## 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:BEA65A2C6E867DCDCDEBA4A5AF9E9CB79EEAFD14C0E42F898E95791CC33193E3 -->
