Fix no-base-to-string

This commit is contained in:
Gregory Schier
2026-03-13 07:48:50 -07:00
parent e4103f1a4a
commit be34dfe74a
11 changed files with 14 additions and 10 deletions

View File

@@ -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}>