fix: [Chat]Fix special symbols causing conversion errors #2452
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
中文模板 / Chinese Template
What kind of change does this PR introduce? (check at least one)
PR description
Fixes #
修改前:
使用 MarkdownRender 组件时候,使用的模式是 mdx 模式 (format="mdx", 默认),在渲染文件类型时候,用了 JSX。
问题:
mdx默认是下,<, { 等特殊符号会认为是 jsx 代码的一部分,不转义会导致解析出现 SyntaxError
修改后:
不通过MarkdownRender 渲染文件,使用 md 模式 (format="md", 默认)。
Changelog
🇨🇳 Chinese
🇺🇸 English
Checklist
Other
Additional information