Closed EtienneMiret closed 1 year ago
You can already achieve this with kramdown:
{::nomarkdown}
<img alt="" src="foo" />
{:/}
will result in
<img alt="" src="foo" />
Oh, OK, cool! Not sure why I didn’t see that in the doc. Thank-you!
According to the WHATWG, the
img
element is both flow content and phrasing content. I might be wrong on that one, but I understand “flow content” from the WHATWG spec as meaning “block level” while “phrasing content” would be “span level”.In any case, there is no doubt
img
elements are allowed as direct children of thebody
element. Which seems currently impossible to achieve with kramdown.So, could that feature be added? I’m thinking about something like:
that would translates to:
Also, I took
img
as an example, but I expect that newlevel
attribute to work on any tag.