We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69d9ebe commit 9600b7fCopy full SHA for 9600b7f
src/transform/plugins/table/index.ts
@@ -260,6 +260,7 @@ const yfmTable: MarkdownItPluginCb = (md) => {
260
state.eMarks[end.line] = oldEMark;
261
262
token = state.push('yfm_td_close', 'td', -1);
263
+ state.tokens[state.tokens.length - 1].map = [end.line, end.line + 1];
264
}
265
266
if (rowLength < maxRowLength) {
@@ -276,6 +277,7 @@ const yfmTable: MarkdownItPluginCb = (md) => {
276
277
token = state.push('yfm_tbody_close', 'tbody', -1);
278
279
token = state.push('yfm_table_close', 'table', -1);
280
+ state.tokens[state.tokens.length - 1].map = [endOfTable, endOfTable + 1];
281
282
state.lineMax = oldParentLineMax;
283
state.line = endOfTable;
0 commit comments