mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 21:18:40 +00:00
Add tie symbol (~)
Summary: Add real support for the tie symbol. Also, get rid of any of the leftover bad support Test Plan: - See the new normal tests succeed - See huxley tests didn't change except the new ones, which looks good Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D7772
This commit is contained in:
6
Lexer.js
6
Lexer.js
@@ -25,13 +25,15 @@ var mathNormals = [
|
||||
[/^{/, "{"],
|
||||
[/^}/, "}"],
|
||||
[/^[(\[]/, "open"],
|
||||
[/^[)\]?!]/, "close"]
|
||||
[/^[)\]?!]/, "close"],
|
||||
[/^~/, "spacing"]
|
||||
];
|
||||
|
||||
var textNormals = [
|
||||
[/^[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/, "textord"],
|
||||
[/^{/, "{"],
|
||||
[/^}/, "}"]
|
||||
[/^}/, "}"],
|
||||
[/^~/, "spacing"]
|
||||
];
|
||||
|
||||
// Build a regex to easily parse the functions
|
||||
|
Reference in New Issue
Block a user