2.7 KiB
2.7 KiB
Features 💸
- Formatting of d2 scripts is supported on the CLI with the
fmtsubcommand. #292 - Latex is now supported. See docs for more. #229
directionkeyword is now supported to specifyup,down,right,leftlayouts. See docs for more. #251- Arrowhead labels are now supported. #182
stroke-dashon shapes is now supported. #188font-coloris now supported on shapes and connections. #215font-sizeis now supported on shapes and connections. #250- Querying shapes and connections by ID is now supported in renders. #218
- install.sh now accepts
-das an alias for--dry-run. #266 -b/--bundleflag tod2now works and bundles all image assets directly as base64 data urls. #278
Improvements 🧹
- Local images can now be included, e.g.
icon: ./my_img.png. #146 - ELK layout engine now defaults to top-down to be consistent with dagre. #251
- install.sh prints the dry run message more visibly. #266
d2now lives in the root folder of the repository instead of as a subcommand. So you can rungo install oss.terrastruct.com/d2@latestto install from source now. #290BROWSER=0now works to disable opening a browser on--watch. #311
Bugfixes ⛑️
- 3D style was missing border and other styles for its top and right faces. #187
- System dark mode was incorrectly applying to markdown in renders. #159
- Fixes markdown newlines created with a trailing double space or backslash. #214
- Fixes images not loading in PNG exports. #224
- Avoid logging benign file watching errors. #293
$BROWSERnow works to open a custom browser correctly. For example, to open Firefox on macOS:BROWSER='open -aFirefox'#311