mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Move \global and \def to functions (#2138)
* Add parseNode type `internal` * Move \def and \newcommand to functions * Fix Flow error * Separate \global Move \newcommand back to macros for now * Rename assignment.js to def.js * Update test cases * Add comments * Update a test case
This commit is contained in:
committed by
Kevin Barabash
parent
0d8830af30
commit
b1eeeecf91
@@ -655,6 +655,11 @@ const handleObject = (
|
||||
break;
|
||||
}
|
||||
|
||||
case "internal": {
|
||||
// internal nodes are never included in the parse tree
|
||||
break;
|
||||
}
|
||||
|
||||
case "html": {
|
||||
buildA11yStrings(tree.body, a11yStrings, atomType);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user