Line breaks in <i> tags break

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

  • Operating system: iPadOS

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.

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…

Aha! Nevermind. There’s an easy solution: Eliminate white space and use <br>'s.