aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/mdx-get-headings.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/mdx/test/mdx-get-headings.test.js')
-rw-r--r--packages/integrations/mdx/test/mdx-get-headings.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/mdx/test/mdx-get-headings.test.js b/packages/integrations/mdx/test/mdx-get-headings.test.js
index 1b1987e77..5b415c70f 100644
--- a/packages/integrations/mdx/test/mdx-get-headings.test.js
+++ b/packages/integrations/mdx/test/mdx-get-headings.test.js
@@ -72,7 +72,7 @@ describe('MDX heading IDs can be customized by user plugins', () => {
rehypePlugins: [
() => (tree) => {
let count = 0;
- visit(tree, 'element', (node, index, parent) => {
+ visit(tree, 'element', (node) => {
if (!/^h\d$/.test(node.tagName)) return;
if (!node.properties?.id) {
node.properties = { ...node.properties, id: String(count++) };
@@ -125,7 +125,7 @@ describe('MDX heading IDs can be injected before user plugins', () => {
rehypePlugins: [
rehypeHeadingIds,
() => (tree) => {
- visit(tree, 'element', (node, index, parent) => {
+ visit(tree, 'element', (node) => {
if (!/^h\d$/.test(node.tagName)) return;
if (node.properties?.id) {
node.children.push({ type: 'text', value: ' ' + node.properties.id });