siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
85 stars 20 forks source link

report unsupported macros by katex and expand user-define commands #99

Closed renee-k closed 2 months ago

renee-k commented 3 months ago

The reportMacrosUnsupportedByKatex function will return a list of all macros in math mode that aren't supported by Katex within the AST passed in as input. The ExpandUserDefinedMacros function will expand user-defined commands such as from \newcommand, \renewcommand, etc., modifying the AST passed in as input.