Closed csaid closed 4 years ago
Here's what gets produced:
<p>This text is not italicized.</p>
<p><img src="https://i.imgur.com/EJOjIMC.jpeg" /></p>
<div style="font-style:italic">
<p>My italicized figure caption </div></p>
<p>This text should not be italicized either, but it is.</p>
</div>
Update: I've solved my problem: I need needed to put the
<div style="font-style:italic" markdown="1">
My italicized figure caption
</div>
This behavior seems surprising to me. Not sure if this counts as user error or not.
Yes, this is expected behaviour, see https://kramdown.gettalong.org/syntax.html#html-blocks, the second list item "Parse as block-level elements:".
I'm noticing that div style spills out into text after the
</div>
whenever markdown mode is on.The issue only goes away if I set
markdown="0"
. However, I would like to be able to process markdown inside a<div></div>
I'm on Kramdown 2.3.0, as it is included in the latest version of Github Pages.
Thanks