feat: add wordcount heatmap

This commit is contained in:
草师傅 2025-08-06 19:04:29 +08:00
parent 8773b9b0df
commit b79e3e2e47
Signed by: gb
GPG key ID: 43330A030E2D6478
9 changed files with 351 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import sitemap from '@astrojs/sitemap';
import mdx from '@astrojs/mdx';
import { remarkWordCount } from './src/plugins/wordcount.js';
import cloudflare from '@astrojs/cloudflare';
import remarkMath from "remark-math";
@ -27,7 +28,7 @@ export default defineConfig({
theme: 'nord',
wrap: true
},
remarkPlugins: [ remarkMath ],
remarkPlugins: [ remarkMath, remarkWordCount ],
rehypePlugins: [ rehypeKatex ]
},