From 9cc065c434b00b10ba234afa952fedf7e20a59af Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 24 May 2017 23:07:33 +0100 Subject: Handle unexpected children in table --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 48a7e61..93f9524 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -218,7 +218,7 @@ function DocumentConversion(options, comments) { function convertTable(element, messages, options) { var bodyIndex = _.findIndex(element.children, function(child) { - return !child.isHeader; + return !child.type === documents.types.tableRow || !child.isHeader; }); if (bodyIndex === -1) { bodyIndex = element.children.length; -- cgit v1.2.3