文章-代码-表格-样式
This commit is contained in:
+4
-1
@@ -1,6 +1,8 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@@ -11,7 +13,8 @@ export default defineConfig({
|
||||
integrations: [sitemap()],
|
||||
markdown: {
|
||||
processor: unified({
|
||||
remarkPlugins: [remarkHexoLinkCards],
|
||||
remarkPlugins: [remarkMath, remarkHexoLinkCards],
|
||||
rehypePlugins: [rehypeMathjax],
|
||||
}),
|
||||
shikiConfig: {
|
||||
theme: 'github-dark',
|
||||
|
||||
Reference in New Issue
Block a user