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