import { describe, expect, it } from "vitest"; import { SOURCE_LIMIT } from "#lib/markup/markdown.ts"; import { renderDocument, renderMarkup } from "#lib/markup/render.ts"; import type { MarkupContext } from "#lib/markup/paths.ts"; const ctx: MarkupContext = { repo: "ada.test/infra", ref: "main", host: "tangled.org" }; describe("renderDocument", () => { it("wraps what it renders", async () => { const html = await renderDocument("README.md", "# hello", ctx); expect(html).toMatch(/^