mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
问题:[Bug]: 当模型回复的html代码没有正确在代码框中时,html代码内容会影响到UI界面 #1767 原因:解析html之后css会污染应用样式 解决:将markdown完全放入shadow dom中,shadow dom天然隔绝样式,即可解决 * feat: Conditionally hide thinking loader for paused messages * feat: Implement Shadow DOM for Markdown rendering * feat: Add StyleProvider to Shadow DOM Markdown rendering * fix: Refactor Markdown rendering with inline ShadowDOM component Modify ReactMarkdown component to use style component for ShadowDOM rendering instead of wrapping component, simplifying the rendering approach --------- Co-authored-by: lizhixuan <zhixuan.li@banosuperapp.com> |
||
|---|---|---|
| .. | ||
| main | ||
| preload | ||
| renderer | ||