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 69
69
"tape" : " ^5.0.0" ,
70
70
"type-coverage" : " ^2.0.0" ,
71
71
"typescript" : " ^4.0.0" ,
72
- "unified" : " ^9 .0.0" ,
72
+ "unified" : " ^10 .0.0" ,
73
73
"unist-builder" : " ^3.0.0" ,
74
74
"unist-util-remove-position" : " ^4.0.0" ,
75
75
"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`:
34
34
…and next to it, ` example.js ` :
35
35
36
36
``` js
37
- import unified from ' unified'
37
+ import { unified } from ' unified'
38
38
import remarkParse from ' rehype-parse'
39
39
import remarkStringify from ' remark-stringify'
40
- import {toVFile } from ' to-vfile'
40
+ import {readSync } from ' to-vfile'
41
41
import {toMdast } from ' hast-util-to-mdast'
42
42
43
- const file = toVFile . readSync (' example.html' )
43
+ const file = readSync (' example.html' )
44
44
45
45
const hast = unified ().use (remarkParse).parse (file)
46
46
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import test from 'tape'
11
11
import { u } from 'unist-builder'
12
12
import { h } from 'hastscript'
13
13
import { isHidden } from 'is-hidden'
14
- import unified from 'unified'
14
+ import { unified } from 'unified'
15
15
import remarkParse from 'remark-parse'
16
16
import remarkGfm from 'remark-gfm'
17
17
import rehypeStringify from 'rehype-parse'
You can’t perform that action at this time.
0 commit comments