Open Pukimaa opened 11 months ago
Thank you for the bug report!
Could you also please attach your SVGs to this issue? So that I can reproduce this issue easily.
Sure!
Any updates @FlorianWoelki?
In my case in turned out that my SVGs made use of the "use" and the "symbol" tag. Furthermore, all SVGs used the same value for the id attribute of the symbol tag (A) and also referenced this id in the use tag. This leads to errors when embedding multiple SVGs into your application. As the ids are the same other SVGs will use the symbol tag of the "highest" SVG inside the DOM. The following screenshot shows this.
So the solution is to change the ids of the symbol tags inside your SVGs to unique values and to adapt the corresponding use tags.
Describe the bug If you have a data image inside the svg the plugin renders every data image as the same iamge
To Reproduce Steps to reproduce the behavior:
Expected behavior The correct icon will be shown
Screenshots If applicable, add screenshots to help explain your problem. The first folder icon should be different
![image](https://github.com/FlorianWoelki/obsidian-iconize/assets/58347116/b48e1f59-5104-4a2d-a0c8-06a8234cab12)
Additional context At first I thought it's an issue with the naming of the file, but it's not. The icon is also always the top most visible image icon!