From 33a45c8f7c4b56d4d3f6effc0893eeb138abfee7 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 7 Nov 2023 11:35:32 +0100 Subject: [PATCH] changed: use shadow instead of bold to allow bold with non-monospace fonts --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index c669428..1f748d2 100644 --- a/main.js +++ b/main.js @@ -1955,7 +1955,7 @@ function rawline2html(line, index, options) if (line.startsWith("#")) { line = line.replace(/(#* )/, "$1"); // to check! - line = "" + line + ""; + line = "" + line + ""; } // bold and italics @@ -1964,7 +1964,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("* ")) @@ -2090,7 +2090,7 @@ function rawline2html(line, index, options) } else { - line = line.replace(/(\(\w\))/g, "$1"); + line = line.replace(/(\(\w\))/g, "$1"); line = line.replace(/(@\w*)/g, "$1"); line = line.replace(/(\s\+\w*)/g, "$1"); }