Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@pengzhanbo/vuepress-plugin-caniuse

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@pengzhanbo/vuepress-plugin-caniuse

vuepress2.x plugin, support can-I-use container for markdown

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

vuepress-plugin-caniuse

支持在 vuepress2.x 文档中嵌入 can-I-use 的 feature support chart

Install

yarn add @pengzhanbo/vuepress-plugin-caniuse

Usage

在你的vuepress 配置文件中添加插件。 并进行插件配置

options

type: 渲染方式

  • embed: 交互式嵌入。
  • image: 仅插入一张图片
// vuepress config.js
export default {
    // ...
    plugin: [
        // ...
        ['@pengzhanbo/vuepress-plugin-caniuse', { type: 'embed' }] // embed | image
    ]
    // ...
}

markdown 书写格式:

::: caniuse [feature]
:::

feature的标准写法值,参考:https://caniuse.bitsofco.de/

In your markdown file:

::: caniuse css-matches-pseudo
:::

效果:

css-dir-pseudo

Keywords

vuepress-next

FAQs

Package last updated on 03 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts