feat: add GitHub-style markdown alert support

This commit is contained in:
2026-04-11 07:55:17 -04:00
parent 497da8038e
commit ad96c06506
4 changed files with 45 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import rehypeExternalLinks from 'rehype-external-links'
import rehypePrettyCode from 'rehype-pretty-code'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import remarkEmoji from 'remark-emoji'
import remarkGithubAlerts from 'remark-github-blockquote-alert'
import remarkMath from 'remark-math'
import remarkSectionize from 'remark-sectionize'
import rehypeDocument from 'rehype-document'
@@ -159,6 +160,6 @@ export default defineConfig({
},
],
],
remarkPlugins: [remarkMath, remarkEmoji, remarkSectionize],
remarkPlugins: [remarkMath, remarkEmoji, remarkSectionize, remarkGithubAlerts],
},
})