summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/test/entities.test.js
blob: acaf71be172c0302596ec2f3e1de345cfec8544c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { renderMarkdown } from '../dist/index.js';
import { expect } from 'chai';
import { mockRenderMarkdownParams } from './test-utils.js';

describe('entities', () => {
	it('should not unescape entities in regular Markdown', async () => {
		const { code } = await renderMarkdown(
			`<i>This should NOT be italic</i>`,
			mockRenderMarkdownParams
		);

		expect(code).to.equal(`<p>&#x3C;i>This should NOT be italic&#x3C;/i></p>`);
	});
});