austgl / python-markdown2

Automatically exported from code.google.com/p/python-markdown2
Other
0 stars 0 forks source link

Will not markdown emails with underlines #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import markdown2
2. markdown2.markdown('<test_test@test.com>')
3. Output: u'<p><test_test@test.com></p>\n'

What is the expected output? What do you see instead?
I would have expected to get an encoded email address.

What version of the product are you using? On what operating system?
ubuntu 9.04 with python 2.5.4 with markdown2 1.0.1.12a (r183)

Original issue reported on code.google.com by thomasb...@gmail.com on 3 Jun 2009 at 10:05

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.

Test case added in r185.

Original comment by tre...@gmail.com on 4 Jun 2009 at 4:56

GoogleCodeExporter commented 9 years ago
Fixed in r188.

Original comment by tre...@gmail.com on 4 Jun 2009 at 5:07

GoogleCodeExporter commented 9 years ago
A problem with the fix:
- `python test.py markdown2/tm/auto_link_email_with_underscore`
  *sometimes* fails with '<em>' for the underscores. My guess is that
  the sometimes-the-actual-char email encoding needs to always encode the
  meta chars.

Original comment by tre...@gmail.com on 4 Jun 2009 at 4:28

GoogleCodeExporter commented 9 years ago
Hi Trent. 
First of: You are awesome!! How could you fix this so fast?! 

I experienced a problem with the email encoding when there are two underscores 
because that would be _em_ 
just like *em*. so this email address would not work: 
check_this_out@coolpeople.com. this would be encoded to 
check<em>this_out@coolpeople.com.

Original comment by thomasb...@gmail.com on 4 Jun 2009 at 11:13

GoogleCodeExporter commented 9 years ago
Fixed in r194.
target release: 1.0.1.13

Original comment by tre...@gmail.com on 2 Jul 2009 at 4:41