Some [direct link](http://example.com "Direct link -- ie, inline URL") here.
But when an entity reference occurs in the title text, like this:
Some [direct link](http://example.com "Direct link – ie, inline URL") here.
the last portion of the title text (starting at the reference) gets repeated after the generated <a> element, so the output from md2html looks like this:
As far as I have seen, this stems from md4c.c, not md2html.c: the – reference is indeed transmitted twice, once embedded in the attribute text, and a second time as a MD_TEXT_ENTITY item itself.
On can actually observe this behaviour in Babelmark 2, where MD4C 0.1.1 is included as of lately.
This gets processed correctly:
But when an entity reference occurs in the title text, like this:
the last portion of the title text (starting at the reference) gets repeated after the generated
<a>
element, so the output frommd2html
looks like this:As far as I have seen, this stems from
md4c.c
, notmd2html.c
: the–
reference is indeed transmitted twice, once embedded in the attribute text, and a second time as aMD_TEXT_ENTITY
item itself.On can actually observe this behaviour in Babelmark 2, where
MD4C 0.1.1
is included as of lately.