File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 11# remark-plugin-vue-live
2- A remark plugin make markdown example plugin
2+
3+ [ ![ Build Status] ( https://travis-ci.com/vue-styleguidist/remark-plugin-vue-live.svg?branch=main )] ( https://travis-ci.com/vue-styleguidist/remark-plugin-vue-live )
4+ [ ![ ] ( https://img.shields.io/npm/v/remark-plugin-vue-live.svg )] ( https://www.npmjs.com/package/remark-plugin-vue-live ) [ ![ ] ( https://img.shields.io/npm/dw/remark-plugin-vue-live.svg )] ( https://www.npmjs.com/package/remark-plugin-vue-live )
5+ [ ![ semantic-release] ( https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg )] ( https://github.com/semantic-release/semantic-release )
6+
7+ A remark plugin make markdown example plugin.
8+
9+ ## Usage Example
10+
11+ ``` js
12+ const remark = require (" remark" );
13+ const plugin = require (" remark-plugin-vue-live" );
14+
15+ remark ()
16+ .use (plugin, { liveFilter : (lang ) => / pizza/ .test (lang) })
17+ .process (
18+ `
19+ \`\`\` pizza
20+ <comp/>
21+ \`\`\`
22+ ` ,
23+ (err , file ) => {
24+ console .log (file);
25+ }
26+ );
27+ ```
You can’t perform that action at this time.
0 commit comments