diff --git a/main.js b/main.js index 56ed72a..423ffc2 100644 --- a/main.js +++ b/main.js @@ -1809,7 +1809,7 @@ function searchinlist(list) else { var ts = document.createElement("span"); - ts.setAttribute("style", "color:grey"); + ts.setAttribute("class", "searchlistprefix"); ts.innerHTML = item.prefix || ""; elt.appendChild(ts); @@ -1822,7 +1822,7 @@ function searchinlist(list) item.suffix.forEach(t => { ts = document.createElement("span"); - ts.setAttribute("style", "color:grey"); + ts.setAttribute("class", "searchlistsuffix"); ts.innerHTML = " " + t; elt.appendChild(ts); }); @@ -2056,8 +2056,8 @@ function rawline2html(line, index, options) // headings if (line.startsWith("#")) { - line = line.replace(/(#* )/, "$1"); - line = "" + line + ""; + line = line.replace(/(#* )/, "$1"); + line = "" + line + ""; } // bold and italics @@ -2067,7 +2067,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("* ")) { @@ -2083,7 +2083,7 @@ function rawline2html(line, index, options) { if (line.startsWith(marker) && marker.trim()) { - line = line.replace(marker, "" + marker + ""); + line = line.replace(marker, "" + marker + ""); } }); @@ -2099,7 +2099,7 @@ function rawline2html(line, index, options) options.header = false; } line = line || emptyline; - line = "" + line + ""; + line = "" + line + ""; } // code blocks @@ -2107,7 +2107,7 @@ function rawline2html(line, index, options) { options.code = true; options.language = line.substring(3); - line = "