UNPKG

az-mathml-to-latex

Version:

A JavaScript tool to convert mathml string to LaTeX string

18 lines (17 loc) 713 B
"use strict"; 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 helpers_1.mathMLElementToLaTeXConverter(child); }) .map(function (converter) { return converter.convert(); }) .join(' '); }; return GenericSpacingWrapper; }()); exports.GenericSpacingWrapper = GenericSpacingWrapper;