@vivliostyle/vfm
Version:
Custom Markdown syntax specialized in book authoring.
19 lines (18 loc) • 807 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.inspect = exports.debug = void 0;
var debug_1 = __importDefault(require("debug"));
var unist_util_inspect_1 = __importDefault(require("unist-util-inspect"));
exports.debug = (0, debug_1.default)('vfm');
var inspect = function (header) { return function () { return function (tree) {
if (exports.debug.enabled) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
if (header)
(0, exports.debug)("\n### ".concat(header, " ###"));
(0, exports.debug)((0, unist_util_inspect_1.default)(tree));
}
}; }; };
exports.inspect = inspect;