Skip to main content

link_edge

Function link_edge 

Source
pub fn link_edge(source: &str, raw: &str) -> Option<Edge>
Expand description

Turn a raw link string discovered by a text builder into an edge from source to its resolved target.

Returns None for links with no file target (empty or anchor-only). A fragment (#heading) is stripped from the target — which is the node identity — and preserved as the edge’s link metadata. Non-URI targets are resolved relative to source; URIs pass through unchanged.