Equation editor (using HTML and JavaScript)

I tried to make a MathML editor using the JavaScript stuff I learned (after I noticed that most browsers support MathML now).
link: https://codepen.io/jbazant100/full/GRexamg
I used to have to type equations for work … and I wanted to see if I could code something that could do that too.

If I was to do this over from scratch, I’d change the names of the variables to better match what they do, and I’d use an element that’s contenteditable instead.

There’s still some bugs in there, and some unusual behaviors that I’ll try to fix if I have the time to do so.

1 Like