File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 44
44
"@types/node" : " ^20.0.0" ,
45
45
"c8" : " ^8.0.0" ,
46
46
"is-hidden" : " ^2.0.0" ,
47
- "mdast-util-from-markdown" : " ^1 .0.0" ,
48
- "mdast-util-to-markdown" : " ^1 .0.0" ,
47
+ "mdast-util-from-markdown" : " ^2 .0.0" ,
48
+ "mdast-util-to-markdown" : " ^2 .0.0" ,
49
49
"prettier" : " ^2.0.0" ,
50
50
"remark-cli" : " ^11.0.0" ,
51
51
"remark-preset-wooorm" : " ^9.0.0" ,
Original file line number Diff line number Diff line change @@ -36,14 +36,12 @@ test('zone', async function (t) {
36
36
/** @type {{default: (tree: Root) => undefined} } */
37
37
const mod = await import ( new URL ( folder + '/index.js' , root ) . href )
38
38
const check = mod . default
39
- // To do: remove cast when `from-markdown` is released.
40
- const tree = /** @type {Root } */ (
41
- fromMarkdown ( await fs . readFile ( new URL ( folder + '/input.md' , root ) ) )
39
+ const tree = fromMarkdown (
40
+ await fs . readFile ( new URL ( folder + '/input.md' , root ) )
42
41
)
43
42
44
43
check ( tree )
45
44
46
- // @ts -expect-error: remove cast when `to-markdown` is released.
47
45
const result = toMarkdown ( tree )
48
46
49
47
assert . equal ( result , expected )
You can’t perform that action at this time.
0 commit comments