fix: raise citation markers and stop adjacent ones merging #22

Merged
adrianbonpin merged 1 commits from feat/superscript-citations into prod 2026-10-07 08:20:03 +00:00
1 Commits
Author SHA1 Message Date
adrianbonpin eff0d4ea05 fix: raise citation markers and stop adjacent ones merging
The prompt asks for [1][2] when a sentence rests on two sources, and raised
digits carry no separator of their own, so the pair was drawn as 12: one
number, with nothing to say where the first citation stopped and the second
began. Reported from a real answer, where two sources came out as one glom.

Markers are now matched as a run, so [1][2] and [1, 2] both arrive as raised
digits separated by a comma, and a run containing a number we were never shown
is left exactly as written. A newline still ends a run, so two lines of
citations never become one sentence.

The marker itself is raised too: [1] is drawn as a superscript link, which is
what a citation mark is, while the entry under the answer keeps the plain
number at baseline where a list is easier to scan.
2026-10-07 16:19:42 +08:00