Extra line breaks in HTML tables breaks table preview

Steps to reproduce

Create an HTML table with an extra line break in the code like this:

<table>

<tr>
<td>
Row 1
</td>
<td>
Field A
</td>
</tr>
<tr>
<td>
Row 2
</td>
<td>
Field 2
</td>
</tr>
</table>

Expected result

I expect to see a rendered table as shown in other markdown previewers:

Actual result

The text in the table is just shown as a string of text:


Removing the extra line break fixes the preview.

I’m not entirely sure if this is a bug or me doing something dumb, but it is an issue because many HTML to Markdown converters leave me with extra line breaks, and I have a pile of markdown files with this issue that I want to use in Obsidian.

Environment

  • Operating system: Windows
  • Obsidian version: 0.12.12

Additional information

1 Like

It’s not a bug. We don’t support intermingling markdown blocks with html and this is implicitly what you are doing.

1 Like

HTML is a Markdown block though. You can say Obsidian supports some Markdown, but if Markdown is supported then so is HTML.

The Html needs to be in a single markdown block. This the byproduct of a design decision to optimize the preview of large documents. It has been discussed other times in the forum. If you don’t like it, open a feature request. It is unlikely that will be revisited, though.