Skip to content

Commit 28981b2

Browse files
committed
fix: ignore missing.
1 parent 28c7f5e commit 28981b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default React.forwardRef<MarkdownPreviewRef, MarkdownPreviewProps>((props
3030
<ReactMarkdown
3131
{...other}
3232
plugins={[gfm, ...(other.plugins || [])]}
33-
rehypePlugins={[rehypePrism, rehypeRaw, ...(other.rehypePlugins || [])]}
33+
rehypePlugins={[[rehypePrism, {ignoreMissing: true }], rehypeRaw, ...(other.rehypePlugins || [])]}
3434
children={source || ''}
3535
/>
3636
</div>

0 commit comments

Comments
 (0)