Skip to content

updateFileUrlLinksInContent

Normalizes the file:// links in a content string to a pretty form, converting backslashes to forward slashes. Other links are left unchanged.

Import:

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

Signature:

function updateFileUrlLinksInContent(params: UpdateFileUrlLinksInContentParams): Promise<string>

Parameters:

ParameterTypeDescription
paramsUpdateFileUrlLinksInContentParamsThe parameters for normalizing the links.

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


Links to this page: