Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 510 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 510 Bytes

KaTeXtual

...is a simple package with only one goal: render compatible TeX commands using KaTeX to image formats in a fast and customizable manner.

import {KaTeXtual} from 'katextual';

// singleton with async initialization
katextual = await KaTeXtual.getInstance();

// renders as buffer in PNG format
const png: Buffer = await katextual.renderPng('\\int_0^{2\\pi}{\\sin{\\theta}}');

NPM