[Bug] The Markdown rendering component is overly defensive in certain cases
Navigation Menu
{{ message }}
1Panel-dev / 1Panel Public
- Notifications You must be signed in to change notification settings
- Fork 3.1k
Closed
Description
opened
on Feb 28, 2026Contact Information
No response
1Panel Version
v2.1.1
Problem Description
应用商店中 OpenClaw 的 ReadMe 中即有相关问题,如下图在 Markdown code 块中的</>被过度防御导致转义为</>。
应该是下方代码的问题,但是不知如何妥善处理。
1Panel/frontend/src/components/mkdown-editor/index.vue
Lines 20 to 22 in 36f03e5
| const sanitizedReadMe = computed(() => { | |
| return DOMPurify.sanitize(props.content); | |
| }); |
Steps to Reproduce
The expected correct result
No response
Related log output
Additional Information
No response
Metadata
Metadata
Assignees
Type
No type
Projects
No projects
Milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions
