import { describe, expect, it } from 'vitest' import { renderMarkdown } from './render-markdown' describe('renderMarkdown', () => { it('renders markdown to html', () => { expect(renderMarkdown('some **bold** text')).toBe('

some bold text

\n') }) it('passes raw html through (html: true)', () => { expect(renderMarkdown('
y
')).toContain('
y
') }) it('does not treat indented lines as code blocks (code rule disabled)', () => { expect(renderMarkdown(' indented line')).not.toContain('
')
  })
})