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

error running filter with recent pandoc #2

Closed
patrl opened this issue Feb 3, 2021 · 2 comments
Closed

error running filter with recent pandoc #2

patrl opened this issue Feb 3, 2021 · 2 comments

Comments

@patrl
Copy link

patrl commented Feb 3, 2021

Using the filter with pandoc version 2.11.3.2 results in the following error, potentially related to jgm/pandoc#5331

Error running filter ./pandoc-ling.lua:
Could not get Meta value: Could not read value of key-value pair: Could not get MetaValue: Could not read list: Could not get Block value: Unknown block type: MetaBlocks

Fix: Changing line 83:

    tmp[#tmp+1] = pandoc.MetaBlocks(pandoc.RawBlock("tex", s))

to the following fixes the problem, and seems to produce an identical result (I haven't tested this thoroughly):

    tmp[#tmp+1] = pandoc.RawBlock("tex", s)
@cysouw
Copy link
Owner

cysouw commented Feb 4, 2021

I just tried it with 2.11.4 and I don't get any errors. Could you please try again with that newer Pandoc version?

@patrl
Copy link
Author

patrl commented Feb 4, 2021

Yes, this seems to be fixed in the latest pandoc release.

@cysouw cysouw closed this as completed Feb 4, 2021
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