omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
737 stars 39 forks source link

Image fetch failed #106

Closed lszddz closed 3 months ago

lszddz commented 12 months ago

Hello, thank you for your hard work. I encountered a problem when using this plugin, that is, the image does not display properly in obsidian, the image link seems broken. For example: https:/ / proxy-prod.omnivore-image-cache.app/ 827x604,se2o9eqlBBtHPXRgF3jm7YpvSVhRuxbhQDDtwP4JHAVs/ https:/ / www.logseqtimes.com/ content/ images/ 2023/ 07/ image-13.png. This is not even a full link. I can not open the link in the browser, too.

ParkJaeSeong commented 7 months ago

same problem. +1 here is my case.

I don't know why / changed to /.

sywhb commented 7 months ago

Hey @lszddz @ParkJaeSeong, sorry for the late reply.

I wonder if you guys are using {{ content }} in the template because for mustache template, using double brackets surrounding the variables means characters will be escaped in HTML so the / becomes /.

Using triple brackets like {{{ content }}} will unescape HTML and I suggest using it for the variables in the template