From 29a717211a13f0ce7751ca23ada50da80d2d7353 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Fri, 14 Aug 2026 18:49:07 -0700 Subject: [PATCH] fix(make-pdf): no blank first page when content precedes the first H1 Two paths put invisible content ahead of the first H1 and cost users a blank page 1 (#1904): - A visually-empty preamble (leading \n\n# Hello\n\nBody.\n` }); + const chapters = result.html.match(/class="chapter"/g) ?? []; + // One chapter, not two — the invisible "); + expect(result.html).toMatch(/