Match nodes in a unified-latex AST
npm install @unified-latex/unified-latex-util-matchFunctions to match different Ast.Node types in a unified-latex Abstract Syntax Tree (AST).
If you need a type-guard to ensure a node is of a certain type; for example, during a call to unified-latex-until-visit.
``bash`
npm install @unified-latex/unified-latex-util-match
This package contains both esm and commonjs exports. To explicitly access the esm export,
import the .js file. To explicitly access the commonjs export, import the .cjs file.
| Name | Type | Description |
| :------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------- |
| match | { macro(node: any, macroName?: string): node is Ast.Macro; anyMacro(node: any): node is Ast.Macro; environment(node: any, envName?: string): node is Ast.Environment; ... 12 more ...; createEnvironmentMatcher: (macros: string[] \| Record