From 1640616c06884f1bd8e4d507bc58e521ff7241f1 Mon Sep 17 00:00:00 2001 From: balpha Date: Sun, 24 Feb 2013 13:52:46 +0100 Subject: [PATCH] PageDown update overwrote a discourse customization; put it back in --- app/assets/javascripts/external/Markdown.Converter.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/external/Markdown.Converter.js b/app/assets/javascripts/external/Markdown.Converter.js index 13c601e08..5ae53d317 100644 --- a/app/assets/javascripts/external/Markdown.Converter.js +++ b/app/assets/javascripts/external/Markdown.Converter.js @@ -1274,9 +1274,12 @@ else // autolink anything like - var replacer = function (wholematch, m1) { return "" + pluginHooks.plainLinkText(m1) + ""; } + var replacer = function (wholematch, m1) { + m1encoded = m1.replace(/\_\_/, '%5F%5F'); + return "" + pluginHooks.plainLinkText(m1) + ""; + } text = text.replace(/<((https?|ftp):[^'">\s]+)>/gi, replacer); - + return text; }