Skip to content

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

@WankkoRee

Description

@WankkoRee

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