import { createMarkdownProcessor } from '../dist/index.js'; import chai from 'chai'; describe('collect images', async () => { const processor = await createMarkdownProcessor(); it('should collect inline image paths', async () => { const { code, metadata: { imagePaths }, } = await processor.render(`Hello ![inline image url](./img.png)`, { fileURL: 'file.md', }); chai .expect(code) .to.equal('
Hello
Hello