blob: 3c244c15abb4a0d9c88e2b795ccb95535fd36d44 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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, `<p><i>This should NOT be italic</i></p>`);
});
});
|