Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPandoc clobbers span closing ">" when containing html #831
Comments
|
This is invalid HTML. The http://www.w3.org/TR/html-markup/syntax.html#syntax-attribute-value Garbage in, garbage out. |
|
Note: This means that |
|
Thanks for clarifying this use, and my apologies for the mistake! Carl Boettiger sent from mobile device; my apologies for any terseness or typos
|
When encountering a span element in markdown such as:
Pandoc correctly parses this without clobbering the internal data, giving the html:
If the span element contains html closing tags inside its element, the closing span tag is clobbered by parser:
this markdown:
becomes this html
Note that the close of span element has been parsed into
">The use of html inside a span element may be unusual, but I do not think it is incorrect. I use this with twitter-bootstrap tooltips, where it is explicitly supported by the data-html="true" option. (A utility embeds the tooltips, which I use for citations, into what is otherwise blog entry written in markdown).
Thanks for considering this arcane use case.