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

This commit is contained in:
quenousimporte 2023-10-19 09:15:29 +02:00
parent 3eff6a48af
commit dde40492e2
1 changed files with 2 additions and 1 deletions

View File

@ -2041,7 +2041,8 @@ function applycolorsonline(line, index, options)
}
else if (options.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[options.language])
{
var keywords = languagekeywords[options.language];