File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 39
39
"devDependencies" : {
40
40
"@types/node" : " ^18.0.0" ,
41
41
"c8" : " ^7.0.0" ,
42
+ "parse-english" : " ^6.0.0" ,
42
43
"prettier" : " ^2.0.0" ,
43
44
"remark-cli" : " ^11.0.0" ,
44
45
"remark-preset-wooorm" : " ^9.0.0" ,
45
- "retext" : " ^8.0.0" ,
46
46
"type-coverage" : " ^2.0.0" ,
47
47
"typescript" : " ^4.0.0" ,
48
48
"unist-util-visit" : " ^4.0.0" ,
Original file line number Diff line number Diff line change 10
10
11
11
import assert from 'node:assert/strict'
12
12
import test from 'node:test'
13
- import { retext } from 'retext '
13
+ import { ParseEnglish } from 'parse-english '
14
14
import { visit } from 'unist-util-visit'
15
15
import { isLiteral } from './index.js'
16
16
@@ -182,5 +182,6 @@ test('isLiteral()', () => {
182
182
* @param {Visitor } visitor
183
183
*/
184
184
function process ( fixture , visitor ) {
185
- visit ( retext ( ) . parse ( fixture ) , 'WordNode' , visitor )
185
+ const tree = new ParseEnglish ( ) . parse ( fixture )
186
+ visit ( tree , 'WordNode' , visitor )
186
187
}
You can’t perform that action at this time.
0 commit comments