-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
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
asparagusbeef