We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e1dc2 commit eff7fdfCopy full SHA for eff7fdf
1 file changed
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx
@@ -485,7 +485,11 @@ function resolveSimFileUrl(src: string | undefined): string | undefined {
485
486
const STATIC_MARKDOWN_COMPONENTS = {
487
pre: ({ children }: { children?: React.ReactNode }) => (
488
- <>{isValidElement(children) ? cloneElement(children, { 'data-block': 'true' }) : children}</>
+ <>
489
+ {Children.map(children, (child) =>
490
+ isValidElement(child) ? cloneElement(child, { 'data-block': 'true' }) : child
491
+ ) ?? children}
492
+ </>
493
),
494
'mermaid-diagram': ({ definition }: { definition?: string }) => {
495
const isStreaming = useContext(MermaidStreamingCtx)
0 commit comments