mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
fix: highlight
This commit is contained in:
@@ -3515,7 +3515,7 @@ export var highlight = _.highlight = (function (exports) {
|
||||
each(lang, function(val) {
|
||||
if (!val.language) return;
|
||||
str = str.replace(val.re, function($1, $2) {
|
||||
subLangs[subLangSi++] = exports($2, val.language);
|
||||
subLangs[subLangSi++] = exports($2, val.language, style);
|
||||
return $1.replace($2, '___subtmpl' + (subLangSi - 1) + '___');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user