Merge pull request #3052 from Raven24/fix-umlauts-fix-webkit
fix broken markdown links in webkit-browsers [ci skip]
This commit is contained in:
commit
95012f45af
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
var protocol = arguments[4];
|
var protocol = arguments[4];
|
||||||
var unicodeUrl = arguments[6];
|
var unicodeUrl = arguments[6];
|
||||||
var asciiUrl = protocol+punycode.toASCII(unicodeUrl);
|
var asciiUrl = protocol+punycode.toASCII(unicodeUrl);
|
||||||
if(arguments[1] == "") { // inline link
|
if( !arguments[1] || arguments[1] == "") { // inline link
|
||||||
if(arguments[2] == "<") return "["+protocol+unicodeUrl+"]("+asciiUrl+")"; // without link text
|
if(arguments[2] == "<") return "["+protocol+unicodeUrl+"]("+asciiUrl+")"; // without link text
|
||||||
else return arguments[2]+asciiUrl+arguments[7]; // with link text
|
else return arguments[2]+asciiUrl+arguments[7]; // with link text
|
||||||
} else { // reference style link
|
} else { // reference style link
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue