MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _markdown_link

Function _markdown_link

agents/wiki-agent/export/monthly_report.py:179–185  ·  view source on GitHub ↗
(label: str, target: str)

Source from the content-addressed store, hash-verified

177
178
179def _markdown_link(label: str, target: str) -> str:
180 target = _clean_text(target)
181 if not target:
182 return label
183 if target.startswith(("http://", "https://")):
184 return f"[{label}]({target})"
185 return f"[{label}](<{Path(target).expanduser().as_posix()}>)"
186
187
188def _paper_links(node: Dict[str, Any]) -> str:

Callers 1

_paper_linksFunction · 0.70

Calls 1

_clean_textFunction · 0.70

Tested by

no test coverage detected