Validate repository-local Markdown link destinations and section anchors.
More...
|
|
list[Path] | _markdown_files () |
| | Return Markdown files that belong to the source tree.
|
|
str | _strip_optional_title (str destination) |
| | Remove an optional Markdown link title from a destination.
|
|
tuple[Path, str]|None | _local_destination (str destination, Path source_path) |
| | Resolve a repository-local path and decoded fragment, if applicable.
|
|
list[str] | _destinations (str markdown) |
| | Extract inline, image, and reference-style Markdown destinations.
|
|
str | _heading_slug (str heading) |
| | Return a GitHub-style anchor slug for one Markdown heading.
|
|
set[str] | _markdown_anchors (Path path) |
| | Return generated heading anchors and explicit HTML ids for a Markdown file.
|
|
int | main () |
| | Fail when a repository-local Markdown link or anchor is invalid.
|
Validate repository-local Markdown link destinations and section anchors.