Skip to content

Conversation

@snoweuph
Copy link

@snoweuph snoweuph commented Nov 9, 2025

d2 relies on Playwright for SVG→PNG conversion, which requires Chromium. This change adds an option to use SVGs directly, avoiding the need to install Chromium for rendering certain diagrams. It also catches and silences a success message that d2 writes to stderr.

PS: Playwright is not supported on multiple platforms and with chromium extremely heavy

`d2` relies on Playwright for SVG→PNG conversion, which requires Chromium.
This change adds an option to use SVGs directly, avoiding the need to
install Chromium for rendering certain diagrams. It also catches and
silences a success message that `d2` writes to stderr.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant