UNPKG

ts-markdown

Version:

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

37 lines (36 loc) 1.14 kB
import { MarkdownRenderer } from '../rendering.types'; import { InlineTypes, MarkdownEntry } from '../shared.types'; /** * A markdown entry for generating h5 elements. */ export interface H5Entry extends MarkdownEntry { /** * The h5 contents and identifying property for the renderer. */ h5: InlineTypes; /** * Option which will append a markdown heading ID. * E.g., given the ID 'my-id' and the header 'Header Example', * `##### Header Example {#my-id}` */ id?: string; /** * Option which will arbitrarily append a string immediately below the h5, ignoring block-level settings. */ append?: string; } /** * The renderer for h5 entries. * * @param entry The h5 entry. * @param options Document-level render options. * @returns Block-level h5 markdown content. */ export declare const h5Renderer: MarkdownRenderer; /** * Helper which creates a fifth-level header entry. * * @param options Entry-level options for this element. * @returns a fifth-level header entry */ export declare function h5(content: H5Entry['h5'], options?: Omit<H5Entry, 'h5'>): H5Entry;