The ONE home of citation-marker ([n]) logic (CONTEXT.md: Citation).
Scanning, stripping (copy, history), and wikilink conversion (saved
answers) all live here; no other module may parse [n].
Pure resolution of a retrieved chunk’s location within its source note’s
full text, for the Ask workspace’s Source reader (CONTEXT.md: Ask
workspace, SourcesPanel). Three-step resolution, most confident
first: an exact substring match of the retrieved chunk text (first
occurrence wins on a duplicate); the ContentChunk core’s own chunker
computes for the note (matched by innermost heading), located by
substring; and, only when that chunk’s text can’t be found verbatim in
the note (e.g. it was normalized server-side), core’s
note::scan::heading_section_range — content analysis over raw note
text belongs in core, not the TUI.
Turning an ask Turn into a saved vault note
(CONTEXT.md: Saved answer). The question becomes the note title, its
citation markers become wikilinks so the note joins the vault link graph.