Set noHighlightRe
option
The other options needed to be defined as well.
This commit is contained in:
parent
bb714e9345
commit
f17e39f432
1 changed files with 6 additions and 0 deletions
|
@ -56,6 +56,12 @@ site.use(code_highlight({
|
||||||
javascript: lang_javascript,
|
javascript: lang_javascript,
|
||||||
bash: lang_bash,
|
bash: lang_bash,
|
||||||
},
|
},
|
||||||
|
options: {
|
||||||
|
noHighlightRe: /^no-highlight$/i,
|
||||||
|
languageDetectRe: /\blanguage-([\w-]+)\b/i,
|
||||||
|
classPrefix: "hljs-",
|
||||||
|
cssSelector: "pre code",
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
site.use(toc({
|
site.use(toc({
|
||||||
slugify: {
|
slugify: {
|
||||||
|
|
Loading…
Reference in a new issue