import { parse } from "./parse.js" import { test, expect } from "vitest" test("should parse simple markdown to html", async () => { const markdown = ` # Hello World` const html = (await parse(markdown)).html expect(html).toContain("
{
const markdown = `
\`\`\`mermaid
graph TD
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
\`\`\`
`
const html = (await parse(markdown)).html
expect(html).toContain("