From f05ff9c5fafd86c4a7a86d05343ae77287d56f1a Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Tue, 7 Jul 2015 00:26:03 +0200 Subject: [PATCH] Offer some help working out the types of math formula atoms --- src/buildHTML.js | 3 ++- src/symbols.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/buildHTML.js b/src/buildHTML.js index 11faf4088..6040c4a48 100644 --- 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 index b620d730f..b5d8f6cf4 100644 --- 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).