Offer some help working out the types of math formula atoms

This commit is contained in:
Martin von Gagern 2015-07-07 00:26:03 +02:00
parent 6357a34828
commit f05ff9c5fa
2 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,8 @@ var buildExpression = function(expression, options, prev) {
return groups;
};
// List of types used by getTypeOfGroup
// List of types used by getTypeOfGroup,
// see https://github.com/Khan/KaTeX/wiki/Examining-TeX#group-types
var groupToType = {
mathord: "mord",
textord: "mord",

View File

@ -7,6 +7,7 @@
normal font), or "ams" (the ams fonts).
* - group (required): the ParseNode group type the symbol should have (i.e.
"textord", "mathord", etc).
See https://github.com/Khan/KaTeX/wiki/Examining-TeX#group-types
* - replace (optional): the character that this symbol or function should be
* replaced with (i.e. "\phi" has a replace value of "\u03d5", the phi
* character in the main font).