diff --git a/main.js b/main.js index a606f05..64458f1 100644 --- a/main.js +++ b/main.js @@ -1522,13 +1522,6 @@ function ontopbarclick() function md2html(content) { - // dumb fallback for offline mode - if (typeof showdown == "undefined") return content - .replace(/\*\*([^\*]*)\*\*/g, "$1") - .replace(/\*([^\*]*)\*/g, "$1") - .replace(/\## (.*)/g, "

$1

") - .replace(/\# (.*)/g, "

$1

") - .replace(/\n/g, "
"); var converter = new showdown.Converter(); converter.setOption("simplifiedAutoLink", true); converter.setOption("simpleLineBreaks", true);