-
Notifications
You must be signed in to change notification settings - Fork 747
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Succinct Description:
When I save a file, with or without changes, Foam either removes existing markdown links for that notes wikilinks, or it generates them if they aren't there.
Exact Observed Behavior
Consider a simple markdown file with the following:
## Title
[[root.AnotherNote.md]]
Now I save the file. I see
## Title
[[root.AnotherNote.md]]
[//begin]: # "Autogenerated link references for markdown compatibility"
[root.AnotherNote.md] root.AnotherNote "Another Note"
[//end]: # "Autogenerated link references"However, if I save again, I see (notice additional newlines at bottom):
## Title
[[root.AnotherNote.md]]
Additional Notes
- there is a clickable message saying "Wikilink definitions (out of date)" which, when clicked, deletes the markdown links.
Foam: Run Janitor (experimental)also does the exact thing (add or remove markdown links) to all files in the directory.
Settings
My only explicit foam setting is:
{
...
"foam.edit.linkReferenceDefinitions": "withoutExtensions",
}Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
- Fresh install of foam version 0.25.8 (note: I have other markdown extensions, I am not sure if they are the problem).
- Change foam setting "foam.edit.linkReferenceDefinitions": "withoutExtensions"
- Create two notes. Wikilink one from the other.
- CNTL+SHIFT+P File: Save
- Observe changes to file
- Repeate Steps 4/5
Expected behavior
I didn't expect the links to be deleted by saving or Foam: Run Janitor. I also don't expect the little description "Wikilinks out of date" to be there.
Screenshots or Videos
Operating System Version
macOS
Visual Studio Code Version
Version: 1.86.1 (Universal) Commit: 31c37ee8f63491495ac49e43b8544550
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working