import { describe, expect, test } from 'bun:test'; import { HtmlConverter } from '../lib/markdown/html-converter.js'; describe('HtmlConverter', () => { test('converts simple markdown to HTML', () => { const converter = new HtmlConverter(); const { html } = converter.convert('Hello **world**!'); expect(html).toContain('world'); }); test('converts headings', () => { const converter = new HtmlConverter(); const { html } = converter.convert('# Heading 1\n## Heading 2'); expect(html).toContain('

Heading 1

'); expect(html).toContain('

Heading 2

'); }); test('converts lists', () => { const converter = new HtmlConverter(); const { html } = converter.convert('- Item 1\n- Item 2'); expect(html).toContain('