# Extensions Adds support for diagrams extension: ## Mermaid diagrams Using a fenced code block with the `mermaid` language info will output a `
` block (which is the default for other code block):

```````````````````````````````` example
```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```
.
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```````````````````````````````` ## nomnoml diagrams Using a fenced code block with the `nomnoml` language info will output a `
` instead of a `pre/code` block: ```````````````````````````````` example ```nomnoml [example| propertyA: Int propertyB: string | methodA() methodB() | [subA]--[subB] [subA]-:>[sub C] ] ``` .
[example| propertyA: Int propertyB: string | methodA() methodB() | [subA]--[subB] [subA]-:>[sub C] ]
```````````````````````````````` TODO: Add other text diagram languages