summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/mdx-rehype-plugins.test.js
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2022-08-05 22:51:38 -0500
committerGravatar GitHub <noreply@github.com> 2022-08-05 20:51:38 -0700
commit77cede720b09bce34f29c3d2d8b505311ce876b1 (patch)
treeeffca866843064b798d68dd5ebde993f837d8725 /packages/integrations/mdx/test/mdx-rehype-plugins.test.js
parent97cf0cd893b950a48ffa631247528b4b4ad73109 (diff)
downloadastro-77cede720b09bce34f29c3d2d8b505311ce876b1.tar.gz
astro-77cede720b09bce34f29c3d2d8b505311ce876b1.tar.zst
astro-77cede720b09bce34f29c3d2d8b505311ce876b1.zip
[MDX] Prevent overriding `collect-headings` plugin (#4181)
* fix: make rehypeCollectHeadings a required plugin * docs: update README on rehypePlugins * test: remove collect-headings override test * docs: remove extends from rehype docs * chore: changeset
Diffstat (limited to 'packages/integrations/mdx/test/mdx-rehype-plugins.test.js')
-rw-r--r--packages/integrations/mdx/test/mdx-rehype-plugins.test.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/integrations/mdx/test/mdx-rehype-plugins.test.js b/packages/integrations/mdx/test/mdx-rehype-plugins.test.js
index d60c09a07..17430c750 100644
--- a/packages/integrations/mdx/test/mdx-rehype-plugins.test.js
+++ b/packages/integrations/mdx/test/mdx-rehype-plugins.test.js
@@ -34,17 +34,6 @@ describe('MDX rehype plugins', () => {
await fixture.build();
});
- it('removes default getHeadings', async () => {
- const html = await fixture.readFile('/space-ipsum/index.html');
- const { document } = parseHTML(html);
-
- const headings = [...document.querySelectorAll('h1, h2')];
- expect(headings.length).to.be.greaterThan(0);
- for (const heading of headings) {
- expect(heading.id).to.be.empty;
- }
- });
-
it('supports custom rehype plugins - reading time', async () => {
const { readingTime } = JSON.parse(await fixture.readFile('/reading-time.json'));