From 46796f871dae1842b1b3df112ef909e32de665e0 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Thu, 23 Jan 2025 22:30:22 -0700 Subject: [PATCH] next --- ci/release/changelogs/next.md | 1 + d2cli/main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 806b4951e..3909f48a9 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -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 🧹 diff --git a/d2cli/main.go b/d2cli/main.go index 8f8f878e3..d2b56aedb 100644 --- a/d2cli/main.go +++ b/d2cli/main.go @@ -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 () from output SVG files. Useful when generating SVGs for direct HTML embedding") if err != nil { return err }