From f17e39f432b6a4002a772532f7ac23e7899a95eb Mon Sep 17 00:00:00 2001 From: Foster Hangdaan Date: Sat, 14 Sep 2024 08:01:55 -0400 Subject: [PATCH] Set `noHighlightRe` option The other options needed to be defined as well. --- _config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_config.ts b/_config.ts index 3f00033..9031f1c 100644 --- a/_config.ts +++ b/_config.ts @@ -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: {