Skip to content

Commit

Permalink
fix: Fix header anchor error. (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 8, 2021
1 parent d86fcfe commit 3c42208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Expand Up @@ -68,7 +68,7 @@ export default React.forwardRef<MarkdownPreviewRef, MarkdownPreviewProps>((props
<div ref={mdp} onScroll={onScroll} onMouseOver={onMouseOver} {...warpperElement} className={cls} style={style}>
<ReactMarkdown
{...other}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], slug, headings, [rehypeRewrite, rehypeRewriteHandle], rehypeRaw, ...(other.rehypePlugins || [])]}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeRaw, slug, headings, [rehypeRewrite, { rewrite: rehypeRewriteHandle }], ...(other.rehypePlugins || [])]}
remarkPlugins={[ ...(other.remarkPlugins || []), gfm ]}
children={source || ''}
/>
Expand Down

0 comments on commit 3c42208

Please sign in to comment.