Skip to content

Layout

Use the layout attribute to use a different layout engine to generate the diagram.

src/content/docs/example.md
```d2 layout=elk
Content -> Website -> Content
```

The above code block will be rendered as the following diagram with the ELK layout engine:

Diagram