import { describe, expect, it } from 'vitest' import { renderMarkdown } from '@/lib/markdown' import { applyMarkdownAction } from '@/lib/markdownEdit' describe('renderMarkdown', () => { it('renders bold text and a bulleted list', () => { const html = renderMarkdown( 'Two days with **lime putty**.\n\n- Bring work clothes\n- Lunch', ) expect(html).toContain('lime putty') expect(html.match(/
  • /g)).toHaveLength(2) }) it('shows raw HTML as text', () => { const html = renderMarkdown('') expect(html).not.toContain('