The picker already existed and did the right thing — search by title,
expand an article to pick one section, click to get `[[264|Croup]]` or
`[[264#workup|the workup]]` on the clipboard. It was wired into exactly
one place: the article editor. Everywhere else, linking still meant
opening the library in another tab and reading the id out of the address
bar.
It is on the markdown toolbar now, so every field that has one gets it:
a question's stem, its explanation, and each option's reasoning — seven
buttons on the question editor, which is most of the places a
cross-reference is actually written. The marker lands at the caret
rather than at the end, and still goes to the clipboard, so it works the
same whether you insert it or paste it elsewhere.
The card editor has its own button, because its two faces are plain
textareas with no toolbar. It remembers which face the caret was last
in — a marker belongs where somebody was typing, not always on the back.
Lazily loaded: it carries a search box and a request, and most edits
link nothing.
Verified on the live question editor: search "croup" returns four
articles and clicking one appends the marker to the stem.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TqXevQJhxFrM7jJg82cgZN