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