...
1Diagrams that link between objects and the source they represent are much more integrated into your overall documentation than standalone diagrams. This release brings the linking feature to PDFs! Try clicking on "GitHub" object in the following PDF:
2
3[linked.pdf](https://github.com/terrastruct/d2/files/10889489/scratch.pdf)
4
5Code blocks now adapt to dark mode:
6
7<img width="643" alt="Screen Shot 2023-03-04 at 11 33 46 AM" src="https://user-images.githubusercontent.com/3120367/222925564-a5068bfa-e2d8-4358-b95a-cf48c41314f3.png">
8
9Welcome new contributor @donglixiaoche , who helps D2 support border-radius on connections!
10<img width="643" alt="Screen Shot 2023-03-04 at 11 33 46 AM" src="https://user-images.githubusercontent.com/3120367/222925369-ded99063-55c8-4330-92e7-0fd3f22a03eb.png">
11
12
13#### Features ๐
14
15- PDF exports support linking [#891](https://github.com/terrastruct/d2/issues/891), [#966](https://github.com/terrastruct/d2/pull/966)
16- `border-radius` is supported on connections (ELK and TALA only, since dagre uses curves). [#913](https://github.com/terrastruct/d2/pull/913)
17
18#### Improvements ๐งน
19
20- Code blocks adapt to dark mode [#971](https://github.com/terrastruct/d2/pull/971)
21- SVGs are fit to top left by default to avoid issues with zooming. [#954](https://github.com/terrastruct/d2/pull/954)
22- Person shapes have labels below them and don't need to expand as much. [#960](https://github.com/terrastruct/d2/pull/960)
23
24#### Bugfixes โ๏ธ
25
26- Fixes a regression where PNG backgrounds could be cut off in the appendix. [#941](https://github.com/terrastruct/d2/pull/941)
27- Fixes zooming not working in watch mode. [#944](https://github.com/terrastruct/d2/pull/944)
28- Fixes insufficient vertical padding in dagre with direction: right/left. [#973](https://github.com/terrastruct/d2/pull/973)
View as plain text