10 lines
363 B
JavaScript
10 lines
363 B
JavaScript
import { renderMarkdown } from '../dist/index.js';
|
|
import { expect } from 'chai';
|
|
|
|
describe('entities', () => {
|
|
it('should not unescape entities in regular Markdown', async () => {
|
|
const { code } = await renderMarkdown(`<i>This should NOT be italic</i>`, {});
|
|
|
|
expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`);
|
|
});
|
|
});
|