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:
parent
dcd534a5bd
commit
20bc217a15
2 changed files with 15 additions and 10 deletions
7
site.ts
7
site.ts
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue