Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Commit 7853fce

Browse files
committed
suppress a type error of a common use
1 parent dd8a2ba commit 7853fce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/previews/MarkdownPreview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ const MarkdownPreview: FC<{
121121
{/* Using rehypeRaw to render HTML inside Markdown is potentially dangerous, use under safe environments. (#18) */}
122122
<ReactMarkdown
123123
remarkPlugins={[gfm, remarkMath]}
124+
// The type error is introduced by caniuse-lite upgrade.
125+
// Since type errors occur often in remark toolchain and the use is so common,
126+
// ignoring it shoudld be safe enough.
127+
// @ts-ignore
124128
rehypePlugins={[rehypeKatex, rehypeRaw]}
125129
components={customRenderer}
126130
>

0 commit comments

Comments
 (0)