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 '@mnaoumov/obsidian-lib/link';

Signature:

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

Parameters:

Parameter Type Description
params UpdateFileUrlLinksInContentParams The parameters for normalizing the links.

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


Links to this page: