feat: improved ToC highlighting

This commit is contained in:
enscribe 2024-09-13 17:45:18 -07:00
parent b93eddea6b
commit c2fa587935
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
16 changed files with 636 additions and 115 deletions

View file

@ -14,6 +14,7 @@ import rehypePrettyCode from 'rehype-pretty-code'
import remarkEmoji from 'remark-emoji'
import remarkMath from 'remark-math'
import remarkToc from 'remark-toc'
import sectionize from '@hbsnow/rehype-sectionize'
// https://astro.build/config
export default defineConfig({
@ -31,6 +32,8 @@ export default defineConfig({
rehypePlugins: [
rehypeHeadingIds,
rehypeKatex,
// @ts-expect-error
sectionize,
[
rehypePrettyCode,
{