Patterns

Compiled regular expressions used across the package for link/scheme/fence/ locale/tracking matching.

Central registry of all compiled regular expressions used across the package.

Matches the (...) destination of an inline Markdown link.

Plain destinations may contain one level of balanced parentheses (e.g. Wikipedia URLs), while <...> destinations may contain spaces. An optional "title" or 'title' is matched but not captured.

markdown_checker.patterns.SCHEME_PATTERN

Matches a URI scheme prefix (e.g. mailto:, tel:, ftp:).

Destinations with a scheme are neither checkable URLs nor local paths.

markdown_checker.patterns.FENCE_OPEN_PATTERN

Matches an opening or closing code fence (three or more backticks or tildes), allowing at most 3 spaces of indentation per CommonMark.

markdown_checker.patterns.LOCALE_PATTERN

Matches a locale segment in a URL path, e.g. /en-us/.

markdown_checker.patterns.TRACKING_PATTERN

Matches the wt.mc_id tracking query parameter in a URL.

markdown_checker.patterns.TRACKING_QUERY_PATTERN

Like TRACKING_PATTERN, but also consumes the rest of the query string.