mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-28 11:37:04 +02:00
Fix no-base-to-string
This commit is contained in:
@@ -102,7 +102,7 @@ const markdownComponents: Partial<Components> = {
|
||||
language={match[1]}
|
||||
style={prismTheme}
|
||||
>
|
||||
{String(children).replace(/\n$/, '')}
|
||||
{String(children as string).replace(/\n$/, '')}
|
||||
</SyntaxHighlighter>
|
||||
) : (
|
||||
<code {...extraProps} ref={ref} className={className}>
|
||||
|
||||
Reference in New Issue
Block a user