mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
parent
7a1ec65a9a
commit
7a96dd7549
@ -146,7 +146,7 @@ function code_highlight_style() {
|
||||
}
|
||||
var ele_name = $('pre:eq(' + i + ')')[0].children[0].className;
|
||||
var lang = ele_name.substr(0, ele_name.indexOf(" ")).replace('language-', '');
|
||||
if (lang.toLowerCase() == "hljs") var lang = "text";
|
||||
if (lang.toLowerCase() == "hljs") var lang = $('pre:eq(' + i + ') code').attr("class").replace('hljs', '')?$('pre:eq(' + i + ') code').attr("class").replace('hljs', ''):"text";
|
||||
$('pre:eq(' + i + ')').addClass('highlight-wrap');
|
||||
for (var t in attributes) {
|
||||
$('pre:eq(' + i + ')').attr(t, attributes[t]);
|
||||
|
Loading…
Reference in New Issue
Block a user