ASCII Diagrams
Dodeca supports rendering ASCII art diagrams as inline SVG using the aasvg crate. This lets you create diagrams in plain text that render beautifully in your documentation.
Usage
Use a fenced code block with the language identifier aa:
markdown
``` aa
+-----+ +-----+
| A |---->| B |
+-----+ +-----+
```
This renders as:
Examples
Flowchart
Sequence Diagram
Architecture Diagram
Box Drawing
Supported Characters
The aasvg renderer supports standard ASCII box drawing:
- Corners:
+ - Horizontal lines:
- - Vertical lines:
| - Arrows:
<,>,^,v - Arrow lines:
->,<-,-->,<-- - Text: any alphanumeric characters
Tips
- Use consistent spacing for alignment
- Add whitespace around diagrams for better rendering
- Keep diagrams simple and focused
- Use arrows to show direction and flow