dify/web/app/components/base/markdown
yyh b7f1eb9b7b
fix(markdown)!: return empty string for non-string content in preprocessors
Related to a9c5201485 - when switching views during active preview run,
the markdown preprocessors could receive non-string content (e.g., frozen
arrays from immer). Returning the original value caused ReactMarkdown to
fail with "Cannot assign to read only property" error.

Now both preprocessLaTeX and preprocessThinkTag return '' for non-string
input, preventing runtime errors during view switches.
2026-01-27 01:10:00 +08:00
..
error-boundary.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
index.stories.tsx chore: update to story book nextjs-vite (#31536) 2026-01-26 17:07:20 +08:00
index.tsx chore(web): migrate lodash-es to es-toolkit compat (#30126) 2025-12-25 09:44:57 +08:00
markdown-utils.ts fix(markdown)!: return empty string for non-string content in preprocessors 2026-01-27 01:10:00 +08:00
react-markdown-wrapper.spec.tsx fix(web): disable single tilde strikethrough in markdown rendering (#31400) 2026-01-22 16:33:17 +08:00
react-markdown-wrapper.tsx fix(web): disable single tilde strikethrough in markdown rendering (#31400) 2026-01-22 16:33:17 +08:00