Skip to content

Commit 268537f

Browse files
committed
fix: fix the issue with the loading order of rehypePlugins. #259
1 parent 5621374 commit 268537f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export default React.forwardRef<MarkdownPreviewRef, MarkdownPreviewProps>((props
1717
reservedMeta,
1818
rehypeRaw,
1919
retrieveMeta,
20-
[rehypePrism, { ignoreMissing: true }],
2120
...defaultRehypePlugins,
2221
[rehypeRewrite, { rewrite: rehypeRewriteHandle(props.disableCopy ?? false, props.rehypeRewrite) }],
2322
[rehypeAttrs, { properties: 'attr' }],
2423
...(props.rehypePlugins || []),
24+
[rehypePrism, { ignoreMissing: true }],
2525
];
2626
return <MarkdownPreview {...props} rehypePlugins={rehypePlugins} ref={ref} />;
2727
});

0 commit comments

Comments
 (0)