diff options
author | 2023-01-09 10:23:21 +0100 | |
---|---|---|
committer | 2023-01-09 10:23:21 +0100 | |
commit | 16107b6a10514ef1b563e585ec9add4b14f42b94 (patch) | |
tree | 7aeedf42016e63b81f58dd24050cc83eae7a3dd8 /packages/markdown/remark/test/entities.test.js | |
parent | 54076a41ebf5da421370a130b97a6406f094042e (diff) | |
download | astro-16107b6a10514ef1b563e585ec9add4b14f42b94.tar.gz astro-16107b6a10514ef1b563e585ec9add4b14f42b94.tar.zst astro-16107b6a10514ef1b563e585ec9add4b14f42b94.zip |
Remove Astro-flavored Markdown from `@astrojs/markdown-remark` (#5785)
Diffstat (limited to 'packages/markdown/remark/test/entities.test.js')
-rw-r--r-- | packages/markdown/remark/test/entities.test.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/packages/markdown/remark/test/entities.test.js b/packages/markdown/remark/test/entities.test.js index b7d551d72..d35ed3a89 100644 --- a/packages/markdown/remark/test/entities.test.js +++ b/packages/markdown/remark/test/entities.test.js @@ -3,21 +3,8 @@ 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>`, { - isAstroFlavoredMd: false, - }); + const { code } = await renderMarkdown(`<i>This should NOT be italic</i>`, {}); expect(code).to.equal(`<p><i>This should NOT be italic</i></p>`); }); - - it('should not escape entities in code blocks twice in Astro-flavored markdown', async () => { - const { code } = await renderMarkdown(`\`\`\`astro\n<h1>{x && x.name || ''}!</h1>\n\`\`\``, { - isAstroFlavoredMd: true, - syntaxHighlight: false, - }); - - expect(code).to.equal( - `<pre is:raw><code class="language-astro"><h1>{x && x.name || ''}!</h1>\n</code></pre>` - ); - }); }); |