pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
602 stars 165 forks source link

Pandoc 2.15 breaks pandoc-quotes filter #192

Closed maehr closed 2 years ago

maehr commented 2 years ago

When running the filter with xelatex or tectonic I get:

Error running filter filters/pandoc-quotes.lua:
filters/pandoc-quotes.lua:468: attempt to call a nil value (global 'error')
stack traceback:
    filters/pandoc-quotes.lua:468: in function <filters/pandoc-quotes.lua:461>
make[1]: *** [tex] Error 83
make: *** [pdf] Error 2

I do not understand the code enough to debug properly. But I guess it has something to do with the switch from Polyglossia to Babel: https://pandoc.org/releases.html#pandoc-2.15-2021-10-23

Use babel, not polyglossia, with xelatex. Previously polyglossia worked better with xelatex, but that is no longer the case, so we simplify the code so that babel is used with all latex engines. This involves a change to the default LaTeX template.

tarleb commented 2 years ago

Thanks, fixed via 6ab95da5442396b1fd9e8ec4d342b54156a3c0d7.