This commit is contained in:
Alexander Wang 2025-01-23 22:30:22 -07:00
parent 83b96c2734
commit 46796f871d
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- `d2 fmt` now supports a `--check` flag [#2253](https://github.com/terrastruct/d2/pull/2253)
- CLI: PNG output to stdout is supported using `--stdout-format png -` [#2291](https://github.com/terrastruct/d2/pull/2291)
- Globs: `&connected` and `&leaf` filters are implemented [#2299](https://github.com/terrastruct/d2/pull/2299)
- CLI: add --no-xml-tag for direct HTML embedding [#2302](https://github.com/terrastruct/d2/pull/2302)
#### Improvements 🧹

View file

@ -129,7 +129,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
return err
}
noXMLTagFlag, err := ms.Opts.Bool("D2_NO_XML_TAG", "no-xml-tag", "", false, "suppress the XML declaration in SVG output")
noXMLTagFlag, err := ms.Opts.Bool("D2_NO_XML_TAG", "no-xml-tag", "", false, "omit XML tag (<?xml ...?>) from output SVG files. Useful when generating SVGs for direct HTML embedding")
if err != nil {
return err
}