import { htmlToMarkdown, normalizeMarkdownText } from '../lib/markdown' describe('akeneo markdown conversion', () => { it('converts rich html to markdown', () => { expect(htmlToMarkdown('

Hello world
Link

')).toBe( 'Hello **world**\n[Link](https://example.com)\n\n- One\n- Two', ) }) it('passes plain text through', () => { expect(normalizeMarkdownText('Simple text')).toBe('Simple text') }) })