import { describe, expect, it } from "vitest"; import { renderMarkdown } from "@/lib/markdown"; describe("renderMarkdown", () => { it("renders basic markdown", () => { const html = renderMarkdown("Some **bold** and *italic* text."); expect(html).toContain("bold"); expect(html).toContain("italic"); }); it("renders GFM tables and fenced code", () => { const html = renderMarkdown("| a | b |\n| - | - |\n| 1 | 2 |\n\n```\ncode\n```"); expect(html).toContain("