Skip to content
✏️

Astro D2

Astro integration and remark plugin to transform D2 Markdown code blocks into diagrams.
Diagram
```d2 sketch pad=50
direction: right
Astro.Markdown -> D2 -> SVG -> Browser.Diagrams -> Astro.Markdown: {style.animated: true}
```

Next steps

Configure the integration

Edit your config in astro.config.mjs.