astro/packages/markdown/remark/test/entities.test.js
2023-09-16 09:21:40 +01:00

12 lines
429 B
JavaScript

import { expect } from 'chai';
import { createMarkdownProcessor } from '../dist/index.js';
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>&#x3C;i>This should NOT be italic&#x3C;/i></p>`);
});
});