Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
TypeScript
123456789101112import { layoutMath } from "./layout"import { parseLatex } from "./parser"import type { MathLayout, RenderLatexOptions } from "./types"
export function renderLatex(source: string, options: RenderLatexOptions = {}): MathLayout { return layoutMath(parseLatex(source, options), options)}
export function renderLatexToString(source: string, options: RenderLatexOptions = {}): string { return renderLatex(source, options).toString()}