feat: add mermaid

This commit is contained in:
camera-2018
2023-07-14 23:03:35 +08:00
parent b8fbdf5b55
commit 5f224e8601
4 changed files with 2017 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { defineConfig } from 'vitepress'
// import { defineConfig } from 'vitepress'
import { withMermaid } from "vitepress-plugin-mermaid";
import mathjax3 from 'markdown-it-mathjax3';
const customElements = [
@@ -93,7 +93,7 @@ const customElements = [
];
// https://vitepress.dev/reference/site-config
export default defineConfig({
export default withMermaid({
lang: 'zh-CN',
title: "HDU-CS-WIKI",
description: "HDU计算机科学讲义",