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

[BUG] <customMarkDownComponents not support mdx> #2640

Open
1 task done
febear opened this issue Dec 19, 2024 · 0 comments
Open
1 task done

[BUG] <customMarkDownComponents not support mdx> #2640

febear opened this issue Dec 19, 2024 · 0 comments
Assignees

Comments

@febear
Copy link

febear commented Dec 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Chat

Semi Version

2.71.2

Current Behavior

customMarkDownComponents not support mdx,because MarkdownRender prop "format"="md"
code Link:
https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/chat/chatBox/chatBoxContent.tsx#L53
https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/chat/chatBox/chatBoxContent.tsx#L62

key is not right, use a string "index" not a variable index
code Link:
https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/chat/chatBox/chatBoxContent.tsx#L61
https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/chat/chatBox/chatBoxContent.tsx#L67
https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/chat/chatBox/chatBoxContent.tsx#L71

Expected Behavior

I wish the Chat component to provide the MarkdownRender "format" parameter configuration so that I can implement MDX functionality when I use customMarkDownComponents

Steps To Reproduce

No response

ReproducibleCode

No response

Environment

- OS: MacOS
- browser: chrome

Anything else?

No response

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

No branches or pull requests

2 participants