Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-15 00:40:04 +03:00
parent ef666e91d0
commit e313a1a7e3

View File

@ -255,7 +255,7 @@ var styling = {
__parse__: function(text, editor, elem){ __parse__: function(text, editor, elem){
return text return text
// markers... // markers...
.replace(/(\s*)(?<!\\)(FEATURE:|Q:|Question:|Note:)(\s*)/gm, .replace(/(\s*)(?<!\\)(FEATURE[:?]|Q:|Question:|Note:)(\s*)/gm,
'$1<b class="$2">$2</b>$3') '$1<b class="$2">$2</b>$3')
.replace(/(\s*)(?<!\\)(ASAP|BUG|FIX|HACK|STUB|WARNING|CAUTION)(\s*)/gm, .replace(/(\s*)(?<!\\)(ASAP|BUG|FIX|HACK|STUB|WARNING|CAUTION)(\s*)/gm,
'$1<span class="highlight $2">$2</span>$3') '$1<span class="highlight $2">$2</span>$3')