Closed kepano closed 2 years ago
@kepano It turns out this is a bug on obsidian's end. I've added a fix for it in this plugin. Can you update and see if it works for you?
I am testing 2.2.2 and it does seem like Contextual Typography is inserting the correct class but a new bug has cropped up.
If you have more than one image embedded in the following fashion, only the first one displays.
![test](local.png)
![test](local.png)
The second element does not exist at all when using Contextual Typography. Disabling the plugin seems to restore the second element.
Ah, interesting. This should be fixed now. Let me know if you have any other issues with this.
Almost there! I still am running into another condition. If you mix local and remote images the remote ones disappear.
This works
![test](local.png)
![test](local.png)
This works
![test](https://test.com/remote.png)
![test](https://test.com/remote.png)
This doesn't work (the remote one disappears)
![test](https://test.com/remote.png)
![test](local.png)
@kepano I gave it another go, and the plugin should now handle any combination of markdown link embeds + other content. Give it a try and let me know if you run into any other edge cases.
Seems to be working great! Thanks!
I found an interesting edge case see issue 81 of Minimal Theme
The are three ways to embed images:
![test](https://test.com/remote.png)
(Markdown remote image)![[local.png]]
(Wikilink local image)![test](local.png)
(Markdown local image)When using the third format,
.el-embed-image
does not appear on the parent container. It works for the other two.