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
..
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-13 12:26:50 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-22 18:16:37 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2025-12-29 14:52:32 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2025-12-29 14:52:32 +08:00
2025-12-31 08:32:55 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2025-12-23 18:02:10 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-21 12:53:29 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 23:12:44 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-22 16:13:10 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-27 01:10:00 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2025-12-23 18:02:10 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:09:36 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2025-12-29 14:52:32 +08:00
2026-01-26 17:07:20 +08:00
2025-12-23 18:02:10 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-17 22:10:10 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2026-01-26 17:07:20 +08:00
2025-12-31 08:32:55 +08:00
2026-01-22 18:16:37 +08:00
2025-12-29 14:52:32 +08:00
2025-12-23 16:58:55 +08:00
2025-12-29 14:52:32 +08:00
2025-12-23 16:58:55 +08:00