(body: str)
| 262 | |
| 263 | |
| 264 | def absolutize_links(body: str) -> str: |
| 265 | body = _RELATIVE_LINK_RE.sub(lambda m: f"{m.group(1)}{SITE_BASE_URL}{m.group(2)}{m.group(3)}", body) |
| 266 | body = _RELATIVE_IMG_RE.sub(lambda m: f"{m.group(1)}{SITE_BASE_URL}{m.group(2)}{m.group(3)}", body) |
| 267 | return body |
| 268 | |
| 269 | |
| 270 | def insert_blurb(body: str, blurb: str) -> str: |
no test coverage detected