// Use browser fragmentation, rather than estimating breaks in a tall screen document. // The renderer's print rules and physical geometry remain authoritative. export function previewDocumentHtml(html: string, fallbackHeightPx: number, pageIndex = 0): string { const script = ``; return html.includes('') ? html.replace('', `${script}`) : `${html}${script}`; }