Hi,
I opened one of my university’s markdown files in obsidian. It contained some html which produced some unexpected behaviour. Here is a minimal example:
Step 1 to reproduce
Copy this in a new document:
This $x = 2$ is some math
Then comes some html:
<div>
<center><img src="https://i.imgur.com/D05ztwX.jpeg" width="400">
</div>
Then comes an equation $x=3$ which does not get rendered correctly.
Step 2 to reproduce
Now remove the closing tag of the opening “div”:
This $x = 2$ is some math
Then comes some html:
<div
<center><img src="https://i.imgur.com/D05ztwX.jpeg" width="400">
</div>
Now the image appears and the equation $x=3$ gets rendered correctly.
I’ve attached two screenshots of how it looks like on my notebook.
Environment
- Operating system: Ubuntu
Screenshots