52209ca2ad
* refactor: remove experimental.cc from core * chore: remove experimental flag from tests * fix: mock contentDir in remark tests * fix: check vfile.path in rel-image-error plugin * fix: move .astro/ excludes to all test/fixtures * fix: include test/**/fixtures in ignore * chore: changeset
14 lines
455 B
JavaScript
14 lines
455 B
JavaScript
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><i>This should NOT be italic</i></p>`);
|
|
});
|
|
});
|