daniellmb / markdownsharp

Automatically exported from code.google.com/p/markdownsharp
1 stars 0 forks source link

Auto-URLs are breaking with any url that has an underscore #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable auto-url parsing
2. Use this: http://www.youtube.com/watch?v=wsdy_rct6uo
3. Watch DoItalicsAndBold replace the underscores with <em> tags

What is the expected output? What do you see instead?
Expected:  "<a 
href=\"http://www.youtube.com/watch?v=wsdy_rct6uo\">http://www.youtube.com/watch
?v=wsdy_rct6uo</a>"

What I see: 

"<a 
href=\"http://www.youtube.com/watch?v=wsdy<em>rct6uo\">http://www.youtube.com/wa
tch?v=wsdy</em>rct6uo</a>"

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by flatout2...@gmail.com on 28 Jan 2014 at 3:27

GoogleCodeExporter commented 9 years ago
Currently testing a solution - Moving DoItalicsAndBold above DoAnchors and 
DoAutoLinks

Original comment by flatout2...@gmail.com on 28 Jan 2014 at 3:36