更新 .vitepress/config.mjs
更新了
import { withMermaid } from 'vitepress-plugin-mermaid'
import mathjax3 from 'markdown-it-mathjax3'
的支持
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import { withMermaid } from 'vitepress-plugin-mermaid'
|
||||
import mathjax3 from 'markdown-it-mathjax3'
|
||||
|
||||
export default defineConfig({
|
||||
export default withMermaid(
|
||||
defineConfig({
|
||||
title: 'HF-MES v5.0 使用手册',
|
||||
description: 'HF-MES v5.0 制造执行系统完整使用指南',
|
||||
lang: 'zh-CN',
|
||||
@@ -200,7 +203,10 @@ export default defineConfig({
|
||||
light: 'github-light',
|
||||
dark: 'github-dark'
|
||||
},
|
||||
lineNumbers: false
|
||||
lineNumbers: false,
|
||||
config(md) {
|
||||
md.use(mathjax3)
|
||||
}
|
||||
},
|
||||
|
||||
head: [
|
||||
@@ -209,3 +215,5 @@ export default defineConfig({
|
||||
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0' }]
|
||||
]
|
||||
})
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user