mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-06 16:01:07 +00:00
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 cd002330682fa5f203c6bb072f50fd30a3f17cfe)