文章-代码-表格-样式

This commit is contained in:
2026-06-18 17:48:17 +08:00 Unverified
parent ce4a201508
commit aa87051c15
6 changed files with 574 additions and 5 deletions
+4 -1
View File
@@ -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',