diff --git a/main.js b/main.js index cf74e3f..f21c6ea 100644 --- a/main.js +++ b/main.js @@ -3,7 +3,6 @@ var defaultsettings = fontsize: "16px", fontcolor: "rgb(55, 53, 47)", lineheight: "24px", - accentcolor: "#5AA7CE", margins: "20%", savedelay: 2000, defaultpreviewinsplit: false, @@ -1317,7 +1316,6 @@ function applystyle() document.body.style.fontSize = settings.fontsize; document.body.style.lineHeight = settings.lineheight; document.body.style.color = settings.fontcolor; - document.body.style.caretColor = settings.accentcolor; document.body.style.marginLeft = settings.margins; document.body.style.marginRight = settings.margins; } @@ -2106,8 +2104,8 @@ function rawline2html(line, index, options) // headings if (line.startsWith("#")) { - line = line.replace(/(#* )/, "$1"); // to check! - line = "" + line + ""; + line = line.replace(/(#* )/, "$1"); + line = "" + line + ""; } // bold and italics @@ -2116,7 +2114,7 @@ function rawline2html(line, index, options) { temp = line.substring(2); } - temp = temp.replace(/\*\*([^\*]*)\*\*/g, "**$1**"); + temp = temp.replace(/\*\*([^\*]*)\*\*/g, "**$1**"); temp = temp.replace(/\*([^\*]*)\*/g, "*$1*"); if (line.startsWith("* ")) @@ -2133,7 +2131,7 @@ function rawline2html(line, index, options) { if (line.startsWith(marker) && marker.trim()) { - line = line.replace(marker, "" + marker + ""); + line = line.replace(marker, "" + marker + ""); } }); @@ -2157,7 +2155,7 @@ function rawline2html(line, index, options) { options.code = true; options.language = line.substring(3); - line = "