mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
import { QuartzTransformerPlugin } from "../types"
|
|
import rehypePrettyCode, { Options as CodeOptions } from "rehype-pretty-code"
|
|
|
|
export const SyntaxHighlighting: QuartzTransformerPlugin = () => ({
|
|
name: "SyntaxHighlighting",
|
|
htmlPlugins() {
|
|
return [
|
|
[
|
|
rehypePrettyCode,
|
|
{
|
|
theme: "css-variables",
|
|
} satisfies Partial<CodeOptions>,
|
|
],
|
|
]
|
|
},
|
|
})
|