Skip to content

Commit 6fd9f11

Browse files
committedFeb 15, 2023
fix: fix wrapperElement props issue.
1 parent f802254 commit 6fd9f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default React.forwardRef<MarkdownPreviewRef, MarkdownPreviewProps>((props
101101
rehypePlugins.push(raw);
102102
}
103103
const remarkPlugins = [...(other.remarkPlugins || []), gfm];
104-
const wrapperProps = warpperElement || wrapperElement || {};
104+
const wrapperProps = { ...warpperElement, ...wrapperElement };
105105
return (
106106
<div ref={mdp} onScroll={onScroll} onMouseOver={onMouseOver} {...wrapperProps} className={cls} style={style}>
107107
<ReactMarkdown

0 commit comments

Comments
 (0)
Please sign in to comment.