Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCX output doesn't seem to work. #3

Open
iandol opened this issue Sep 28, 2023 · 3 comments
Open

DOCX output doesn't seem to work. #3

iandol opened this issue Sep 28, 2023 · 3 comments

Comments

@iandol
Copy link

iandol commented Sep 28, 2023

Using this filter for ODT / HTML / LaTeX works, but when I try DOCX output the filter fails:

▶︎ pandoc -s -o list-table.docx -L list-table.lua --verbose list-table.md
[INFO] Running filter /Users/ian/.local/share/pandoc/filters/list-table.lua
[INFO] Completed filter /Users/ian/.local/share/pandoc/filters/list-table.lua in 43 ms
Encountered unassigned table cell
Exception: pandoc exited with 63

▶︎ pandoc -s --pdf-engine=xelatex -o list-table.pdf -L list-table.lua  --verbose list-table.md 
[INFO] Running filter /Users/ian/.local/share/pandoc/filters/list-table.lua
[INFO] Completed filter /Users/ian/.local/share/pandoc/filters/list-table.lua in 5 ms
[makePDF] temp dir: ... OK
@wlupton
Copy link
Member

wlupton commented Sep 28, 2023

I think that a row must have some undefined cells. See #2 and jgm/pandoc#9096.

@iandol
Copy link
Author

iandol commented Sep 29, 2023

This is the test.md

---
title: List Table Example
author: Jane Doe
lang: en
---

:::list-table
   * - row 1, column 1
     - row 1, column 2
     - row 1, column 3

   * - row 2, column 1
     -
     - row 2, column 3

   * - row 3, column 1
     - row 3, column 2
:::

Note the missing final cell, when I add it docx output works. So the other writers can handle the invalid AST, but the docx writer can't…

@wlupton
Copy link
Member

wlupton commented Sep 29, 2023

It seems so. See jgm/pandoc#9096 (sorry, I edited my original comment to add this, and you might not have seen it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants