Does Obsidian not support CommonMark inside HTML5?

@woofy31 states that Obsidian doesn’t support HTML5 inside CommonMark:

All CM processors I’ve utilised thus far support it, albeit not inline. Rather, like:

<td>

`Codified`, **bold** text.

</td>

This is stipulated by the current CM specification, and is integral to all of my documents. Therefore, before I decide whether to utilise Obsidian, I need know whether this is offered.

It doesn’t.

1 Like

@WhiteNoise, thank you. Has the rationale ever been explained?

It doesn’t work in Live Preview but I found recently that (as far as I can tell) Reading View does support this per the spec. Inline works, too.

<span>*Hello, world!*</span>
1 Like

@CawlinTeffid, thanks. In which case, I’d have recommended that someone update the documentation. However, it doesn’t appear to be [F]OSS:

Some inline html tags, such as <span> or <a>, have limited functionality in reading view. In general, what it’s written in the docs is correct.
We don’t support markdown with html blocks.

HTML blocks need to be self-contained and without blanks lines in them.

This limitation is an intentional design choice and is due to keeping parsers complexity low (both the editor and reding mode) and a performance optimizations that we use to be able to manage large documents.

1 Like

The docs are on GitHub and accept issues and PRs (link is near the bottom of the docs homepage).

1 Like

OK, I see some of the limitations with more testing.

These produce funky results:

<li>

`Codified`, **bold** text.

</li>
<ul>

<li>

`Codified`, **bold** text.

</li>

</ul>
<ul>
<li>

`Codified`, **bold** text.

</li>
</ul>
<table>

<tr>

<td>

`Codified`, **bold** text.

</td>

</tr>

</table>

I think what I tested before was div, which doesn’t manifest visually. It hadn’t occurred to me that the HTML part might be broken while the Markdown was rendered.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.