diff --git a/index.js b/index.js index 982c9c7..e13d76c 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ module.exports = function($) { $("tr", this).each(function(row_idx, row) { curr_y = 0; - $("td, th", row).each(function(col_idx, col) { + $("> td, > th", row).each(function(col_idx, col) { var rowspan = $(col).attr('rowspan') || 1; var colspan = $(col).attr('colspan') || 1; if (textMode === true) {