davidfstr / rdiscount

Discount (For Ruby) Implementation of John Gruber's Markdown
http://dafoster.net/projects/rdiscount/
Other
752 stars 70 forks source link

»mailto:« confuses autolinker #42

Closed mbelow closed 11 years ago

mbelow commented 13 years ago

The RDiscount :autolink feature is confused by »« :

 ruby-1.9.2-head :008 > markdown = RDiscount.new("mailto:", :autolink)
 => #<RDiscount:0x00000000c78288 @text="mailto:", @autolink=true> 
ruby-1.9.2-head :009 > puts markdown.to_html
<p>mailto:</p>
 => nil 
ruby-1.9.2-head :010 > markdown = RDiscount.new("»mailto:«", :autolink)
 => #<RDiscount:0x00000000a75080 @text="»mailto:«", @autolink=true> 
ruby-1.9.2-head :011 > puts markdown.to_html
<p>»<a href="&#x6d;&#x61;&#105;&#108;&#116;&#x6f;&#58;&#xc2;&#xab;">&#xc2;&#171;</a></p>
 => nil
mbelow commented 13 years ago

seems to be a discount problem:

markdown -f autolink -s »mailto:«
<p>»<a href="&#x6d;&#x61;&#105;&#x6c;&#116;&#x6f;&#58;&#194;&#xab;">&#194;&#xab;</a></p>
davidfstr commented 11 years ago

@mbelow Please bring this issue up with the Discount maintainer.