mirror of
https://github.com/sendevia/website.git
synced 2026-03-05 23:32:45 +08:00
chore(config): update markdown-it plugins and add markdown-it imgMark
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import { defineConfig } from "vitepress";
|
||||
import packageJson from "../package.json";
|
||||
|
||||
// markdown-it plugins
|
||||
// https://mdit-plugins.github.io/zh/align.html
|
||||
import { align } from "@mdit/plugin-align";
|
||||
// https://github.com/valeriangalliat/markdown-it-anchor
|
||||
import anchor from "markdown-it-anchor";
|
||||
// markdown-it plugins
|
||||
// https://mdit-plugins.github.io/align.html
|
||||
import { align } from "@mdit/plugin-align";
|
||||
// https://mdit-plugins.github.io/footnote.html
|
||||
import { footnote } from "@mdit/plugin-footnote";
|
||||
// https://mdit-plugins.github.io/tasklist.html
|
||||
import { tasklist } from "@mdit/plugin-tasklist";
|
||||
// https://mdit-plugins.github.io/img-mark.html
|
||||
import { imgMark } from "@mdit/plugin-img-mark";
|
||||
import { wrapHeadingsAsSections } from "./theme/utils/sectionWrapper";
|
||||
|
||||
export default defineConfig({
|
||||
@@ -42,6 +44,7 @@ export default defineConfig({
|
||||
md.use(footnote);
|
||||
md.use(wrapHeadingsAsSections);
|
||||
md.use(tasklist, { label: true });
|
||||
md.use(imgMark);
|
||||
},
|
||||
image: {
|
||||
lazyLoading: true,
|
||||
@@ -94,6 +97,7 @@ export default defineConfig({
|
||||
navSegment: [
|
||||
{ text: "首页", icon: "home", link: "/" },
|
||||
{ text: "AincradMix", icon: "borg", link: "/posts/AincradMix" },
|
||||
{ text: "组件", icon: "code_blocks", link: "/posts/组件" },
|
||||
{
|
||||
text: "作品集",
|
||||
icon: "auto_awesome_mosaic",
|
||||
|
||||
11
package.json
11
package.json
@@ -9,16 +9,17 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@material/material-color-utilities": "^0.3.0",
|
||||
"@vueuse/core": "^14.2.0",
|
||||
"@vueuse/core": "^14.2.1",
|
||||
"pinia": "^3.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@mdit/plugin-align": "^0.23.1",
|
||||
"@mdit/plugin-footnote": "^0.22.4",
|
||||
"@mdit/plugin-tasklist": "^0.22.3",
|
||||
"@mdit/plugin-align": "^0.24.0",
|
||||
"@mdit/plugin-footnote": "^0.23.0",
|
||||
"@mdit/plugin-img-mark": "^0.23.0",
|
||||
"@mdit/plugin-tasklist": "^0.23.0",
|
||||
"markdown-it-anchor": "^9.2.0",
|
||||
"sass-embedded": "^1.97.3",
|
||||
"vitepress": "^2.0.0-alpha.16",
|
||||
"vue": "^3.5.28"
|
||||
"vue": "^3.5.29"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user