Skip to content

Commit ed912ba

Browse files
Bart LedouxBart Ledoux
Bart Ledoux
authored and
Bart Ledoux
committed
docs: update readme
1 parent f086c59 commit ed912ba

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
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+
```

0 commit comments

Comments
 (0)