2023-09-14 18:22:16 +08:00
|
|
|
import { createMarkdownProcessor } from '../dist/index.js';
|
2022-07-26 17:31:57 -04:00
|
|
|
import { expect } from 'chai';
|
|
|
|
|
2023-09-14 18:22:16 +08:00
|
|
|
describe('entities', async () => {
|
|
|
|
const processor = await createMarkdownProcessor();
|
|
|
|
|
2022-08-05 16:23:16 +02:00
|
|
|
it('should not unescape entities in regular Markdown', async () => {
|
2023-09-14 18:22:16 +08:00
|
|
|
const { code } = await processor.render(`<i>This should NOT be italic</i>`);
|
2022-07-26 17:31:57 -04:00
|
|
|
|
|
|
|
expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`);
|
|
|
|
});
|
|
|
|
});
|