tomduck / pandoc-xnos

Library code for pandoc-fignos/eqnos/tablenos/secnos.
GNU General Public License v3.0
106 stars 27 forks source link

Change regex to accept pandoc 2.0 #2

Closed alexstoick closed 6 years ago

alexstoick commented 7 years ago

With pandoc 2.0 compiled locally all of the xnos repos throw RuntimeError: Cannot understand pandocversion=2.0; because version 2.0 is not supported in the current or nextrelease branches.

This PR adds changes the regex that does the version matching to support 2.0.


I have not done extensive testing on 2.0, but it parses my Markdown without any errors and functionality still works. I could not find any tests, but if you point me to the right place I'll be more than happy to fix anything that is broken.

tomduck commented 6 years ago

I can't remember why this didn't get pulled -- sorry. Maybe I missed it. But the filters definitely work with pandoc 2.0 now. Thanks for the contribution.