Expand description
Markdown link extraction and resolution.
Functions§
- extract_
links - Extract inline and reference-style link targets from
body, in order of appearance. Image links are excluded. Fragments are kept as-is. - resolve_
link - Resolve
target(a link found indoc_path, a repo-relative/-separated path) into a normalized repo-relative path. ReturnsNonefor external URLs, absolute paths, anchor-only targets, or targets that escape the repo. The fragment (if any) is stripped from the result.