UNPKG

longform-markdown-splitter

Version:

Splits and transforms markdown files from obsidian for usage in hugo.

19 lines (18 loc) 608 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MD_InsertUUID_Mapping = void 0; var uuid_1 = require("uuid"); var MD_InsertUUID_Mapping = (function () { function MD_InsertUUID_Mapping() { } MD_InsertUUID_Mapping.prototype.perform = function (mapping_properties) { if ((0, uuid_1.validate)(mapping_properties.source_value)) { return mapping_properties.source_value; } else { return (0, uuid_1.v4)(); } }; return MD_InsertUUID_Mapping; }()); exports.MD_InsertUUID_Mapping = MD_InsertUUID_Mapping;