diff options
Diffstat (limited to 'packages/markdown/remark/test/entities.test.js')
-rw-r--r-- | packages/markdown/remark/test/entities.test.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/markdown/remark/test/entities.test.js b/packages/markdown/remark/test/entities.test.js new file mode 100644 index 000000000..a6b5918a5 --- /dev/null +++ b/packages/markdown/remark/test/entities.test.js @@ -0,0 +1,12 @@ +import { renderMarkdown } from '../dist/index.js'; +import { expect } from 'chai'; + +describe('entities', () => { + const renderAstroMd = (text) => renderMarkdown(text, { isAstroFlavoredMd: false }); + + it('should not unescape entities', async () => { + const { code } = await renderAstroMd(`<i>This should NOT be italic</i>`); + + expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`); + }); +}); |