html – MathJax: retrieve original Tex command

I have access to an old private website, as a client.

The original TeX command is not present anywhere in the page_source nor the rendered document. However, it is clearly somewhere in memory, because I can right click on the math expression, select “Show Math as TeX command”, and see the original TeX command.

How can I retrieve the original command in javascript, from the browser console?

I tried to do:

window.MathJax.startup.document.getMathItemsWithin(document.body);

and then access the math element, but this shows me the MathML code (which happens to be Math input error, and not the original TeX command (the malformed \( € 0.7 (\ ).

Read more here: Source link