Skip to content

Commit 35c8ee4

Browse files
committed
Replace dev-dependency
1 parent 074f903 commit 35c8ee4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
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",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
*/
44

55
import test from 'tape'
6-
import {remark} from 'remark'
6+
import {fromMarkdown} from 'mdast-util-from-markdown'
77
import {findAllBefore} from './index.js'
88

9-
const tree = remark().parse('Some _emphasis_, **importance**, and `code`.')
9+
const tree = fromMarkdown('Some _emphasis_, **importance**, and `code`.')
1010
const paragraph = /** @type {Paragraph} */ (tree.children[0])
1111
const children = paragraph.children
1212

0 commit comments

Comments
 (0)