import assert from 'node:assert/strict'; import { before, describe, it } from 'node:test'; import { createMarkdownProcessor } from '../dist/index.js'; describe('entities', async () => { let processor; before(async () => { processor = await createMarkdownProcessor(); }); it('should not unescape entities in regular Markdown', async () => { const markdown = `<i>This should NOT be italic</i>`; const { code } = await processor.render(markdown); assert.equal(code, `

<i>This should NOT be italic</i>

`); }); });