commit f05ff9c5fafd86c4a7a86d05343ae77287d56f1a
parent 6357a348283cd1d1f1054fe9dbff7d94600c7f0a
Author: Martin von Gagern <gagern@ma.tum.de>
Date: Tue, 7 Jul 2015 00:26:03 +0200
Offer some help working out the types of math formula atoms
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/buildHTML.js b/src/buildHTML.js
@@ -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",
diff --git a/src/symbols.js b/src/symbols.js
@@ -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).