File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
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 4
4
5
5
import assert from 'node:assert'
6
6
import test from 'tape'
7
- import { remark } from 'remark '
7
+ import { fromMarkdown } from 'mdast-util-from-markdown '
8
8
import { findBefore } from './index.js'
9
9
10
- test ( 'unist-util-find-before ' , ( t ) => {
11
- const tree = remark ( ) . parse ( 'Some *emphasis*, **importance**, and `code`.' )
10
+ test ( '`findBefore` ' , ( t ) => {
11
+ const tree = fromMarkdown ( 'Some *emphasis*, **importance**, and `code`.' )
12
12
13
13
assert ( tree . type === 'root' )
14
14
const paragraph = tree . children [ 0 ]
You can’t perform that action at this time.
0 commit comments