siefkenj / unified-latex

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

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

Closed renee-k closed 5 months ago

renee-k commented 6 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.