mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
34 lines
608 B
Markdown
34 lines
608 B
Markdown
# `@vuepress-plume/vuepress-plugin-caniuse`
|
|
|
|
为 markdown 添加 can-i-use 容器支持
|
|
## Install
|
|
```
|
|
yarn add @vuepress-plume/vuepress-plugin-caniuse
|
|
```
|
|
## Usage
|
|
``` js
|
|
// .vuepress/config.js
|
|
module.exports = {
|
|
//...
|
|
plugins: [
|
|
['@vuepress-plume/vuepress-plugin-caniuse', { mode: 'embed' }]
|
|
]
|
|
// ...
|
|
}
|
|
```
|
|
|
|
### options
|
|
|
|
- mode: 渲染模式,默认值 `embed`
|
|
- embed: 交互式嵌入,通过 iframe 嵌入可交互的 can-i-use
|
|
- image: 仅添加 图片
|
|
|
|
``` md
|
|
::: caniuse css-matches-pseudo
|
|
:::
|
|
```
|
|
|
|
## 效果
|
|
|
|

|