@diplodoc/transform
Version:
A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML
7 lines (6 loc) • 321 B
TypeScript
export declare type FrontMatter = {
[key: string]: unknown;
metadata?: Record<string, unknown>[];
};
export declare const extractFrontMatter: (fileContent: string, filePath?: string) => [FrontMatter, string];
export declare const composeFrontMatter: (frontMatter: FrontMatter, strippedContent: string) => string;