import { describe, it, expect } from 'vitest' import { renderMarkdownToSafeHtml, markdownToPlainText, } from '@/lib/markdown' describe('renderMarkdownToSafeHtml', () => { it('헤딩/리스트/굵은 글씨를 HTML로 변환한다', () => { const html = renderMarkdownToSafeHtml(`# 제목 - 항목1 - **중요** 항목2`) expect(html).toContain('

제목

') expect(html).toContain('