From dde40492e294c7a8d62cea9700684238207b6f2c Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 19 Oct 2023 09:15:29 +0200 Subject: [PATCH] disabled: number highlighting in code block as it breaks html encoding --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 3c5119d..d65ff76 100644 --- a/main.js +++ b/main.js @@ -2041,7 +2041,8 @@ function applycolorsonline(line, index, options) } else if (options.code) { - line = line.replace(/\b(\d+)\b/g, "$1"); + //breaks html escape + //line = line.replace(/\b(\d+)\b/g, "$1"); if (languagekeywords[options.language]) { var keywords = languagekeywords[options.language];