From: Alan Knowles Date: Sun, 24 Jul 2011 13:48:54 +0000 (+0800) Subject: ux/Showdown.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5c7d2c76c8c1a277055d5c0616eda996ef438270;p=roojs1 ux/Showdown.js --- diff --git a/ux/Showdown.js b/ux/Showdown.js index f37c5519a6..cfdb855747 100644 --- a/ux/Showdown.js +++ b/ux/Showdown.js @@ -181,7 +181,7 @@ Roo.ux.Showdown.converter = function() { /gm, function(){...}); */ - var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm, + text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm, function (wholeMatch,m1,m2,m3,m4) { m1 = m1.toLowerCase(); g_urls[m1] = _EncodeAmpsAndAngles(m2); // Link IDs are case-insensitive