-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with pandoc 3.0 released recently #28
Comments
Did anyone just try changing the regex here: https://github.com/tomduck/pandoc-xnos/blob/master/pandocxnos/core.py#L174 yet? Curious if the rest of the code would just transfer to 3.0 easily |
replacing the aforementioned line with pattern = re.compile(r'^[1-3]\.[0-9]+(?:\.[0-9]+)?(?:\.[0-9]+)?$') works at least as much as that the CLI runs without raising errors. As my specific use case doesn't seem to work with pandoc-xnos anyway, I'll just leave this here and drop out of the discussion. Others might try this. |
Thanks for the regex thing, @benmaier. I was having an issue with pandox-secnos and this fixed it for me, for now. |
Related PR: #29 |
I just upgraded to |
I have version pandoc-eqnos 2.5.0 installed from PyPI via pipx, and the bug still occurs. I checked line 174 of Pandoc version is 3.1.1. |
For me the issue also persists despite the "correct" regex
If you refer to the figure you get pandoc-fignos: Bad reference: |
@ttxtea if you are getting the error The standard syntax for labeling a figure is I have noticed that the |
Hi! What's blocking the fix? How can I help? This issue is quite an inconvenience for my flow. |
Hi! This fix will help many people work in scientific publications/ Do you need any help? |
This libraries are useful for me too, but I don't know the code so deep to change it. |
Hello,
xnos stopped working with the new release of pandoc 3.0.
Is there an easy fix for this?
Thanks,
Howard
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\hborchew\AppData\Roaming\Python\Python311\Scripts\pandoc-xnos.exe_main.py", line 7, in
File "C:\Users\hborchew\AppData\Roaming\Python\Python311\site-packages\pandocxnos\main.py", line 38, in main
m.main(stdin, stdout)
File "C:\Users\hborchew\AppData\Roaming\Python\Python311\site-packages\pandoc_fignos.py", line 608, in main
PANDOCVERSION = pandocxnos.init(args.pandocversion, doc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hborchew\AppData\Roaming\Python\Python311\site-packages\pandocxnos\core.py", line 224, in init
_PANDOCVERSION = _get_pandoc_version(pandocversion, doc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hborchew\AppData\Roaming\Python\Python311\site-packages\pandocxnos\core.py", line 179, in _get_pandoc_version
raise RuntimeError(msg)
RuntimeError: Cannot understand pandocversion=3.0
Error running filter pandoc-xnos.exe:
Filter returned error status 1
The text was updated successfully, but these errors were encountered: