[Kramdown-users] Expected HTML span behavior?
Eric Sunshine
sunshine at sunshineco.com
Tue Nov 24 11:04:15 EST 2009
Hi Thomas,
What is the expected behavior of Kramdown when an HTML span is split
over multiple lines within a quoted attribute string? For instance, say
that an editor has performed line-wrapping on some Markdown input with
embedded HTML so that the input to Kramdown is as follows. (I replaced
the HTML angle delimiters with { and } to pacify broken email clients.)
Link: {a href="/" title="Foo
Bar"}Foo Bar{/a}
When fed through Kramdown, this produces the startling:
{p}Link: <a href="/" title="Foo
Bar">Foo Bar</a>{/p}
Rather than the expected:
{p}Link: {a href="/" title="Foo Bar"}Foo Bar{/a}{/p}
Or perhaps, though unlikely:
{p}Link: {a href="/" title="Foo
Bar"}Foo Bar{/a}{/p}
The documentation at
http://kramdown.rubyforge.org/syntax.html#html-spans does not seem to
cover this case.
-- ES
More information about the Kramdown-users
mailing list