Skip to content

updateLinksInContent

Updates the links in a content string based on the provided parameters.

Import:

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

Signature:

function updateLinksInContent(params: UpdateLinksInContentParams): Promise<string>

Parameters:

ParameterTypeDescription
paramsUpdateLinksInContentParamsThe parameters for updating the links.

Returns: Promise<string> — A Promise that resolves to the content with updated links.