You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was messing around with middleman and kramdown and I stumbled upon a weird behavior: it seems like kramdown won't parse content inside <main> html blocks.
Here's the markdown I'm trying to process:
title
=====
{::options parse_block_html="true" /}
<main class="hi">
### level 3
text [link](http://google.com)
</main>
Here's it's output using kramdown 1.11.1:
<h1 id="title">title</h1>
<main class="hi">
### level 3
text [link](http://google.com)
</main>
If I change the <main> tag to a <div>, it works:
title
=====
{::options parse_block_html="true" /}
<div class="hi">
### level 3
text [link](http://google.com)
</div>
The reason is that <main> is not recognized as a valid HTML element, yet, so block parsing defaults to raw. You can force block parsing in the meantime by using <main markdown="block">.
Hi!
I was messing around with middleman and kramdown and I stumbled upon a weird behavior: it seems like kramdown won't parse content inside
<main>
html blocks.Here's the markdown I'm trying to process:
Here's it's output using kramdown 1.11.1:
If I change the
<main>
tag to a<div>
, it works:Output:
Is there anything else I can provide you with ?
Thanks for your help.
The text was updated successfully, but these errors were encountered: