UNPKG

markdown-table-prettify

Version:

Transforms markdown tables to be more readable.

16 lines (15 loc) 599 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RightAlignmentMarker = void 0; var RightAlignmentMarker = /** @class */ (function () { function RightAlignmentMarker(_markerChar) { this._markerChar = _markerChar; } RightAlignmentMarker.prototype.mark = function (padding) { if (padding == null || padding.length < 2) return padding; return padding.substring(0, padding.length - 1) + this._markerChar; }; return RightAlignmentMarker; }()); exports.RightAlignmentMarker = RightAlignmentMarker;