Skip to content

bad em markup in anchor href attribute #2

Open

Description

@automatist

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!

Activity

  1. sebix commented on Apr 21, 2012

    @sebix
    Owner

    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>'
    
  2. sebix commented on Feb 6, 2016

    @sebix
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions