diff --git a/lib/rules_block/table.js b/lib/rules_block/table.js index 16ae20f..05fc2f3 100644 --- a/lib/rules_block/table.js +++ b/lib/rules_block/table.js @@ -175,11 +175,13 @@ module.exports = function table(state, startLine, endLine, silent) { token = state.push('tr_open', 'tr', 1); for (i = 0; i < columnCount; i++) { token = state.push('td_open', 'td', 1); + token.map = [ nextLine, nextLine + 1 ]; if (aligns[i]) { token.attrs = [ [ 'style', 'text-align:' + aligns[i] ] ]; } token = state.push('inline', '', 0); + token.map = [ nextLine, nextLine + 1 ]; token.content = columns[i] ? columns[i].trim() : ''; token.children = [];