longform-markdown-splitter
Version:
Splits and transforms markdown files from obsidian for usage in hugo.
31 lines (30 loc) • 1.39 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.MD_Frontmatter_Template = void 0;
var md_template_1 = require("./md-template");
var MD_Frontmatter_Template = (function (_super) {
__extends(MD_Frontmatter_Template, _super);
function MD_Frontmatter_Template() {
return _super !== null && _super.apply(this, arguments) || this;
}
MD_Frontmatter_Template.prototype.getFrontmatter = function (values) {
return this.fill(values);
};
return MD_Frontmatter_Template;
}(md_template_1.MD_Template));
exports.MD_Frontmatter_Template = MD_Frontmatter_Template;