MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _note_wikilink

Function _note_wikilink

scripts/citation_links.py:287–291  ·  view source on GitHub ↗
(target: str, display_text: str)

Source from the content-addressed store, hash-verified

285
286
287def _note_wikilink(target: str, display_text: str) -> str:
288 display = normalize_whitespace(display_text)
289 if display:
290 return f"[[{target}|{display}]]"
291 return f"[[{target}]]"
292
293
294def build_vault_note_index(config: dict[str, Any]) -> dict[str, Any]:

Callers 1

resolve_reference_linksFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.90

Tested by

no test coverage detected