| buildBacklinksSnapshot |
Records a set of backlinks into a snapshot that editBacklinksSnapshot can rewrite later. Call it once per target and pass BuildBacklinksSnapshotParams.target to accumulate several targets into one snapshot, so that a note linking to several of them is still rewritten exactly once. |
| convertLink |
Converts a link to a new path. |
| editBacklinks |
Edits the backlinks for a file or path. |
| editBacklinksSnapshot |
Edits a captured snapshot of backlinks, rewriting each backlink-holding note exactly once. The counterpart of editBacklinks for callers that cannot fetch the backlinks at rewrite time — because the rename that invalidated them has already happened — or that rewrite links to several targets at once. See BacklinksSnapshot for both cases. |
| editLinks |
Edits the links for a file or path. |
| editLinksInContent |
Edits the links in a content string. |
| extractLinkFile |
Extracts the file associated with a link. |
| generateMarkdownLink |
Generates a markdown link based on the provided parameters. |
| generateRawMarkdownLink |
Generates a raw markdown link based on the provided params. |
| getGenerateMarkdownLinkDefaultParamsFns |
Returns the shared, mutable list of functions that provide default params for generateMarkdownLink. Each function is invoked on every generateMarkdownLink call and its result is merged into the params (later registrations take precedence over the built-in defaults, but never over explicitly passed params). Register entries by adding a GenerateMarkdownLinkDefaultParamsComponent to a component tree rather than mutating this list directly. |
| hasAngleBrackets |
Tests whether a link uses angle brackets, possibly embed: [title](<link>), . |
| hasEmbedSyntax |
Tests whether a link is an embed link: ![[link]], . |
| hasLeadingDot |
Tests whether a link has a leading dot, possibly embed: [[./link]], [title](./link), [title](<./link>), ![[./link]], , . |
| hasLeadingSlash |
Tests whether a link has a leading slash, possibly embed: [[/link]], [title](/link), [title](</link>), ![[/link]], , . |
| hasWikilinkSyntax |
Tests whether a link is a wikilink, possibly embed: [[link]], ![[link]]. |
| shouldResetAlias |
Determines if the alias of a link should be reset. |
| splitSubpath |
Splits a link into its link path and subpath. |
| updateFileUrlLinksInContent |
Normalizes the file:// links in a content string to a pretty form, converting backslashes to forward slashes. Other links are left unchanged. |
| updateFileUrlLinksInFile |
Normalizes the file:// links in a file to a pretty form, converting backslashes to forward slashes. Other links are left unchanged. |
| updateLink |
Updates a link based on the provided parameters. |
| updateLinksInContent |
Updates the links in a content string based on the provided parameters. |
| updateLinksInFile |
Updates the links in a file based on the provided parameters. |