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`
"""


@app.route('/')
def index():
  mdtex = mdtex2html.convert(str)
  print(mdtex)
  return mdtex


app.run(host='0.0.0.0', port=81)

Expected behavior:

image

This is what I get on my local machine.

Actual behavior:

image

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

Mrakgr,

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.