suppress a type error of a common use
This commit is contained in:
parent
dd8a2ba50f
commit
7853fce887
1 changed files with 4 additions and 0 deletions
|
@ -121,6 +121,10 @@ const MarkdownPreview: FC<{
|
|||
{/* Using rehypeRaw to render HTML inside Markdown is potentially dangerous, use under safe environments. (#18) */}
|
||||
<ReactMarkdown
|
||||
remarkPlugins={[gfm, remarkMath]}
|
||||
// The type error is introduced by caniuse-lite upgrade.
|
||||
// Since type errors occur often in remark toolchain and the use is so common,
|
||||
// ignoring it shoudld be safe enough.
|
||||
// @ts-ignore
|
||||
rehypePlugins={[rehypeKatex, rehypeRaw]}
|
||||
components={customRenderer}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue