mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
更新 vuepress 相关依赖至 2.0.0.beta.41,暂时下线hope相关插件 BREAKING CHANGE: 跟随vuepress@2.0.0.beta.41的重大变更
@vuepress-plume/vuepress-plugin-caniuse
为 markdown 添加 can-i-use 容器支持
Install
yarn add @vuepress-plume/vuepress-plugin-caniuse
Usage
// .vuepress/config.js
module.exports = {
//...
plugins: [
['@vuepress-plume/vuepress-plugin-caniuse', { mode: 'embed' }]
]
// ...
}
options
- mode: 渲染模式,默认值
embed- embed: 交互式嵌入,通过 iframe 嵌入可交互的 can-i-use
- image: 仅添加 图片
::: caniuse css-matches-pseudo
:::
