Skip to content

Commit 0dd4cca

Browse files
committed
feat: add rehype-ignore to rehypePlugins.
1 parent ed4888a commit 0dd4cca

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"react-markdown": "~8.0.0",
6060
"rehype-attr": "~2.0.7",
6161
"rehype-autolink-headings": "~6.1.1",
62+
"rehype-ignore": "^1.0.1",
6263
"rehype-prism-plus": "~1.4.0",
6364
"rehype-raw": "~6.1.1",
6465
"rehype-rewrite": "~3.0.6",

src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import slug from 'rehype-slug';
77
import headings from 'rehype-autolink-headings';
88
import rehypeRaw from 'rehype-raw';
99
import rehypeAttrs from 'rehype-attr';
10+
import rehypeIgnore from 'rehype-ignore';
1011
import rehypePrism from 'rehype-prism-plus';
1112
import rehypeRewrite, { getCodeString, RehypeRewriteOptions } from 'rehype-rewrite';
1213
import { octiconLink } from './nodes/octiconLink';
@@ -70,6 +71,7 @@ export default React.forwardRef<MarkdownPreviewRef, MarkdownPreviewProps>((props
7071
rehypeRaw,
7172
slug,
7273
headings,
74+
rehypeIgnore,
7375
[rehypeRewrite, { rewrite: rehypeRewriteHandle }],
7476
[rehypeAttrs, { properties: 'attr' }],
7577
...(other.rehypePlugins || []),

0 commit comments

Comments
 (0)