I'm not sure if I've correctly identify the problem: the docx reader might treat the tables as having 1 header row only, while the table cell is empty, the structure is something like this:

```json
[Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
 [[Para [Str "x",Space,Str "y"]]
 ,[Para [Strong [Emph [Str "a",Space,Str "b"]]]]
 ,[Para [Strong [Emph [Str "Math"]]]]]
 []]
```
The 2-4th row seems to be a header row, then the `[]` is the table body, which has no length, but should have a length of 3. Panflute asserts that was true, that explains the error I got from my filter.

And pandoc read this just fine, and is indeed output by pandoc's docx reader. On the other hand, pandoc's writers like markdown and html seem to parse this input incorrectly. Is it a valid pandoc AST?

And as a general rule, is it safe to assert that the align-list, width-list, header-list, and each of the row-list are all having the same length?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5c10d3f8-8448-4b5f-bfcb-f9c2a4897ec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.