blob: b2dacb79f7bc2864a5157b11519622186be84ba3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { createMarkdownProcessor } from '../dist/index.js';
import { expect } from 'chai';
describe('entities', async () => {
const processor = await createMarkdownProcessor();
it('should not unescape entities in regular Markdown', async () => {
const { code } = await processor.render(`<i>This should NOT be italic</i>`);
expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`);
});
});
|