website: render the design essays' TeX (math: true, mathjax3 pinned to v4)

design/revertible-effects and design/context-model carry real TeX that was
showing as literal $$ source. markdown: { math: true } enables
markdown-it-mathjax3; pinned ^4.3.2 deliberately — v5 injects a <style> tag
per formula (31 on one page), which Vue's template compiler rejects, so v5
cannot work under VitePress; v4 emits pure SVG (probed: 0 style tags).
This commit is contained in:
lintianle
2026-07-16 18:57:44 +08:00
parent 20bcd66dbf
commit 4c49677469
3 changed files with 310 additions and 2 deletions

View File

@@ -5,6 +5,13 @@ export default defineConfig({
title: 'DeepSeek Harness',
description: '插件化 Agent 开发框架',
// The design essays (design/revertible-effects, design/context-model) carry
// real TeX; math: true wires markdown-it-mathjax3 into the pipeline.
// markdown-it-mathjax3 is pinned to ^4 (NOT 5.x): v5 injects a <style> tag
// per formula, which Vue's template compiler rejects ("Tags with side
// effect … are ignored in client component templates"); v4 emits pure SVG.
markdown: { math: true },
locales: {
'zh-CN': zhCN,
},

View File

@@ -9,6 +9,7 @@
"preview": "vitepress preview ."
},
"devDependencies": {
"markdown-it-mathjax3": "^4.3.2",
"vitepress": "^1.6.3",
"vue": "^3.5.13"
}