diff --git a/main.js b/main.js index c27dd73..eb79ddf 100644 --- a/main.js +++ b/main.js @@ -2047,7 +2047,7 @@ function rawline2html(line, index, options) // lists markerslist.forEach(marker => { - if (line.startsWith(marker)) + if (line.startsWith(marker) && marker.trim()) { line = line.replace(marker, "" + marker + ""); } @@ -2089,11 +2089,17 @@ function rawline2html(line, index, options) } else if (options.code) { + var comment = false; + if (line.match(/^\s*\/\//)) + { + line = "" + line + ""; + comment = true; + } if (settings.darkcode) { line = "