D2 diagrams
Writerside supports adding diagrams using D2, a declarative language for diagramming.
To add a D2 diagram, use a code block with the language set to d2
:
<code-block lang="d2">
direction: right
question: Do you write docs?
yes: Use Writerside
no: You should
question -> yes: Yes
question -> no: No
</code-block>
```d2
direction: right
question: Do you write docs?
yes: Use Writerside
no: You should
question -> yes: Yes
question -> no: No
```
The result will look as follows:
Last modified: 14 May 2024