mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Make {} turn things into ords
Auditors: spicyj
This commit is contained in:
@@ -88,6 +88,8 @@ var buildGroup = function(group, prev) {
|
|||||||
return makeSpan("rlap", inner);
|
return makeSpan("rlap", inner);
|
||||||
} else if (group.type === "punct") {
|
} else if (group.type === "punct") {
|
||||||
return makeSpan("mpunct", textit(group.value));
|
return makeSpan("mpunct", textit(group.value));
|
||||||
|
} else if (group.type === "ordgroup") {
|
||||||
|
return makeSpan("mord", buildExpression(group.value));
|
||||||
} else {
|
} else {
|
||||||
console.log("Unknown type:", group.type);
|
console.log("Unknown type:", group.type);
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,7 @@ group
|
|||||||
: atom
|
: atom
|
||||||
{$$ = $1;}
|
{$$ = $1;}
|
||||||
| '{' ex '}'
|
| '{' ex '}'
|
||||||
{$$ = $2;}
|
{$$ = [{type: 'ordgroup', value: $2}];}
|
||||||
| func
|
| func
|
||||||
{$$ = $1;}
|
{$$ = $1;}
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user