Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MarkdownRender] 在单个 { 和 单个 < 出现时,MarkdownRender 会 crash #2649

Open
xiak opened this issue Dec 25, 2024 · 2 comments
Open
Labels
feature request Request new feature

Comments

@xiak
Copy link

xiak commented Dec 25, 2024

Which Component Need Enhancement 期望新增功能的组件

  • MarkdownRender

What does the proposed API look like 期望支持的API

希望能在用户输入没有成对出现的 { 和 < 时候,不要crash

Feature Description 功能描述

希望能在用户输入没有成对出现的 { 和 < 时候,不要crash

Additional information 补充说明

@xiak xiak added the feature request Request new feature label Dec 25, 2024
@DaiQiangReal
Copy link
Collaborator

image
修改这个为 md,如果不需要 mdx 的话。如果需要mdx,传入前自己转义下用户的 <

@xiak
Copy link
Author

xiak commented Dec 31, 2024

如果想在 chat 中展示一些 semi 组件的话,还是需要 mdx 的。

这个CASE, MarkdownRender 如果能做一些防护是最好的,不然传入特殊字符就挂掉了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants