MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / generateLinkWithDisplay

Function generateLinkWithDisplay

src/utils/linkUtils.ts:262–270  ·  view source on GitHub ↗
(
	app: App,
	targetFile: TFile,
	sourcePath: string,
	displayName: string,
	useMarkdownLinks?: boolean
)

Source from the content-addressed store, hash-verified

260 * @returns A link with custom display name as alias
261 */
262export function generateLinkWithDisplay(
263 app: App,
264 targetFile: TFile,
265 sourcePath: string,
266 displayName: string,
267 useMarkdownLinks?: boolean
268): string {
269 return generateLink(app, targetFile, sourcePath, "", displayName, useMarkdownLinks);
270}

Callers 3

renderSubtaskFallbackFunction · 0.90
linkUtils.test.tsFile · 0.90

Calls 1

generateLinkFunction · 0.85

Tested by

no test coverage detected