sundown icon indicating copy to clipboard operation
sundown copied to clipboard

xmpp: URL

Open nono opened this issue 14 years ago • 2 comments

Hi,

I'm using Redcarpet 1.17.2 with :autolink and I have some problems with xmpp: URL. Ideally, xmpp: links could be automatically detected by the autolink feature, but for the moment, I'd like to enter these URL as simple links. It doesn't work because they are transformed to mailto: URL by the autolink:

Redcarpet.new("xmpp:[email protected]", :autolink).to_html
=> "<p>xmpp:<a href=\"mailto:[email protected]\">[email protected]</a></p>\n"
Redcarpet.new("[xmpp:[email protected]](xmpp:[email protected])", :autolink).to_html
=> "<p><a href=\"xmpp:[email protected]\">xmpp:<a href=\"mailto:[email protected]\">[email protected]</a></a></p>\n"

Do you think, you can do something for this case?

nono avatar Aug 22 '11 19:08 nono

Yes, this is certainly an interesting corner case. I'll try to handle it more gracefully.

vmg avatar Aug 22 '11 21:08 vmg

Just an update, the second case seems to be fixed by 9dfeea9d.

gregleaver avatar Mar 03 '12 21:03 gregleaver