add support for github alerts

This commit is contained in:
Timothy Lin
2024-06-02 22:05:25 +08:00
parent cd25e6138a
commit 681b7b7be9
5 changed files with 18 additions and 1 deletions
+2
View File
@@ -7,6 +7,7 @@ import { fromHtmlIsomorphic } from 'hast-util-from-html-isomorphic'
// Remark packages
import remarkGfm from 'remark-gfm'
import remarkMath from 'remark-math'
import { remarkAlert } from 'remark-github-blockquote-alert'
import {
remarkExtractFrontmatter,
remarkCodeTitles,
@@ -153,6 +154,7 @@ export default makeSource({
remarkCodeTitles,
remarkMath,
remarkImgToJsx,
remarkAlert,
],
rehypePlugins: [
rehypeSlug,