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

Function isPathLikeWikilinkTarget

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

Source from the content-addressed store, hash-verified

57}
58
59export function isPathLikeWikilinkTarget(target: string): boolean {
60 const trimmed = target.trim()
61 return trimmed.startsWith('/') || trimmed.includes('/') || /\.md$/i.test(trimmed)
62}
63
64/**
65 * Strip a `#heading` / `^block` anchor off a wikilink target — it points within

Callers 1

resolveWikilinkTargetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected