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:
ylemkimon
2019-12-05 10:07:20 +09:00
committed by Kevin Barabash
parent 0d8830af30
commit b1eeeecf91
8 changed files with 104 additions and 57 deletions

View File

@@ -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;