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

Table definition outdated #99

Open
mtunix opened this issue Jun 3, 2022 · 2 comments
Open

Table definition outdated #99

mtunix opened this issue Jun 3, 2022 · 2 comments

Comments

@mtunix
Copy link

mtunix commented Jun 3, 2022

Hello,

it appears the elt definition of the Table object is outdated. In pandocfilters.py it is defined as:

[...]
Table = elt('Table', 5)
[...]

However if one tries to alter a table using this Table definition we run into a problem:

Error in $.blocks[28]: When parsing the constructor Table of type Text.Pandoc.Definition.Block expected Array of length 6 but got Array of length 5.

This is due to the fact that (apparently) the definition should actually contain 6 values. The TableFooter value is missing. It is however not possible to create a table in the correct dimensions using the current definition in pandocfilters.py.

I propose changing the Table definition to the following:

[...]
Table = elt('Table', 6)
[...]

This way it is possible to alter a table using the pandocfilters.py package again.

@ickc
Copy link
Collaborator

ickc commented Jun 3, 2022

I’ll take a look at it later, but I recently got COVID so it may take a while.

@jgm
Copy link
Owner

jgm commented Oct 25, 2023

@ickc are you still planning to work on this? There's a query on pandoc-discuss that asks whether this library is still being maintained. It would be great if it could be made compatible with the current pandoc AST, if not by you than by someone else.

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

3 participants