Skip to main content

linkify_doc_links

Function linkify_doc_links 

Source
pub fn linkify_doc_links(
    content: &str,
    index: &ProjectIndex,
    doc_scope: &HashMap<String, Vec<String>>,
    project_root: &Path,
    owner_unit: &str,
) -> String
Expand description

#848: rewrite every resolvable intra-doc-link candidate in content (hover Markdown — a ```bynk fenced signature, optionally followed by the declaration’s doc-comment prose) into a Markdown link, resolved against owner_unit’s doc-link scope order (crate::index_queries::resolve_doc_link). The fenced signature block (and any author example fence) is never touched — scan_doc_link_candidates skips fenced regions itself. An unresolved candidate is left exactly as authored — no diagnostic, matching the render-only decision.