An npm module for parsing LaTeX math to a regular math string, that can be parsed to other algebra or math libraries like algebrite and algebra.js
const AlgebraLatex = require('algebra-latex')
const latexInput = '\\frac{1}{\\sqrt{2}}\\cdot x=10'
const algebraObj = new AlgebraLatex(latexInput)
console.log(algebraObj.toMath()) // output: (1)/(sqrt(2))*x=10
Supported libraries
NOTE: The above libraries are optional, and have to be installed before use
continuing from example above
...
// For algebra.js
algebraObj.toAlgebra() // Will either return an algebra.js expression or equation
// For algebrite
algebraObject.toAlgebrite()
// For coffequate
algebraObject.toCoffeequate()