def extract_urls()

in scripts/python/url-checker/url-checker.py [0:0]


def extract_urls(md_file):
    """Extract all URLs from a markdown file using regex."""
    urls = []
    with open(md_file, 'r', encoding='utf-8') as f:
        for line in f:
            matches = MD_URL_REGEX.findall(line)
            # Strip quotes from URLs
            cleaned_matches = [match.strip('"\'') for match in matches]
            urls.extend(cleaned_matches)
    return urls