python-textile icon indicating copy to clipboard operation
python-textile copied to clipboard

bad em markup in anchor href attribute

Open automatist opened this issue 13 years ago • 2 comments

Generally I like how textile let's HTML pass through, but I recently came across a problem along the lines of the following:

import textile
print textile.textile("""<a href="_link_">label</a>""")

from which python-textile 2.1.5 produces:

<p><a href="<em>link</em>&#8220;>label</a></p>

which not only is wrong, but introduces a run-away attribute value that swallows parts of the page!

automatist avatar Aug 08 '11 21:08 automatist

Should this be combination of single- and double-quotes? With 3 double-quotes (as its displayed here on GH) the text is parsed as simple paragraph:

'\t<p>label</p>'

sebix avatar Apr 21 '12 16:04 sebix

The current version gives this:

<p><a href="<em>link</em>&#8221;>label</a></p>

Which is still wrong and gives a syntax error. Textile should not be applied inside html-code.

sebix avatar Feb 06 '16 16:02 sebix