lepture / mistune

A fast yet powerful Python Markdown parser with renderers and plugins.
http://mistune.lepture.com/
BSD 3-Clause "New" or "Revised" License
2.58k stars 250 forks source link

wrong parsing of mailto-links #103

Closed mash-graz closed 8 years ago

mash-graz commented 8 years ago

email addresses including dots or dashes are not recognized as mailto links:

mistune.markdown('mailto parser test: <email@nowhere.org>, <my.email@nowhere.org>, <my-email@nowhere.org>')

will generate:

<p>mailto parser test: <a href="mailto:email@nowhere.org">email@nowhere.org</a>, &lt;my.email@nowhere.org&gt;, &lt;my-email@nowhere.org&gt;</p>\n'

only addresses of the first form work.

lepture commented 8 years ago

@mash-graz The master branch works fine.