Skip to content
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

DoubleSuperscriptsError on entering 3 tick marks ''' #462

Open
polarwinkel opened this issue Mar 21, 2024 · 0 comments
Open

DoubleSuperscriptsError on entering 3 tick marks ''' #462

polarwinkel opened this issue Mar 21, 2024 · 0 comments
Labels

Comments

@polarwinkel
Copy link

Entering 3 or more tick marks in a row ''' will throw a DoubleSuperscriptsError:

Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import latex2mathml.converter
>>> latex2mathml.converter.convert("f'''(x)")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.11/dist-packages/latex2mathml/converter.py", line 71, in convert
    math = convert_to_element(latex, xmlns, display, parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/latex2mathml/converter.py", line 85, in convert_to_element
    _convert_group(iter(walk(latex)), row)
                        ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/latex2mathml/walker.py", line 34, in walk
    return _walk(tokens)
           ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/latex2mathml/walker.py", line 135, in _walk
    raise DoubleSuperscriptsError
latex2mathml.exceptions.DoubleSuperscriptsError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants