CDSoft / panda

Panda is a Pandoc Lua filter that works on internal Pandoc's AST. Panda is heavily inspired by [abp](http:/cdelord.fr/abp) reimplemented as a Pandoc Lua filter.
https://cdelord.fr/panda
GNU General Public License v3.0
43 stars 5 forks source link

error when reading boolean metadata #2

Closed kbro237 closed 3 years ago

kbro237 commented 3 years ago

I'm getting an error whenever I have a boolean value in my metadata, for example link-citations: true

I believe the error is coming from the read_vars_in_meta function, when it tries to unpack the table.

CDSoft commented 3 years ago

Hello. Thank you for your patch. I tried to add some tests and booleans can not simply be stored as booleans ({{link-citations}} will crash Pandoc). I will propose a slightly different solution where non table values are converted to strings.