Skip to content

Row disappeared in table header for grid table converted to ODT  #10002

@chenyhsu

Description

@chenyhsu

Explain the problem.

Problem:

Grid tables from markdown to ODT is not converted correctly.
If table header contain more than one row, the last row of header would disappear,
and first row of table body is truncated and would misplace in table header.

Command:

pandoc test.md -f markdown+grid_tables  -t odt -o test.odt

Input (test.md):

+---------------------+-----------------------+
| Location            | Temperature 1961-1990 |
|                     | in degree Celsius     |
|                     +-------+-------+-------+
|                     | min   | mean  | max   |
+=====================+=======+=======+=======+
| Antarctica          | -89.2 | N/A   | 19.8  |
+---------------------+-------+-------+-------+
| Earth               | -89.2 | 14    | 56.7  |
+---------------------+-------+-------+-------+

(Copied from https://pandoc.org/chunkedhtml-demo/8.9-tables.html)

Output:
image

System and version

Pandoc version?:
pandoc 3.1.8
Features: +server +lua
Scripting engine: Lua 5.4

System: Arch Linux with kernel 6.9.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions