Skip to content

makeLinkWithPath

Generates a string representation of a Link object that includes both the link text and the file path.

Import:

import { makeLinkWithPath } from 'obsidian-dev-utils/obsidian/dataview-link';

Signature:

function makeLinkWithPath(link: Link): string

Parameters:

ParameterTypeDescription
linkLinkThe Link object to be converted to a string with its path.

Returns: string — A string representing the link in the format: “linkText (linkPath)”.