referenceToFileChange
Converts a reference to a file change.
Import:
import { referenceToFileChange } from '@mnaoumov/obsidian-lib/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.