File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 39
39
"devDependencies" : {
40
40
"@types/tape" : " ^4.0.0" ,
41
41
"c8" : " ^7.0.0" ,
42
+ "mdast-util-from-markdown" : " ^1.0.0" ,
42
43
"prettier" : " ^2.0.0" ,
43
- "remark" : " ^14.0.0" ,
44
44
"remark-cli" : " ^10.0.0" ,
45
45
"remark-preset-wooorm" : " ^9.0.0" ,
46
46
"rimraf" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import test from 'tape'
7
- import { remark } from 'remark '
7
+ import { fromMarkdown } from 'mdast-util-from-markdown '
8
8
import { findAllAfter } from './index.js'
9
9
10
- const tree = remark ( ) . parse ( 'Some *emphasis*, **importance**, and `code`.' )
10
+ const tree = fromMarkdown ( 'Some *emphasis*, **importance**, and `code`.' )
11
11
const paragraph = /** @type {Paragraph } */ ( tree . children [ 0 ] )
12
12
const children = paragraph . children
13
13
You can’t perform that action at this time.
0 commit comments