[Bug] The Markdown rendering component is overly defensive in certain cases

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Closed

@WankkoRee

Description

Contact Information

No response

1Panel Version

v2.1.1

Problem Description

应用商店中 OpenClaw 的 ReadMe 中即有相关问题,如下图在 Markdown code 块中的</>被过度防御导致转义为&lt;/&gt;

Image

应该是下方代码的问题,但是不知如何妥善处理。

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions