UNPKG

histoire

Version:

A fast story book powered by Vite

12 lines • 805 B
import type { Context } from '../context.js'; import MarkdownIt from 'markdown-it'; /** Prepared HTML generation contains no asynchronous publication boundary. */ export interface PreparedMarkdown { /** Renders through the configured parser's rules and the captured environment. */ render: () => string; } /** Parses once and completes grammar loading before shared records can be changed. */ export declare function prepareMarkdown(ctx: Context, md: MarkdownIt, source: string, env?: Record<string, unknown>): Promise<PreparedMarkdown>; /** Renders standalone transform input after its context-owned preparation completes. */ export declare function renderMarkdown(ctx: Context, md: MarkdownIt, source: string, env?: Record<string, unknown>): Promise<string>; //# sourceMappingURL=render.d.ts.map