markdown-table-prettify
Version:
Transforms markdown tables to be more readable.
20 lines (19 loc) • 690 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transformer = void 0;
var Transformer = /** @class */ (function () {
function Transformer(_next) {
this._next = _next;
}
Transformer.prototype.process = function (input) {
//Note: consider dropping the transformers and moving all table related logic inside the factory.
if (input == null || input.isEmpty())
return input;
var table = this.transform(input);
if (this._next != null)
table = this._next.process(table);
return table;
};
return Transformer;
}());
exports.Transformer = Transformer;
;