/** * HTML to Substack's document format. * * Kept because plenty of callers already hold HTML: a scraped post, a rendered * template, output from another CMS. Markdown is the better default, but * converting HTML to markdown first and then parsing it loses more than parsing * it directly. * * This is a focused parser for the tags Substack can actually represent, not a * general HTML engine. Anything unrecognized degrades to its text content. */ import { type PMDoc, type PMNode } from "./prosemirror.js"; export declare function decodeEntities(input: string): string; /** Wrap bare text in paragraphs so plain input still produces valid blocks. */ export declare function looksLikeHtml(input: string): boolean; export declare function htmlToDoc(html: string): PMDoc; /** Inline HTML to text nodes with marks, tracking open marks as a stack. */ export declare function parseInline(html: string): PMNode[];