1.0.5 • Published 2 years ago

vuepress-plugin-run-codeblock v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vuepress-plugin-run-codeblock

Introduction

show and run codeblock in vuepress

Support

vuepress 1.x

Install

npm i vuepress-plugin-run-codeblock

Usage

step 1

in [..your vuepress project..]/docs/.vuepress/config.js

set:

...
plugins: [
  [require('vuepress-plugin-run-codeblock')],
],
...

step 2

use in markdowm

  • base
::: run
```js
console.log('js')
```
:::

1

you can click the button to run the code

2

  • show file name
::: run file/lib/index.js
```js
console.log('js')
```
:::

3

  • use in another container
:::: details Click me to view the code
::: run
```js
console.log('js')
```
:::
::::

4

see: markdown-it-container/issues

About

the api is supported by https://wandbox.org/

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago