Closed fulldecent closed 2 months ago
kramdown expects HTML to be formatted in a certain way. Many things that are allowed with HTML5 don't work with kramdown as kramdown is not a full HTML5 parser/processor. So if you use kramdown, you need to provide the input as kramdown expects it.
Test case working:
Test case failing:
Please note that
<i></i>
is valid HTML, with or without the newline after the<
in the closing tag. And Prettier which is a very popular software, running in many projects' workflows by default will generate code like this. (It modifies HTML files for style reasons but keeps them semantically equivalent.)Originally reported at https://github.com/jekyll/jekyll/issues/9691