Set noHighlightRe option

The other options needed to be defined as well.
This commit is contained in:
Foster Hangdaan 2024-09-14 08:01:55 -04:00
parent bb714e9345
commit f17e39f432
Signed by: foster
GPG key ID: E48D7F49A852F112

View file

@ -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: {