# MermaidBlockRendering

Provides ChartForgeX rendering adapters for parsed Mermaid block diagrams.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

[MermaidBlockRendering.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidBlockRendering.cs#L19)

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid block diagrams.

## Inheritance

- object
- MermaidBlockRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static BlockLayoutBlock ToBlockLayoutBlock(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null)` [#](#method-toblocklayoutblock-chartforgex-mermaid-mermaidblockdocument-chartforgex-mermaid-mermaidblockrenderoptions) 

[MermaidBlockRendering.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidBlockRendering.cs#L19)

Converts a Mermaid block document into a reusable block-layout visual block.

Parameters

**document ChartForgeX.Mermaid.MermaidBlockDocument required**

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

Returns

 `BlockLayoutBlock` 

 `public static byte[] ToPng(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidblockdocument-chartforgex-mermaid-mermaidblockrenderoptions) 

[MermaidBlockRendering.cs:98](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidBlockRendering.cs#L98)

Renders a Mermaid block document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidBlockDocument required**

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

Returns

 `byte[]` 

 `public static string ToSvg(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidblockdocument-chartforgex-mermaid-mermaidblockrenderoptions) 

[MermaidBlockRendering.cs:94](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidBlockRendering.cs#L94)

Renders a Mermaid block document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidBlockDocument required**

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

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidBlockDocument document, MermaidBlockRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidblockdocument-chartforgex-mermaid-mermaidblockrenderoptions) 

[MermaidBlockRendering.cs:73](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidBlockRendering.cs#L73)

Wraps a Mermaid block document in a visual artifact envelope backed by a block-layout block.

Parameters

**document ChartForgeX.Mermaid.MermaidBlockDocument required**

**options ChartForgeX.Mermaid.MermaidBlockRenderOptions? = 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:A7A7ADADB67E21D0810C832A8A51F78E720D81D85BBD5896BB4CC7A228E2ECB9 -->
