import { describe, expect, it } from "vitest"; import { renderAgentConversationCopyHtml } from "./agentConversationCopyHtml"; describe("renderAgentConversationCopyHtml", () => { it("renders headings, paragraphs, lists and GFM tables", () => { const html = renderAgentConversationCopyHtml( [ "# Session title", "", "Hello **world**", "", "- item one", "- item two", "", "| a | b |", "| - | - |", "| 1 | 2 |" ].join("\n") ); expect(html).toContain("
| 1 | "); }); it("keeps inline data-URI images as real img sources", () => { const html = renderAgentConversationCopyHtml( "![shot.png](