Skip to content

Inline

Use the inline attribute to define if the SVG diagram should be inlined in the HTML output.

src/content/docs/example.md
```d2 inline
x -> y
```

The above code block will be rendered with an inline SVG diagram in the HTML output:

<svg ...>...</svg>

By default, the diagrams are rendered using the <img> tag.