disabled: number highlighting in code block as it breaks html encoding
This commit is contained in:
parent
3eff6a48af
commit
dde40492e2
3
main.js
3
main.js
|
@ -2041,7 +2041,8 @@ function applycolorsonline(line, index, options)
|
||||||
}
|
}
|
||||||
else if (options.code)
|
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])
|
if (languagekeywords[options.language])
|
||||||
{
|
{
|
||||||
var keywords = languagekeywords[options.language];
|
var keywords = languagekeywords[options.language];
|
||||||
|
|
Loading…
Reference in New Issue