sissilab / obsidian-image-toolkit

An Obsidian plugin for viewing an image.
MIT License
291 stars 20 forks source link

Cannot view resized table images in gallery view #88

Closed erik-buchholz closed 10 months ago

erik-buchholz commented 1 year ago

If you resize an image in a table, you need to escape the vertical bar. I.e., ![[Pasted image 20230817120904.png|300]] becomes ![[Pasted image 20230817120904.png \|300]].

Now, any images resized using the escaped vertical bar will not be displayed in the Gallery bar, i.e., it is impossible to switch over images in a table. This prevents the comparison of images displayed side-by-side with a table in the enlarged view.

Minimal working example:

![[cat1.png]]

| A | B | C |
| --- | --- | --- |
| ![[cat2.png]] | ![[cat3.png \|300]] | ![[cat4.png \|300]] |

![[cat5.png]]

In the example, you will be able to navigate to cat1, 2, and 5 in the gallery, but not to cats 3 and 4. It is possible to enlarge cats 3 and 4, but once you navigated to another cat, you cannot go back.

Images are attached.

image

Thanks for the amazing plug-in! If you need help implementing this, I am happy to do so. But as I have never used TypeScript before, I might need some guidance on what you think where the problem lies or where to start looking. :)

sissilab commented 10 months ago

fixed in v1.4.1.