@qtikit/mathml-to-latex
Version:
A JavaScript tool to convert mathml string to LaTeX string
18 lines (17 loc) • 594 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MTr = void 0;
var helpers_1 = require("../../../helpers");
var MTr = /** @class */ (function () {
function MTr(mathElement) {
this._mathmlElement = mathElement;
}
MTr.prototype.convert = function () {
return this._mathmlElement.children
.map(function (child) { return (0, helpers_1.mathMLElementToLaTeXConverter)(child); })
.map(function (converter) { return converter.convert(); })
.join(' & ');
};
return MTr;
}());
exports.MTr = MTr;