File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export function toMdast(tree, options = {}) {
131
131
* ignored.
132
132
* So clean up.
133
133
*
134
- * @type {import('unist-util-visit').Visitor<Text > }
134
+ * @type {import('unist-util-visit/complex-types ').BuildVisitor<MdastRoot, 'text' > }
135
135
*/
136
136
function ontext ( node , index , parent ) {
137
137
/* c8 ignore next 3 */
@@ -142,7 +142,6 @@ export function toMdast(tree, options = {}) {
142
142
const previous = parent . children [ index - 1 ]
143
143
144
144
if ( previous && previous . type === node . type ) {
145
- // @ts -expect-error: Looks like a literal.
146
145
previous . value += node . value
147
146
parent . children . splice ( index , 1 )
148
147
Original file line number Diff line number Diff line change 60
60
"prettier" : " ^2.0.0" ,
61
61
"rehype-parse" : " ^8.0.0" ,
62
62
"remark-cli" : " ^10.0.0" ,
63
- "remark-gfm" : " ^2 .0.0" ,
63
+ "remark-gfm" : " ^3 .0.0" ,
64
64
"remark-parse" : " ^10.0.0" ,
65
65
"remark-preset-wooorm" : " ^9.0.0" ,
66
66
"remark-stringify" : " ^10.0.0" ,
71
71
"unified" : " ^10.0.0" ,
72
72
"unist-builder" : " ^3.0.0" ,
73
73
"unist-util-remove-position" : " ^4.0.0" ,
74
- "xo" : " ^0.44 .0"
74
+ "xo" : " ^0.45 .0"
75
75
},
76
76
"scripts" : {
77
77
"prepack" : " npm run build && npm run format" ,
You can’t perform that action at this time.
0 commit comments