I have a suggestionion to the Addon:
Could you add some Header-lines in order to recognize Latex-Formulae
e.g. (in line 52ff)
buf.write(
"<html><head>" + '<meta charset="utf-8">' + mw.baseHTML() +
"<script src=\"https://cdnjs.cloudflare.com/polyfill/v3/polyfill.js\"></script>"+
"<script id=\"MathJax-script\" async src=\"https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js\">" +
"</script></head><body>"
)