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,
|
||||
bash: lang_bash,
|
||||
},
|
||||
options: {
|
||||
noHighlightRe: /^no-highlight$/i,
|
||||
languageDetectRe: /\blanguage-([\w-]+)\b/i,
|
||||
classPrefix: "hljs-",
|
||||
cssSelector: "pre code",
|
||||
},
|
||||
}));
|
||||
site.use(toc({
|
||||
slugify: {
|
||||
|
|
Loading…
Reference in a new issue