feat: add patch to rehype-pretty-code
This commit is contained in:
parent
bbdb1ef828
commit
8e6df747e0
8 changed files with 595 additions and 91 deletions
|
@ -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],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue