referenceToFileChange
Converts a reference to a file change.
Import:
import { referenceToFileChange } from 'obsidian-dev-utils/obsidian/reference';Signature:
function referenceToFileChange(reference: Reference, newContent: string): FileChangeParameters:
| Parameter | Type | Description |
|---|---|---|
reference | Reference | The reference to convert. |
newContent | string | The new content for the reference. |
Returns: FileChange — The file change.