mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 05:28:41 +00:00
Added \! (negative thin space)
Test Plan: Parses and renders locally. \!\, and \,\! are now no-ops. Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D6395
This commit is contained in:
@@ -289,6 +289,7 @@ var copyFuncs = {
|
||||
"\\nleq"
|
||||
],
|
||||
"spacing": [
|
||||
"\\!",
|
||||
"\\ ",
|
||||
"\\,",
|
||||
"\\:",
|
||||
|
@@ -287,7 +287,8 @@ var groupTypes = {
|
||||
"\\quad": "quad",
|
||||
"\\;": "thickspace",
|
||||
"\\:": "mediumspace",
|
||||
"\\,": "thinspace"
|
||||
"\\,": "thinspace",
|
||||
"\\!": "negativethinspace"
|
||||
};
|
||||
|
||||
return makeSpan(["mord", "mspace", spacingClassMap[group.value]]);
|
||||
|
@@ -232,6 +232,10 @@ big parens
|
||||
.mspace {
|
||||
display: inline-block;
|
||||
|
||||
&.negativethinspace {
|
||||
margin-left: -@thinspace;
|
||||
}
|
||||
|
||||
&.thinspace {
|
||||
width: @thinspace;
|
||||
}
|
||||
|
Reference in New Issue
Block a user