-
Notifications
You must be signed in to change notification settings - Fork 483
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
Local icons are not resolved correctly by cli #1919
Comments
Right, this is because the images are just URL paths. It depends on where you open the SVG. For example, in your repo, GitHub renders it: https://github.com/miroslav-matejovsky/d2-local-icons/blob/trunk/cli-output-conf.svg But in others that won't make network requests like, say, Adobe Illustrator, you need to bundle the images into base64 data. D2 playground doesn't do that right now: terrastruct/d2-playground#17 |
Thanks for explanation
|
Wait I'm sorry this wasn't in regards to the Playground. I mistook this for a different issue.
They both seems to have the correct icon in your repo. What's the issue? @miroslav-matejovsky |
I've update README.md in my repo. https://github.com/miroslav-matejovsky/d2-local-icons/blob/trunk/cli-output-conf.svg is incorrect, it should contain gear instead of eye. |
Very much appreciate the detailed bug report. Fix will be part of next release, thanks again. |
When diagram is located in subfolder then relative path to icon location is not resolved correctly. Or at least not in the same way as it is by VSCode extension.
Repo with example: https://github.com/miroslav-matejovsky/d2-local-icons
The text was updated successfully, but these errors were encountered: