extract_markdown_links() — fastapi Function Reference
Architecture documentation for the extract_markdown_links() function in doc_parsing_utils.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 205f2191_d341_ce58_e746_4647bbadf5aa["extract_markdown_links()"] c463d6a9_085f_f272_b9fc_455b7e9b6a57["doc_parsing_utils.py"] 205f2191_d341_ce58_e746_4647bbadf5aa -->|defined in| c463d6a9_085f_f272_b9fc_455b7e9b6a57 63822d7d_03fc_4331_3f93_3026c9c03415["check_translation()"] 63822d7d_03fc_4331_3f93_3026c9c03415 -->|calls| 205f2191_d341_ce58_e746_4647bbadf5aa style 205f2191_d341_ce58_e746_4647bbadf5aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/doc_parsing_utils.py lines 252–276
def extract_markdown_links(lines: list[str]) -> list[MarkdownLinkInfo]:
"""
Extract all markdown links from the given lines.
Return list of MarkdownLinkInfo, where each dict contains:
- `line_no` - line number (1-based)
- `url` - link URL
- `text` - link text
- `title` - link title (if any)
"""
links: list[MarkdownLinkInfo] = []
for line_no, line in enumerate(lines, start=1):
for m in MARKDOWN_LINK_RE.finditer(line):
links.append(
MarkdownLinkInfo(
line_no=line_no,
url=m.group("url"),
text=m.group("text"),
title=m.group("title"),
attributes=m.group("attrs"),
full_match=m.group(0),
)
)
return links
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does extract_markdown_links() do?
extract_markdown_links() is a function in the fastapi codebase, defined in scripts/doc_parsing_utils.py.
Where is extract_markdown_links() defined?
extract_markdown_links() is defined in scripts/doc_parsing_utils.py at line 252.
What calls extract_markdown_links()?
extract_markdown_links() is called by 1 function(s): check_translation.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free