keroosha.cybergulag.today/quartz/plugins/transformers/syntax.ts

17 lines
402 B
TypeScript
Raw Normal View History

2023-06-02 02:05:14 +03:00
import { QuartzTransformerPlugin } from "../types"
import rehypePrettyCode, { Options as CodeOptions } from "rehype-pretty-code"
export const SyntaxHighlighting: QuartzTransformerPlugin = () => ({
name: "SyntaxHighlighting",
htmlPlugins() {
2023-07-23 03:27:41 +03:00
return [
[
rehypePrettyCode,
{
theme: "css-variables",
} satisfies Partial<CodeOptions>,
],
]
},
})