diff --git a/src/functions.js b/src/functions.js index 121bc995..7e50cccf 100644 --- a/src/functions.js +++ b/src/functions.js @@ -205,7 +205,9 @@ defineFunction("\\rule", { }; }); -defineFunction("\\kern", { +// TODO: In TeX, \mkern only accepts mu-units, and \kern does not accept +// mu-units. In current KaTeX we relax this; both commands accept any unit. +defineFunction(["\\kern", "\\mkern"], { numArgs: 1, argTypes: ["size"], }, function(context, args) {