Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 778 Bytes

README.md

File metadata and controls

44 lines (25 loc) · 778 Bytes

AsciiMath to LaTeX converter

AsciiMath to LaTeX converter.

Installation

yarn add asciimath-to-latex

Import

import asciimath2latex from 'asciimath-to-latex';

OR

const asciimath2latex = require('asciimath-to-latex').default;

Usage

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

Demo project

demo project

Credits

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