import { markdownHtmlAgent } from '../src/services/markdownHtmlAgent'; describe('markdownHtmlAgent table and image support', () => { it('should render tables properly', async () => { const md = `# Title\n\n| H1 | H2 |\n| -- | -- |\n| A | B |`; const html = await markdownHtmlAgent({ title: 'Doc', markdown: md }); // Table wrapper expect(html).toContain('H1'); expect(html).toContain('A'); expect(html).toContain('B'); }); it('should render images with alt and src attributes', async () => { const md = `# Img\n\n![Alt Text](https://example.com/img.png)`; const html = await markdownHtmlAgent({ title: 'Doc', markdown: md }); expect(html).toMatch(/]+src="https:\/\/example.com\/img.png"/); expect(html).toMatch(/]+alt="Alt Text"/); }); });