removed: useless fallback

This commit is contained in:
quenousimporte 2023-10-20 12:01:58 +02:00
parent 678373913e
commit 1cd2227dcd
1 changed files with 0 additions and 7 deletions

View File

@ -1522,13 +1522,6 @@ function ontopbarclick()
function md2html(content)
{
// dumb fallback for offline mode
if (typeof showdown == "undefined") return content
.replace(/\*\*([^\*]*)\*\*/g, "<strong>$1</strong>")
.replace(/\*([^\*]*)\*/g, "<em>$1</em>")
.replace(/\## (.*)/g, "<h2>$1</h2>")
.replace(/\# (.*)/g, "<h1>$1</h1>")
.replace(/\n/g, "<br>");
var converter = new showdown.Converter();
converter.setOption("simplifiedAutoLink", true);
converter.setOption("simpleLineBreaks", true);