disabled: number highlighting in code block as it breaks html encoding

This commit is contained in:
quenousimporte 2023-10-18 08:50:51 +02:00
parent 553c8a0701
commit 6e4a01b9c3
1 changed files with 2 additions and 1 deletions

View File

@ -2057,7 +2057,8 @@ function applycolors()
}
else if (code)
{
line = line.replace(/\b(\d+)\b/g, "<span style='color:" + settings.accentcolor + "'>$1</span>");
//breaks html escape
//line = line.replace(/\b(\d+)\b/g, "<span style='color:" + settings.accentcolor + "'>$1</span>");
if (languagekeywords[language])
{
var keywords = languagekeywords[language];