Calion
September 3, 2022, 10:06pm
1
Steps to reproduce
Create a document with HTML <i>italics that
spread across
multiple lines</i>
Expected result
In most environments (including this one!) this renders as
Create a document with HTML italics that
spread across
multiple lines
i.e. everything between the <i>
and </i>
tags is italicized.
Actual result
Create a document with HTML italics that
spread across
multiple lines
The italics end if there’s a blank line in the middle.
Environment
HTML elements need to be full contained in one markdown block (that is no empty lines).
This is design decision of Obsidian. It’s a performance optimization for long documents.
Calion
September 3, 2022, 11:24pm
3
Hm. I suppose that makes sense. However, I’m importing webpages that are like this. Any suggestions for remedying this?
I suppose I could do a ridiculously complex regex on it before I import, except of course that you’re not supposed to do regex on HTML…
Calion
September 4, 2022, 1:17am
4
Aha! Nevermind. There’s an easy solution: Eliminate white space and use <br>
's.