kprussing / pandoc-acro

Pandoc filter for managing acronyms
BSD 2-Clause "Simplified" License
9 stars 4 forks source link

Acronym-list header level option broken #13

Open jkrenzer opened 10 months ago

jkrenzer commented 10 months ago

Hi!

When trying to use the level option to set the header-level on a div for the acronym list, pandoc-acro 0.10.1 crashes with the following error:

Element "Header" received "str" but expected <class 'int'>

I suspect there is a missing type-conversion to int in:

https://github.com/kprussing/pandoc-acro/blob/374eeb01c1f34bb941d1f35856088a3f0076aca5/pandocacro/list.py#L130

Thanks for all the work!

Jörn