1.0.0 • Published 5 years ago

vuepress-plugin-import-codes v1.0.0

Weekly downloads
7
License
ISC
Repository
github
Last release
5 years ago

vuepress-plugin-import-codes

Vuepress plugin for import code with markdown-it-container.

Install

yarn add @spring/vuepress-plugin-import-code -D

You need install vuepress 1.x first.

Usage

Use vuepress-plugin-import-codes in config.js.

module.exports = {
    plugins: [
        'vuepress-plugin-import-codes'
    ]
}

You may need some style in .vuepress/styles/index.styl.

.markdown-import-code__content {
    color: #000;
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid #eaeefb;
    border-radius: 3px;
    background-color: #fafafa;
}

Now you can use it as blow.

::: code /docs/.vuepress/util.js
`EscapeHtml` for escape HTML tags.
:::

You will got this.

npm.io

Buy me coffee

npm.io npm.io

For a detailed explanation on how things work, contact me www.389055604@qq.com.