pub fn resolve_reference(
reference: &str,
graph: &ContentGraph,
from_path: &str,
) -> ResolvedRefExpand description
Resolve a reference string against the content graph.
This is a thin wrapper over ContentGraph::resolve_path that returns
a typed ResolvedRef instead of Option<String>.
ยงArguments
referenceโ the link target (e.g."hello","posts/hello.md")graphโ the content graph to searchfrom_pathโ the file containing the link (for disambiguation)