]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/wmd/showdown.js
puts back the i18n code for the editor and adds back in the image uploader.
[osqa.git] / forum / skins / default / media / js / wmd / showdown.js
index 3f4b9947e2575528185d0a937ebfd36692ed22b2..0efa6c5ecd93b14318ff292c434abf9e902e35ac 100644 (file)
@@ -6,9 +6,6 @@
 // Original Markdown Copyright (c) 2004-2005 John Gruber
 //   <http://daringfireball.net/projects/markdown/>
 //
-// Redistributable under a BSD-style open source license.
-// See license.txt for more information.
-//
 // The full source distribution is at:
 //
 //                             A A L
@@ -184,7 +181,7 @@ var _StripLinkDefinitions = function(text) {
                          /gm,
                          function(){...});
        */
-       var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm,
+       var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm,
                function (wholeMatch,m1,m2,m3,m4) {
                        m1 = m1.toLowerCase();
                        g_urls[m1] = _EncodeAmpsAndAngles(m2);  // Link IDs are case-insensitive