Skip to content

Commit 1828af4

Browse files
authored
fix: token.map missing in table rule (#14)
1 parent 2ef5961 commit 1828af4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules_block/table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module.exports = function table(state, startLine, endLine, silent) {
173173
token.position = columnVIndex + trimLeftOffset(columns[i]);
174174
token.size = token.content.length;
175175
columnVIndex += columns[i].length;
176+
token.map = [ nextLine, nextLine + 1 ];
176177

177178
token = state.push('th_close', 'th', -1);
178179
token.position = columnVIndex;

0 commit comments

Comments
 (0)