From 542185ad195253b649e2309acafdaa278c384092 Mon Sep 17 00:00:00 2001 From: sup39 Date: Sat, 5 Nov 2022 21:49:38 +0900 Subject: [PATCH] update README example --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 59759c0..6855947 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,10 @@ const withMDX = require('@next/mdx')({ extension: /\.mdx?$/, options: { rehypePlugins: [ - () => ExportHeadings({ + [ExportHeadings, { tags: ['h2', 'h3'], name: 'labels', - }), + }], ], }, }); @@ -63,10 +63,10 @@ const withMDX = mdx({ extension: /\.mdx?$/, options: { rehypePlugins: [ - () => ExportHeadings({ + [ExportHeadings, { tags: ['h2', 'h3'], name: 'labels', - }), + }], ], }, });