mathquill
mathquill copied to clipboard
\class{}{} command not translating back to LaTeX
The \class{}{} command, used for giving CSS classes to its content, doesn't translate back to LaTeX, meaning that .latex() will return garbage and not the original command.
Example that can be run on http://mathquill.com:
var math = MathQuill.getInterface(2)($("#math-field")[0]);
math.latex("\\class{test}{abc}");
alert(math.latex());
This will alert "class{abc}", swallowing the backslash and the "{test}".