UNPKG

ts-markdown

Version:

An extensible TypeScript markdown generator that takes JSON and creates a markdown document.

18 lines (17 loc) 530 B
import { MarkdownRenderer } from '../rendering.types'; import { MarkdownEntry } from '../shared.types'; /** * Markdown entry for generating frontmatter elements */ export interface FrontmatterEntry extends MarkdownEntry { frontmatter: Object; } /** * Renderer for frontmatter entries * * @param entry the frontmatter object entry * @param options * @returns */ export declare const frontmatterRenderer: MarkdownRenderer; export declare function frontmatter(content: FrontmatterEntry['frontmatter']): FrontmatterEntry;