Closed alakdam07 closed 2 months ago
i think it is difficult because 'D2 Playground' does not have a bundle option. https://d2lang.com/tour/man
@bo-ku-ra I found a way to do that. I have taken svg diagram's screen video then converted it into gif.
Try replacing the image reference to an <object>
tag, that's what worked for me in https://github.com/terrastruct/d2/issues/1985#issuecomment-2315155112.
it's bundled now
I have downloaded this diagram as SVG.
I am trying to include an SVG icon in my Git README.md file, but despite having the correct relative path and confirming that the SVG displays correctly in local browsers, it does not render in the README.md file on Git. Here's how I've tried to include it:
I have verified that the path
./architecture/security-infra.svg
is correct relative to the location of the README.md file in my GitLab repository.In my browser it looks like this:
In readme.MD it looks like this:
Despite these efforts, the SVG icon still does not render in the GitLab README.md file. What could be causing this issue, and how can I resolve it?
Even it works in mozilla playgroud:
I suspect this image href does not load the svg:
Any help or insights would be greatly appreciated.
Thank you!