import { describe, expect, it } from "vitest"; import { 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("renderMarkup", () => { it("renders a body whatever its name", async () => { const html = await renderMarkup("a **body**", ctx); expect(html).toMatch(/^
/); expect(html).toContain("body"); }); });