Skip to content

Enable spacing functions in text mode#1139

Merged
k4b7 merged 4 commits intoKaTeX:masterfrom
ronkok:fixLaps
Feb 4, 2018
Merged

Enable spacing functions in text mode#1139
k4b7 merged 4 commits intoKaTeX:masterfrom
ronkok:fixLaps

Conversation

@ronkok
Copy link
Collaborator

@ronkok ronkok commented Feb 3, 2018

Spacing functions such as \; or \quad should be accepted in either math mode or text mode. This PR will also fix a bug in \llap and \rlap and enable them to accept spacing functions.

Spacing functions such as `\;` or `\quad` should be accepted in either math mode or text mode
Copy link
Member

@k4b7 k4b7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. Can you add some unit tests that check that things like \llap{\,} and \rlap{\;} parse?

@ronkok
Copy link
Collaborator Author

ronkok commented Feb 4, 2018

Done.

});
});

describe("An lap parser", function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize we didn't have any unit test for lap. Thanks for adding these.

@k4b7 k4b7 merged commit ea3b6ab into KaTeX:master Feb 4, 2018
@k4b7 k4b7 mentioned this pull request Feb 4, 2018
@ronkok ronkok deleted the fixLaps branch February 4, 2018 19:39
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.

2 participants