feat: add patch to rehype-pretty-code

This commit is contained in:
enscribe 2025-03-21 20:53:33 -07:00
parent bbdb1ef828
commit 8e6df747e0
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
8 changed files with 595 additions and 91 deletions

View file

@ -9,6 +9,7 @@ import expressiveCode from 'astro-expressive-code'
import { rehypeHeadingIds } from '@astrojs/markdown-remark'
import rehypeExternalLinks from 'rehype-external-links'
import rehypeKatex from 'rehype-katex'
import rehypePrettyCode from 'rehype-pretty-code'
// import sectionize from '@hbsnow/rehype-sectionize'
import remarkEmoji from 'remark-emoji'
import remarkMath from 'remark-math'
@ -90,6 +91,15 @@ export default defineConfig({
rehypeHeadingIds,
rehypeKatex,
// sectionize,
[
rehypePrettyCode,
{
theme: {
light: 'min-light',
dark: 'min-dark',
},
},
],
],
remarkPlugins: [remarkToc, remarkMath, remarkEmoji],
},