diff --git a/public/res/libs/Markdown.Converter.js b/public/res/libs/Markdown.Converter.js index a3829929..5e9de51e 100644 --- a/public/res/libs/Markdown.Converter.js +++ b/public/res/libs/Markdown.Converter.js @@ -333,6 +333,8 @@ else /gm,function(){...}}; */ //text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm, hashElement); + + // The .* is highly CPU consuming and I don't know what it's for (not even in the original showdown lib) text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?<\/\2>[ \t]*(?=\n+)\n)/gm, hashElement); // Special case just for