Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for strip_markdown_links (0.9 seconds)

  1. scripts/docs.py

    code_block3_pattern = re.compile(r"^\s*```")
    code_block4_pattern = re.compile(r"^\s*````")
    
    
    # Pattern to match markdown links: [text](url) → text
    md_link_pattern = re.compile(r"\[([^\]]+)\]\([^)]+\)")
    
    
    def strip_markdown_links(text: str) -> str:
        """Replace markdown links with just their visible text."""
        return md_link_pattern.sub(r"\1", text)
    
    
    class VisibleTextExtractor(HTMLParser):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
Back to Top