remark-plugin-vue-live
Version:
Remark plugin to transform fenced code into examples in vue-live
28 lines (22 loc) • 977 B
Markdown
# remark-plugin-vue-live
[](https://github.com/vue-styleguidist/remark-plugin-vue-live/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/remark-plugin-vue-live) [](https://www.npmjs.com/package/remark-plugin-vue-live)
[](https://github.com/semantic-release/semantic-release)
A remark plugin make markdown example plugin.
## Usage Example
```js
const remark = require("remark");
const plugin = require("remark-plugin-vue-live");
remark()
.use(plugin, { liveFilter: (lang) => /pizza/.test(lang) })
.process(
`
\`\`\`pizza
<comp/>
\`\`\`
`,
(err, file) => {
console.log(file);
}
);
```