mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Add spacing functions
Summary: Add \qquad, \quad, \;, etc. Fixes T7 Test Plan: Add some spacings. Make sure that they look reasonable widths. Especially, if you add a space (`\space`), make sure that it doesn't disappear because the spacing disappears. Reviewers: spicyj Reviewed By: spicyj Maniphest Tasks: T7 Differential Revision: http://phabricator.benalpert.com/D46
This commit is contained in:
12
parser.jison
12
parser.jison
@@ -62,6 +62,18 @@ func
|
||||
{$$ = [{type: 'rel', value: yytext}];}
|
||||
| 'ngeq'
|
||||
{$$ = [{type: 'rel', value: yytext}];}
|
||||
| 'qquad'
|
||||
{$$ = [{type: 'spacing', value: yytext}];}
|
||||
| 'quad'
|
||||
{$$ = [{type: 'spacing', value: yytext}];}
|
||||
| 'space'
|
||||
{$$ = [{type: 'spacing', value: yytext}];}
|
||||
| ','
|
||||
{$$ = [{type: 'spacing', value: yytext}];}
|
||||
| ':'
|
||||
{$$ = [{type: 'spacing', value: yytext}];}
|
||||
| ';'
|
||||
{$$ = [{type: 'spacing', value: yytext}];}
|
||||
| 'blue' group
|
||||
{$$ = [{type: 'color', value: {color: 'blue', value: $2}}];}
|
||||
| 'orange' group
|
||||
|
Reference in New Issue
Block a user