-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to render icon content with d2 API #1853
Comments
Related to #1815 |
@zrcoder You can use this code https://github.com/alixander/d2/blob/808f5c3aaca6b9dbfb0f085c71cc09381da37bbd/d2cli/main.go#L868 It downloads the images and encodes them as base64 in the SVG. I assume that's what you want |
That's it, thanks a lot. |
I want to use d2 API to render icons, as the test below:
the saved ttt.svg just contains only
href=https://icons.terrastruct.com/dev/github.svg
but not the image content, how should I do?The text was updated successfully, but these errors were encountered: