File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6969 "tape" : " ^5.0.0" ,
7070 "type-coverage" : " ^2.0.0" ,
7171 "typescript" : " ^4.0.0" ,
72- "unified" : " ^9 .0.0" ,
72+ "unified" : " ^10 .0.0" ,
7373 "unist-builder" : " ^3.0.0" ,
7474 "unist-util-remove-position" : " ^4.0.0" ,
7575 "xo" : " ^0.39.0"
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ Say we have the following `example.html`:
3434…and next to it, ` example.js ` :
3535
3636``` js
37- import unified from ' unified'
37+ import { unified } from ' unified'
3838import remarkParse from ' rehype-parse'
3939import remarkStringify from ' remark-stringify'
40- import {toVFile } from ' to-vfile'
40+ import {readSync } from ' to-vfile'
4141import {toMdast } from ' hast-util-to-mdast'
4242
43- const file = toVFile . readSync (' example.html' )
43+ const file = readSync (' example.html' )
4444
4545const hast = unified ().use (remarkParse).parse (file)
4646
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import test from 'tape'
1111import { u } from 'unist-builder'
1212import { h } from 'hastscript'
1313import { isHidden } from 'is-hidden'
14- import unified from 'unified'
14+ import { unified } from 'unified'
1515import remarkParse from 'remark-parse'
1616import remarkGfm from 'remark-gfm'
1717import rehypeStringify from 'rehype-parse'
You can’t perform that action at this time.
0 commit comments