matthewwithanm/python-markdownify

title gets mangled into href for <a title="x">

hnykda opened this issue · 3 comments

hnykda commented
from markdownify import markdownify as md

print(
    md(
        """
<a href="/some/" title="Read 'This' Man">Does not work</a>
"""
    )
)

shows

[Does not work](/some/ "Read 'This' Man")

instead of:

[Does not work](/some/)

Hey, what output do you expect? Your

[Does not work](/some/ "Read 'This' Man")

renders as

Does not work

(Screenshot for clarity:

grafik

)

which shows the title on hover.

hnykda commented

WHAT? Have I been living under a rock and not knowing about this aspect of markdown? Really sorry, thanks for your work!

No worries, glad to help :)