From 1cd2227dcdd1b75a9c5454605431efb6a0b17b3c Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 20 Oct 2023 12:01:58 +0200 Subject: [PATCH] removed: useless fallback --- main.js | 7 ------- 1 file changed, 7 deletions(-) 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);