UNPKG

markdown-table-prettify

Version:

Transforms markdown tables to be more readable.

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