[Kramdown-users] More HTML corruption

Thomas Leitner t_leitner at gmx.at
Tue Dec 15 01:21:38 EST 2009


> A few minor comments regarding the overhauled doc/syntax.page:

I have updated the syntax doc with your proposed changes.
 
> I think I may have found a corner case with the latest changes, or 
> perhaps I misunderstand the documentation. Given the following input:
> 
>    <dl>
>    <dt>Moo</dt>
>    <dd markdown="span">Foo
>    _Bar_</dd>
>    </dl>
> 
> one would expect:
> 
>    <dl>
>    <dt>Moo</dt>
>    <dd>Foo
>    <em>Bar</em></dd>
>    </dl>
> 
> but kramdown actually emits:
> 
>    <dl>
>    <dt>Moo</dt>
>    <dd>Foo
>    _Bar_</dd>
>    </dl>
> 
> Inserting a single space before the "_Bar_" does, however, result in
> the expected output.

This is actually not a bug in the HTML parser but the emphasis parser
which is fixed now.

Thanks for the detailed comments and the bug report!

-- Thomas


More information about the Kramdown-users mailing list