jonschlinkert / remarkable

Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.
https://jonschlinkert.github.io/remarkable/demo/
MIT License
5.74k stars 371 forks source link

Smart typographer clashes with autolinker #142

Open Leonya opened 9 years ago

Leonya commented 9 years ago

Enter a link that contains three dots, e.g.

http://www.google.com/foo...bar

In the converted HTML the link is auto-linked AND the three dots are converted to an ellipsis, effectively breaking the link.

kir commented 8 years ago

A similar problem exists for http://www.site.com?_var_=value A live example of such a link is produced by facebook, like

https://m.facebook.com/groups/528388990598817?view=permalink&id=722462694524778&refid=18&_ft_=qid.6280750150653635403%3Amf_story_key.722462694524778%3Atl_objid.722462694524778
jcalfee commented 8 years ago

This has two dashes, guess that gets converted to a html long dash (forgive my verbage). This causes the linkify to think the URL has terminated early. So, this https://youtu.be/Jj--BIaXwbA becomes: <a href="https://youtu.be/Jj">https://youtu.be/Jj</a>–BIaXwbA