npm.io
0.5.1 • Published 4 years ago

asciimath-to-latex

Licence
MIT
Version
0.5.1
Deps
0
Size
149 kB
Vulns
0
Weekly
0
Stars
27

AsciiMath to LaTeX converter

AsciiMath to LaTeX converter.

Installation

yarn add asciimath-to-latex

Usage

const asciimath2latex = require('asciimath-to-latex')
const asciimath = '2=(((3-x)xx2)/(3-x))'
console.log(`asciimath: ${asciimath}`)
const latex = asciimath2latex(asciimath)
console.log(`latex: ${latex}`)

Credits

I forgot where I copied the original code from. It's probably here.