diaspora/diaspora — pull request #3047 by Raven24 (2012-03-24 01:04:43+00:00)
Title: allow umlauts and other non-ascii characters in markdown urls

this fixes #2665

- Adds the js punycode lib from https://github.com/bestiejs/punycode.js (GPL/MIT)
(understood by IE7 or better - "better" includes all other browsers)
- Adds a pre-processing hook to PageDown that converts urls to punycode (only changes non-ascii parts in urls) and leaves the visible part as non-ascii (if any)
(url regex copied from http://daringfireball.net/2010/07/improved_regex_for_matching_urls)
see https://en.wikipedia.org/wiki/Internationalized_domain_name for more info
- Adds tests for the whole stuff
(hopefully I didn't miss anything, ***please peer-review***)

... of course this would be easier to integrate upstream into PageDown, but that should do it for now ;)