diff options
author | 2022-09-01 12:11:13 -0400 | |
---|---|---|
committer | 2022-09-01 12:11:13 -0400 | |
commit | db38f61b2b2dc55f03b28797d19b163b1940f1c8 (patch) | |
tree | a86045e7df08c5bc5e11e7e2f3433270f33b9a4b /packages/integrations/mdx/test | |
parent | ef0ed3833925a9e6609ce6c664660a568ff28357 (diff) | |
download | astro-db38f61b2b2dc55f03b28797d19b163b1940f1c8.tar.gz astro-db38f61b2b2dc55f03b28797d19b163b1940f1c8.tar.zst astro-db38f61b2b2dc55f03b28797d19b163b1940f1c8.zip |
[MDX] Fix: GFM and Smartypants missing by default (#4588)
* fix: apply Astro defaults on empty md config
* chore: changeset
Diffstat (limited to 'packages/integrations/mdx/test')
-rw-r--r-- | packages/integrations/mdx/test/mdx-plugins.test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/integrations/mdx/test/mdx-plugins.test.js b/packages/integrations/mdx/test/mdx-plugins.test.js index a5c9480ae..4cbfaae3e 100644 --- a/packages/integrations/mdx/test/mdx-plugins.test.js +++ b/packages/integrations/mdx/test/mdx-plugins.test.js @@ -24,6 +24,17 @@ describe('MDX plugins', () => { expect(selectTocLink(document)).to.not.be.null; }); + it('Applies GFM by default', async () => { + const fixture = await buildFixture({ + integrations: [mdx()], + }); + + const html = await fixture.readFile(FILE); + const { document } = parseHTML(html); + + expect(selectGfmLink(document)).to.not.be.null; + }); + it('supports custom rehype plugins', async () => { const fixture = await buildFixture({ integrations: [ |