mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-18 12:07:01 +08:00
feat: 收敛 AI Search 检索边界与问答体验
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { markdownToPlainText } from '../../src/renderer/src/components/search/searchMarkdown'
|
||||
|
||||
describe('AI Search Markdown clipboard text', () => {
|
||||
it('removes presentation markup while retaining structure and evidence references', () => {
|
||||
expect(
|
||||
markdownToPlainText(
|
||||
'## 摘要\n\n**结论**:查看 `训练安排` [E1]\n\n- *训练时间*:中午\n- [详情](https://example.test)'
|
||||
)
|
||||
).toBe('摘要\n\n结论:查看 训练安排 [E1]\n\n• 训练时间:中午\n• 详情 (https://example.test)')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user