MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / isSameFileHeadingLink

Function isSameFileHeadingLink

packages/app-core/src/lib/wikilinks.ts:94–96  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

92 * note by name (which would fail for an empty name). (#291)
93 */
94export function isSameFileHeadingLink(target: string): boolean {
95 return stripWikilinkAnchor(target).trim() === '' && wikilinkHeadingAnchor(target) != null
96}
97
98function resolveExplicitPath(notes: NoteRef[], target: string): NoteRef | null {
99 const normalized = normalizeSlashes(target.trim())

Callers 4

Preview.tsxFile · 0.90
openWikilinkFunction · 0.90
wikilinks.test.tsFile · 0.90

Calls 2

stripWikilinkAnchorFunction · 0.85
wikilinkHeadingAnchorFunction · 0.85

Tested by

no test coverage detected