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