@diplodoc/transform
Version:
A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML
18 lines • 764 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.preprocess = void 0;
const included_1 = __importDefault(require("./included"));
const defaultPreprocessors = [included_1.default];
exports.default = defaultPreprocessors;
function preprocess(content, pluginOptions, options, md) {
const { preprocessors = defaultPreprocessors } = options !== null && options !== void 0 ? options : {};
for (const preprocessor of preprocessors) {
content = preprocessor(content, pluginOptions, md);
}
return content;
}
exports.preprocess = preprocess;
//# sourceMappingURL=index.js.map