Skip to content

updateFileUrlLinksInFile

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

Import:

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

Signature:

function updateFileUrlLinksInFile(params: UpdateFileUrlLinksInFileParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsUpdateFileUrlLinksInFileParamsThe parameters for normalizing the links.

Returns: Promise<void> — A Promise that resolves when the links are normalized.


Links to this page: