HTML tags <table>+<td>+<pre> behaves differently w/o "space" in an empty line

The interpretation of HTML breaks if there is an empty line within the quoted content. If place several spaces, then it interprets normally.
It happens when you try to use <pre> inside an HTML table

Steps to reproduce

Try those:

  • Empty line
<table>
<tr><td><pre>
for (unsigned int s = 1; s < blockDim.x; s *= 2){
	something

	something else
}
		</pre></td></tr>
</table>

  • Empty line (with a space)
<table>
<tr><td><pre>
for (unsigned int s = 1; s < blockDim.x; s *= 2){
	something
 
	something else
}
		</pre></td></tr>
</table>

Expected result (or Empty line with a space)

1

Actual result (without space)

2

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.9.22

Additional information

This also happens to <details> + <summary>. I found a thread saying that “details” tag is not being supported yet. Is there any place I can check what HTML tags are officially supported or not? Thanks.

This doesn’t rendercorrectly in commonmark either

This is an ugly corner case, I am note sure the parser we use plus our optmizations will handle it. You can open a feature request for this.