We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
readme.md
1 parent 77a9216 commit 2511c20Copy full SHA for 2511c20
readme.md
@@ -13,10 +13,13 @@ npm install mdast-util-to-string
13
## Usage
14
15
```js
16
-var remark = require('remark');
+var unified = require('unified');
17
+var parse = require('remark-parse');
18
var toString = require('mdast-util-to-string');
19
-var tree = remark().parse('Some _emphasis_, **importance**, and `code`.');
20
+var tree = unified()
21
+ .use(parse)
22
+ .parse('Some _emphasis_, **importance**, and `code`.');
23
24
console.log(toString(tree)); //=> 'Some emphasis, importance, and code.'
25
```
0 commit comments