> ## Documentation Index
> Fetch the complete documentation index at: https://context7.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mermaid

> Create diagrams from a code fence

Use the `mermaid` language on a fenced code block.

## Usage

````md theme={null}
```mermaid
graph LR
  A[Write] --> B[Preview] --> C[Publish]
```
````

Docs7 keeps the source readable in Markdown exports.

## Example

```mermaid theme={null}
graph LR
  A[Write] --> B[Preview] --> C[Publish]
```
