Closed Gjacquenot closed 6 years ago
Hello @tomduck , I hope you are less buzy and have some time to look at pull requests on GitHub ;-)
Thanks for this. I took a little bit of a different approach. The underlying problem was that I didn't check for attached attributes before manipulating them.
The bug fix is in the nextrelease branch.
Thanks for identifying the problem, and for your patience.
Cheers, Tom
This commit fixes bug that appears in another repository: https://github.com/tomduck/pandoc-eqnos/issues/30. The reported error indicates that problem occurs in
pandocxnos/core.py
. When one declares an equation without identifiers, it appears that a key is missing invalue[0]
dict. I fixed the problem by creating the missing the missing entry and initialized it with an empty list. With this patch, the proposedbug.md
file can be filtered correctly and pandoc runs smoothly.Here is a copy of the reported bug:
When using
xnos-number-sections: On
, it seems like all equations need an identifier{#eq:}
. If not, an error is thrown. When NOT using this option, equation is not numbered and that is fine. We would expect the same behaviour with this optionBelow is minimal markdown file that reproduce the error:
I use the latest versions of pandoc-eqnos with command
File
bug.md
Pandoc command:
Error message: