summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/test/entities.test.js
diff options
context:
space:
mode:
authorGravatar Chris Swithinbank <swithinbank@gmail.com> 2023-01-09 10:23:21 +0100
committerGravatar GitHub <noreply@github.com> 2023-01-09 10:23:21 +0100
commit16107b6a10514ef1b563e585ec9add4b14f42b94 (patch)
tree7aeedf42016e63b81f58dd24050cc83eae7a3dd8 /packages/markdown/remark/test/entities.test.js
parent54076a41ebf5da421370a130b97a6406f094042e (diff)
downloadastro-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.js15
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(`&lt;i&gt;This should NOT be italic&lt;/i&gt;`, {
- isAstroFlavoredMd: false,
- });
+ const { code } = await renderMarkdown(`&lt;i&gt;This should NOT be italic&lt;/i&gt;`, {});
expect(code).to.equal(`<p>&#x3C;i>This should NOT be italic&#x3C;/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">&lt;h1&gt;{x &amp;&amp; x.name || ''}!&lt;/h1&gt;\n</code></pre>`
- );
- });
});