mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 00:53:19 +08:00
feat(markdown): 添加GitHub风格警告支持
实现GitHub风格警告块([!NOTE], [!TIP]等)到标准容器指令的转换 更新astro配置使用自定义插件
This commit is contained in:
@@ -14,7 +14,7 @@ import rehypeExternalLinks from "rehype-external-links";
|
||||
import rehypeKatex from "rehype-katex";
|
||||
import rehypeSlug from "rehype-slug";
|
||||
import remarkDirective from "remark-directive"; /* Handle directives */
|
||||
import remarkGithubAdmonitionsToDirectives from "remark-github-admonitions-to-directives";
|
||||
import { remarkGithubAdmonitions } from "./src/plugins/remark-github-admonitions.js";
|
||||
import remarkMath from "remark-math";
|
||||
import remarkSectionize from "remark-sectionize";
|
||||
import { imageFallbackConfig, siteConfig } from "./src/config.ts";
|
||||
@@ -122,7 +122,7 @@ export default defineConfig({
|
||||
remarkMath,
|
||||
remarkReadingTime,
|
||||
remarkExcerpt,
|
||||
remarkGithubAdmonitionsToDirectives,
|
||||
remarkGithubAdmonitions,
|
||||
remarkDirective,
|
||||
remarkSectionize,
|
||||
parseDirectiveNode,
|
||||
|
||||
Reference in New Issue
Block a user