UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

22 lines 691 B
/** * Parse YAML frontmatter from markdown content * Frontmatter is delimited by --- at the start of the file */ export declare function parseFrontmatter(content: string): FrontmatterResult; /** * Convert markdown to HTML * Simple implementation that handles common markdown patterns */ export declare function parseMarkdown(content: string, options?: MarkdownOptions): string; /** * Internal markdown utilities to replace ts-md dependency * Provides frontmatter parsing and markdown to HTML conversion */ export declare interface FrontmatterResult { data: Record<string, unknown> content: string } export declare interface MarkdownOptions { gfm?: boolean breaks?: boolean }