Skip to content

referenceToFileChange

Converts a reference to a file change.

Import:

import { referenceToFileChange } from 'obsidian-dev-utils/obsidian/reference';

Signature:

function referenceToFileChange(reference: Reference, newContent: string): FileChange

Parameters:

ParameterTypeDescription
referenceReferenceThe reference to convert.
newContentstringThe new content for the reference.

Returns: FileChange — The file change.