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

TypeError in pandocxnos.core.process_refs with Pandoc 2.11 #85

Closed
dhimmel opened this issue Nov 10, 2020 · 4 comments
Closed

TypeError in pandocxnos.core.process_refs with Pandoc 2.11 #85

dhimmel opened this issue Nov 10, 2020 · 4 comments

Comments

@dhimmel
Copy link

dhimmel commented Nov 10, 2020

Just encountered the following error with pandoc-2.11.0.4 (CI log):

[INFO] Running filter pandoc-fignos
Traceback (most recent call last):
  File "/usr/share/miniconda3/envs/manubot/bin/pandoc-fignos", line 8, in <module>
    sys.exit(main())
  File "/usr/share/miniconda3/envs/manubot/lib/python3.7/site-packages/pandoc_fignos.py", line 649, in main
    altered)
  File "/usr/share/miniconda3/envs/manubot/lib/python3.7/site-packages/pandoc_fignos.py", line 646, in <lambda>
    altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
  File "/usr/share/miniconda3/envs/manubot/lib/python3.7/site-packages/pandocfilters.py", line 111, in walk
    item['c'] if 'c' in item else None, format, meta)
  File "/usr/share/miniconda3/envs/manubot/lib/python3.7/site-packages/pandocxnos/core.py", line 873, in process_refs
    if value[-5]['c'][1]:
TypeError: list indices must be integers or slices, not str
@dhimmel
Copy link
Author

dhimmel commented Nov 10, 2020

@tomduck
Copy link
Owner

tomduck commented Nov 10, 2020

Thanks, @dhimmel. I have updated to the latest pandoc version. Please re-open this issue if you have any further trouble with it.

Cheers,
Tom

@tomduck tomduck closed this as completed Nov 10, 2020
@dhimmel
Copy link
Author

dhimmel commented Nov 10, 2020

Thanks @tomduck that was quick. So I think I need to upgrade pandoc-xnos to 2.5.0 and that will fix things.

Linking to some of the commits related to this issue for my reference:

dhimmel added a commit to dhimmel/manubot-rootstock that referenced this issue Nov 10, 2020
@tomduck
Copy link
Owner

tomduck commented Nov 10, 2020

@dhimmel, you would definitely need to upgrade pandoc-tablenos as well if you are using that. Cheers, Tom.

dhimmel added a commit to dhimmel/manubot-rootstock that referenced this issue May 29, 2021
new citeproc filter name

upgrade pandoc-xnos packages

refs tomduck/pandoc-fignos#85

upgrade panflute to 2.0.5

includes fix to manubot#386 (comment):
Element "MetaList" received "CSL_Item" but expected <class 'panflute.base.MetaValue'>

pandoc html: disable document-css in template

From pandoc 2.11 (2020-10-11) changelog:

> Add CSS to default HTML template (#6601, Mauro Bieg). This greatly
improves the default typography in pandoc’s HTML output. The CSS is
sensitive to a number of variables (e.g. mainfont, fontsize, linestretch):
see the manual for details. To restore the earlier, more spartan output,
you can disable this with -M document-css=false.

pandoc 2.11.3

https://github.com/jgm/pandoc/releases/tag/2.11.3
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