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