From 5236cf6fa3539c5eb0b2692b08a7a2950cacbda3 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 11:58:18 +0800 Subject: [PATCH] feat(parse): classify mq:// knowledge-anchor links as inert narrative references --- src/parse/prose.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parse/prose.rs b/src/parse/prose.rs index 4e82f0c..763b88e 100755 --- a/src/parse/prose.rs +++ b/src/parse/prose.rs @@ -57,6 +57,11 @@ pub struct NarrativeLink { /// Classify a link target without parsing it as an expression. pub fn classify_narrative_target(target: &str) -> NarrativeLinkKind { let t = target.trim(); + // Compiler-owned mq:// anchor addresses are inert knowledge references, + // never external URLs or auto-executable code. + if t.starts_with("mq://") && t.contains("#anchor-") { + return NarrativeLinkKind::Narrate; + } if t.starts_with("http://") || t.starts_with("https://") || t.starts_with("mailto:")