Icons
The Astro D2 integration can be used to create diagrams with icons:
The above code block will be rendered as the following diagram:
Relative paths
The Astro D2 integration supports rendering icons with paths relative to your Markdown file.
For example, considering a file located at src/content/docs/example.md
and an icon located at src/assets/icon.svg
, you can reference the icon as follows:
The above code block will be rendered as the following diagram: