2022-07-26 21:31:57 +00:00
|
|
|
import { renderMarkdown } from '../dist/index.js';
|
|
|
|
import { expect } from 'chai';
|
2023-01-11 17:51:31 +00:00
|
|
|
import { mockRenderMarkdownParams } from './test-utils.js';
|
2022-07-26 21:31:57 +00:00
|
|
|
|
|
|
|
describe('entities', () => {
|
2022-08-05 14:23:16 +00:00
|
|
|
it('should not unescape entities in regular Markdown', async () => {
|
2023-01-11 17:51:31 +00:00
|
|
|
const { code } = await renderMarkdown(
|
|
|
|
`<i>This should NOT be italic</i>`,
|
|
|
|
mockRenderMarkdownParams
|
|
|
|
);
|
2022-07-26 21:31:57 +00:00
|
|
|
|
|
|
|
expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`);
|
|
|
|
});
|
|
|
|
});
|