Skip to content

Commit 2511c20

Browse files
committed
Update example in readme.md
1 parent 77a9216 commit 2511c20

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ npm install mdast-util-to-string
1313
## Usage
1414

1515
```js
16-
var remark = require('remark');
16+
var unified = require('unified');
17+
var parse = require('remark-parse');
1718
var toString = require('mdast-util-to-string');
1819

19-
var tree = remark().parse('Some _emphasis_, **importance**, and `code`.');
20+
var tree = unified()
21+
.use(parse)
22+
.parse('Some _emphasis_, **importance**, and `code`.');
2023

2124
console.log(toString(tree)); //=> 'Some emphasis, importance, and code.'
2225
```

0 commit comments

Comments
 (0)