Link Reference Definitions
Link reference definitions make your notes compatible with standard Markdown processors by converting wikilinks to standard Markdown references.
Foam doesn’t need references in order to work, but this feature is aimed at supporting other tools you might want to integrate with.
What Are Link Reference Definitions?
Section titled “What Are Link Reference Definitions?”Foam can automatically add reference definitions to the bottom of your notes:
Your note:
# Machine Learning
Related to [[Data Science]] and [[Statistics]].With reference definitions:
# Machine Learning
Related to [[Data Science]] and [[Statistics]].
[Data Science]: data-science.md 'Data Science'[Statistics]: statistics.md 'Statistics'Enabling Reference Definitions
Section titled “Enabling Reference Definitions”Configure in your settings:
{ "foam.edit.linkReferenceDefinitions": "withExtensions"}Options:
"off"- Disabled (default)"withoutExtensions"- References without extension"withExtensions"- References with extension
If you are using your notes only within Foam, you can keep definitions off (also to reduce clutter), otherwise pick your setting based on what is required by your use case.
How It Works
Section titled “How It Works”- Scans your note for wikilinks
- Generates reference definitions when you save
- Updates definitions when links change
- Maintains the auto-generated section
Benefits
Section titled “Benefits”- Standard Markdown compatibility - Works with any Markdown processor
- Publishing platforms - Compatible with GitHub Pages, Jekyll, etc.
- Future-proofing - Not locked into Foam-specific format
- Team collaboration - Others can read notes without Foam
Published with Foam