1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

highlight: set class prefix to token- and ignore no-highlight to suppress errors

This commit is contained in:
RGBCube 2025-06-08 18:08:43 +03:00
parent dcd534a5bd
commit 20bc217a15
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 15 additions and 10 deletions

View file

@ -170,7 +170,12 @@ site.use(extractDate());
site.use(redirects());
site.use(tailwindcss());
site.use(codeHighlight());
site.use(codeHighlight({
options: {
classPrefix: "token-",
noHighlightRe: /^no-highlight$/,
},
}));
site.use(resolveUrls());
site.use(slugifyUrls({