Skip to content

feat: 内联引用链接优化#449

Merged
chenyme merged 1 commit intochenyme:mainfrom
Huan-zhaojun:pr/feat/inline-citation-links
Apr 11, 2026
Merged

feat: 内联引用链接优化#449
chenyme merged 1 commit intochenyme:mainfrom
Huan-zhaojun:pr/feat/inline-citation-links

Conversation

@Huan-zhaojun
Copy link
Copy Markdown
Contributor

概要

  • 引用格式从 [N] + 末尾 URL 列表改为 [[N]](url) 内联 Markdown 链接
  • 连续相同引用去重
  • 引用前导换行清理

效果

  • CherryStudio:渲染为可点击的上标引用弹窗 UI
  • 其他客户端:Markdown 链接可点击,展示更友好
  • 非搜索请求不受影响

测试验证

  • 抓包对比上游,引用数量无丢失
  • 连续重复引用正确去重
  • 引用不再独占空行
  • 流式/非流式均正常

  Replace plain-text citation suffix ([N] url) with inline markdown
  links ([[N]](url)) that CherryStudio renders as clickable citation
  popovers. Remove trailing URL appendix since URLs are now embedded.

  Also deduplicate consecutive identical citations and strip stray
  leading newlines from citation tokens.

(cherry picked from commit cd00233)
@chenyme chenyme merged commit ca2d39f into chenyme:main Apr 11, 2026
4 checks passed
@Huan-zhaojun Huan-zhaojun deleted the pr/feat/inline-citation-links branch April 11, 2026 16:34
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

Successfully merging this pull request may close these issues.

2 participants