* feat(theme)!: migrate `plugin-markdown-hint` * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * chore: tweak * fix(theme): improve `home-blog` styles in mobile, close #210 * chore: tweak * chore: tweak * chore: tweak * feat: add support optional icon for `file-tree` and `code-tabs` * chore: tweak * chore: tweak * chore: tweak * chore: tweak
41 lines
800 B
Markdown
41 lines
800 B
Markdown
---
|
|
title: Markdown Image
|
|
createTime: 2024/09/24 12:06:28
|
|
permalink: /config/plugins/markdown-image/
|
|
---
|
|
|
|
## 概述
|
|
|
|
为 Markdown 图像添加附加功能。
|
|
|
|
关联插件:[@vuepress/plugin-markdown-image](https://ecosystem.vuejs.press/zh/plugins/markdown/markdown-image.html)
|
|
|
|
## 配置
|
|
|
|
插件默认不启用任何功能,你需要手动开启它们。
|
|
|
|
```ts
|
|
import { defineUserConfig } from 'vuepress'
|
|
import { plumeTheme } from 'vuepress-theme-plume'
|
|
|
|
export default defineUserConfig({
|
|
theme: plumeTheme({
|
|
plugins: {
|
|
markdownImage: {
|
|
// 启用 figure
|
|
// figure: true,
|
|
|
|
// 启用图片懒加载
|
|
// lazyload: true,
|
|
|
|
// 启用图片标记
|
|
// mark: true,
|
|
|
|
// 启用图片大小
|
|
// size: true,
|
|
}
|
|
}
|
|
}),
|
|
})
|
|
```
|