mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
12 lines
429 B
JavaScript
12 lines
429 B
JavaScript
import { createMarkdownProcessor } from '../dist/index.js';
|
|
import { expect } from 'chai';
|
|
|
|
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><i>This should NOT be italic</i></p>`);
|
|
});
|
|
});
|