tex-math-parser icon indicating copy to clipboard operation
tex-math-parser copied to clipboard

Update to support latest MathJS

Open mark-wiemer opened this issue 1 year ago • 0 comments

export const texToNode = (tex: string): mathjs.MathNode | null => {
  try {
    return parseTex(tex); // err: Property 'toHTML' is missing in type import(".../node_modules/tex-math-parser/node_modules/mathjs/types/index").MathNode' but required in type 'math.MathNode'.
  } catch (err) {
    return null;
  }
}

mark-wiemer avatar Apr 11 '23 06:04 mark-wiemer