Skip to content

fix(parser): give a script its own list state - #226

Open
benmandrew wants to merge 1 commit into
mitex-rs:mainfrom
benmandrew:fix/script-list-state
Open

benmandrew wants to merge 1 commit into
mitex-rs:mainfrom
benmandrew:fix/script-list-state

Conversation

@benmandrew

Copy link
Copy Markdown

Fixes #225.

attach_component parsed the script with the list state of the enclosing list, so a \limits or \over in the script took a checkpoint from before the open ItemAttachComponent nodes. The script now gets its own list state.

a_\limits did not panic, but the command wrapped the base and the underscore. It now stays in the script.

A left-associative or infix command in a script took a checkpoint from
the enclosing list, which panics on `__\limits`.

Fixes mitex-rs#225
@benmandrew

Copy link
Copy Markdown
Author

Are there any blockers for this?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parser panics on __\limits

1 participant