"""Small Markdown link parser used by the documentation-governance audit.""" from __future__ import annotations import re from urllib.parse import unquote INLINE_LINK_START_RE = re.compile(r"\[[^\]\n]*\]\(") REFERENCE_DEFINITION_RE = re.compile( r"""(?mx) ^\ {0,3}\[(?P