Skip to content

Commit

Permalink
fix: ignore missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 7, 2021
1 parent 28c7f5e commit 28981b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Expand Up @@ -30,7 +30,7 @@ export default React.forwardRef<MarkdownPreviewRef, MarkdownPreviewProps>((props
<ReactMarkdown
{...other}
plugins={[gfm, ...(other.plugins || [])]}
rehypePlugins={[rehypePrism, rehypeRaw, ...(other.rehypePlugins || [])]}
rehypePlugins={[[rehypePrism, {ignoreMissing: true }], rehypeRaw, ...(other.rehypePlugins || [])]}
children={source || ''}
/>
</div>
Expand Down

0 comments on commit 28981b2

Please sign in to comment.