markdown-table-prettify
Version:
Transforms markdown tables to be more readable.
21 lines (20 loc) • 995 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContentPadCalculator = void 0;
var ContentPadCalculator = /** @class */ (function () {
function ContentPadCalculator(_padCalculatorSelector, _paddingChar) {
this._padCalculatorSelector = _padCalculatorSelector;
this._paddingChar = _paddingChar;
}
ContentPadCalculator.prototype.getLeftPadding = function (table, row, column) {
return this._padCalculatorSelector.select(table, column).getLeftPadding(this._paddingChar, table, row, column);
};
ContentPadCalculator.prototype.getRightPadding = function (table, row, column) {
return this._padCalculatorSelector.select(table, column).getRightPadding(this._paddingChar, table, row, column);
};
ContentPadCalculator.prototype.getPadChar = function () {
return this._paddingChar;
};
return ContentPadCalculator;
}());
exports.ContentPadCalculator = ContentPadCalculator;
;