@@ -136,15 +136,12 @@ export function gfmTableToMarkdown(options) {
136136
137137 return {
138138 unsafe : [
139- // @ts -expect-error: to do: map.
140139 { character : '\r' , inConstruct : 'tableCell' } ,
141- // @ts -expect-error: to do: map.
142140 { character : '\n' , inConstruct : 'tableCell' } ,
143141 // A pipe, when followed by a tab or space (padding), or a dash or colon
144142 // (unpadded delimiter row), could result in a table.
145143 { atBreak : true , character : '|' , after : '[\t :-]' } ,
146144 // A pipe in a cell must be encoded.
147- // @ts -expect-error: to do: map.
148145 { character : '|' , inConstruct : 'tableCell' } ,
149146 // A colon must be followed by a dash, in which case it could start a
150147 // delimiter row.
@@ -196,7 +193,6 @@ export function gfmTableToMarkdown(options) {
196193 * @param {TableCell } node
197194 */
198195 function handleTableCell ( node , _ , context , safeOptions ) {
199- // @ts -expect-error: to do: map.
200196 const exit = context . enter ( 'tableCell' )
201197 const subexit = context . enter ( 'phrasing' )
202198 const value = containerPhrasing ( node , context , {
@@ -232,7 +228,6 @@ export function gfmTableToMarkdown(options) {
232228 let index = - 1
233229 /** @type {Array<Array<string>> } */
234230 const result = [ ]
235- // @ts -expect-error: to do: map.
236231 const subexit = context . enter ( 'table' )
237232
238233 while ( ++ index < children . length ) {
@@ -258,7 +253,6 @@ export function gfmTableToMarkdown(options) {
258253 let index = - 1
259254 /** @type {Array<string> } */
260255 const result = [ ]
261- // @ts -expect-error: to do: map.
262256 const subexit = context . enter ( 'tableRow' )
263257
264258 while ( ++ index < children . length ) {
@@ -285,7 +279,6 @@ export function gfmTableToMarkdown(options) {
285279 function inlineCodeWithTable ( node , parent , context ) {
286280 let value = inlineCode ( node , parent , context )
287281
288- // @ts -expect-error: to do: map.
289282 if ( context . stack . includes ( 'tableCell' ) ) {
290283 value = value . replace ( / \| / g, '\\$&' )
291284 }
0 commit comments