@qtikit/mathml-to-latex
Version:
A JavaScript tool to convert mathml string to LaTeX string
21 lines (20 loc) • 503 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeCategoryCode = exports.allCategoryCode = void 0;
exports.allCategoryCode = {
'{': true,
'}': true,
'$': true,
'&': true,
'#': true,
'^': true,
'_': true,
'%': true, // comment
};
var normalizeCategoryCode = function (str) {
if (exports.allCategoryCode[str]) {
return "\\".concat(str);
}
return str;
};
exports.normalizeCategoryCode = normalizeCategoryCode;