文章渲染优化
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ import sitemap from '@astrojs/sitemap';
|
||||
import { unified } from '@astrojs/markdown-remark';
|
||||
import rehypeMathjax from 'rehype-mathjax';
|
||||
import remarkMath from 'remark-math';
|
||||
import remarkHexoLinkCards from './src/lib/remarkHexoLinkCards.mjs';
|
||||
import remarkButterflyTags from './src/lib/remarkButterflyTags.mjs';
|
||||
import { siteConfig } from './site.config.mjs';
|
||||
|
||||
export default defineConfig({
|
||||
@@ -12,7 +12,7 @@ export default defineConfig({
|
||||
integrations: [sitemap()],
|
||||
markdown: {
|
||||
processor: unified({
|
||||
remarkPlugins: [remarkMath, remarkHexoLinkCards],
|
||||
remarkPlugins: [remarkMath, remarkButterflyTags],
|
||||
rehypePlugins: [rehypeMathjax],
|
||||
}),
|
||||
shikiConfig: {
|
||||
|
||||
Reference in New Issue
Block a user