You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the span element contains html closing tags inside its element, the closing span tag is clobbered by parser:
this markdown:
<spanclass="some-class"data-html="true"title="some <em>title</em>">But _not_ if those elements contain HTML. </span>
becomes this html
<p><spanclass="some-class" data-html="true" title="some <em>title</em>">But <em>not</em> if those elements contain HTML. </span></p>
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.
The text was updated successfully, but these errors were encountered:
Note: This means that < should be escaped even inside a data-html attribute. The twitter gizmo that is consuming this should, if properly designed, automatically unescape it.
sent from mobile device; my apologies for any terseness or typos
On Apr 18, 2013 9:35 AM, "John MacFarlane" notifications@github.com wrote:
Note: This means that < should be escaped even inside a data-htmlattribute. The twitter gizmo that is consuming this should, if properly
designed, automatically unescape it.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/831#issuecomment-16587699
.
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.
The text was updated successfully, but these errors were encountered: