mathquill icon indicating copy to clipboard operation
mathquill copied to clipboard

\class{}{} command not translating back to LaTeX

Open TomasRiker opened this issue 4 years ago • 0 comments

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}".

TomasRiker avatar Jul 29 '21 03:07 TomasRiker