Skip to content

Commit 76db534

Browse files
committedNov 10, 2021
fix: Fix previewOptions className errors. #287
1 parent 8466990 commit 76db534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Editor.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ const InternalMDEditor = (
269269
)}
270270
{/(live|preview)/.test(state.preview || '') && (
271271
<MarkdownPreview
272-
{...(previewOptions as unknown)}
272+
{...previewOptions}
273273
onScroll={(e) => handleScroll(e, 'preview')}
274274
ref={previewRef}
275275
source={state.markdown || ''}
276-
className={`${prefixCls}-preview`}
276+
className={`${prefixCls}-preview ${previewOptions.className || ''}`}
277277
/>
278278
)}
279279
</div>

0 commit comments

Comments
 (0)