Repository navigation
feat: 对话框过滤 Markdown 标记(剥离星号/反引号/井号/箭头等噪声字符) - #2
Open
Ichigo015-X wants to merge 1 commit into
Open
Ichigo015-X wants to merge 1 commit into
Ichigo015-X wants to merge 1 commit into
Conversation
cleanDialogueText 接入 stripMarkdown,覆盖用户消息/助手回复/流式 partial 与历史面板。斜体/粗体/删除线/代码/标题/引用/列表/分隔线/链接/图片均剥离,未闭合标记保留。边界保护:数学乘法、词内星号、snake_case 不误伤。新增 6 个测试块,client.js 重新生成。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
大佬好,我在看了你的B站演示视频后安装测试了一下,发现对话框中有markdown过滤不到位的现象,遂进行了部分修改,使得markdown元素被成功过滤,对话体验更佳
cleanDialogueText 接入 stripMarkdown,覆盖用户消息/助手回复/流式 partial 与历史面板。斜体/粗体/删除线/代码/标题/引用/列表/分隔线/链接/图片均剥离,未闭合标记保留。
边界保护:数学乘法、词内星号、snake_case 不误伤。新增 6 个测试块,client.js 重新生成。