import { createHtmlRenderer } from "@comark/html"; import { expect, test } from "@playwright/test"; import comarkUi from "../packages/ui/src/html.ts"; import { fixture } from "./helpers.ts"; const render = createHtmlRenderer( comarkUi({ chips: { download: false }, badge: { download: false }, icon: { fetch: false }, diagrams: { draw: false }, figure: { unwrap: true }, }), ); const portrait = ''; test("the first block adds no space above, with the typeset styles before it", async ({ page }) => { const html = await render("## Plan\n\nThe first step."); expect(html.trimStart()).toMatch(/^