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 3737 "devDependencies" : {
3838 "@types/tape" : " ^4.0.0" ,
3939 "c8" : " ^7.0.0" ,
40+ "mdast-util-from-markdown" : " ^1.0.0" ,
4041 "prettier" : " ^2.0.0" ,
41- "remark" : " ^14.0.0" ,
4242 "remark-cli" : " ^10.0.0" ,
4343 "remark-preset-wooorm" : " ^9.0.0" ,
4444 "rimraf" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 44
55import assert from 'node:assert'
66import test from 'tape'
7- import { remark } from 'remark '
7+ import { fromMarkdown } from 'mdast-util-from-markdown '
88import { findBefore } from './index.js'
99
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`.' )
1212
1313 assert ( tree . type === 'root' )
1414 const paragraph = tree . children [ 0 ]
You can’t perform that action at this time.
0 commit comments