tldr: How can I convert a LaTeX equation in Google Docs so that it is editable as a Google Doc equation?
Background: I want to import html into Google Docs. This HTML includes (in my native database) LaTeX equations. When I import to Google Docs, the LaTeX is converted into non-editable images. I want to convert the LaTeX into editable Google equations. I'm thinking I can use Google Apps Scripts to accomplish this. My plan is to insert the equations as a text-string "tag" such as [latex: x + 5 = -3]
- then I'll run a Google Apps Scripts function that converts that tag to a Google Docs equation.
I'm not sure if there's a well-known way to convert LaTeX into Google Apps Scripts equations? Should I just load a javascript library to accomplish this? Would I convert LaTeX to MathML and load that into the Google Apps Scripts equation object?