LaTeX convert error when trying to use the mdtex2html library

Problem description:

The mdtex2html library installs without a problem in a new Repl, but when we try to run it, we get the LaTex-covert-error instead of the Latex working properly. The following piece of code does work properly on our local machine though.

Is this error happening to anyone else as well?

from flask import Flask
import mdtex2html

app = Flask(__name__)

str = """
# Example-Title

TeX-Formula: $\sqrt2=x^2 \Rightarrow x=\sqrt{\sqrt{2}}$

- This
- is
    - a List with `inline-Code`

def index():
  mdtex = mdtex2html.convert(str)
  return mdtex'', port=81)

Expected behavior:


This is what I get on my local machine.

Actual behavior:


Steps to reproduce:

Create a new Flask repl, install the mdtex2html library, copy the above code into it and run. You should see the error in the webview.

Browser: Edge
OS: Win 10
Device (Android, iOS, NA leave blank):
Desktop app version (Avatar menu->“Version”) or NA:
Plan (Free, Hacker, Pro Plan): Free


This is an issue with the latex expression itself or an issue within the module that’s being imported. Please let us know if you have any further questions.