Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bad em markup in anchor href attribute #2

Open
automatist opened this issue Aug 8, 2011 · 2 comments
Open

bad em markup in anchor href attribute #2

automatist opened this issue Aug 8, 2011 · 2 comments

Comments

@automatist
Copy link

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!

@sebix
Copy link
Owner

sebix commented Apr 21, 2012

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
Copy link
Owner

sebix commented Feb 6, 2016

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants