0.1.3
Many have asked how to get the diagram to look like the one on D2's cheat sheet. With this release, now you can! See https://d2lang.com/tour/themes/ for more.

The Slack app for D2 has now hit production, so if you're looking for the quickest way to express a visual model without interrupting the conversation flow, go to https://d2lang.com/tour/slack/ to install.
Hope everyone is enjoying the holidays this week!
Features ๐โ
sketchflag renders the diagram to look like it was sketched by hand. #492nearnow takes constants liketop-center, particularly useful for diagram titles. See docs for more. #525
Improvements ๐งนโ
- Improved label placements for shapes with images and icons to avoid overlapping labels. #474
- Themes are applied to
sql_tableandclassshapes. #521 classshapes use monospaced font. #521- Sequence diagram edge group labels have more reasonable padding. #512
- ELK layout engine preserves order of nodes. #282
- Non-markdown text (
shape: textwithout language block) works withbold,italic,underline, andfont-size. #528 - Markdown headings set font-family explicitly, so that external stylesheets with more specific targeting don't override it. #525
Bugfixes โ๏ธโ
d2 fmtonly rewrites if it has changes, instead of always rewriting. #470- Text no longer overflows in
sql_tableshapes. #458 - ELK connection labels are now given the appropriate dimensions. #483
- Dagre connection lengths make room for longer labels. #484
- Icons with query parameters are escaped to valid SVG XML. #438
- Connections at the boundaries no longer get part of its stroke clipped. #493
- Fixes edge case where
stylebeing defined in same scope assql_tablecauses compiler to skip compilingsql_table. #506 - Fixes panic passing a non-string value to
constraint. #248 - Fixes edge case where the key
nullwas compiling wrongly. #507