mirror of https://github.com/logos-co/roadmap.git
12 lines
355 B
TypeScript
12 lines
355 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>]]
|
|
}
|
|
})
|