123456789101112131415161718 |
- import assert from 'node:assert/strict';
- import { describe, it, before } 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, `<p><i>This should NOT be italic</i></p>`);
- });
- });
|