Imported Markdown's relative links don't work
Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)
- [ ] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
- [ ] Lookup. Dendron's Lookup Command
- [ ] Views. Dendron Preview, Tree View, Side Panels in the UI
- [ ] Schema. Dendron Schemas
- [X] Pod. Data import from / export to Dendron
- [ ] Publish. External Site Publish
- [ ] Markdown. Markdown features, such as syntax support and features
Describe the bug
When importing markdown that contain relative links to other notes from Joplin, these don't work in Dendron.
To Reproduce
Create a notebook in Joplin with two notes, and copy the link in one of them by right-click and "Copy markdown link", paste into the other one, right-click on the notebook and export as Markdown+front matter.
Then import into Dendron (via Pod), it converts the "Second note" into a relative link:
[Second note](../Test/Second%20note.md)
Not only is this not a Dendron link (like [[name.of.the.note]])
But also clicking on the link doesn't open the note saying it's unable to read the file.
Expected behavior
The imported markdown should convert the note links to Dendron's (markdown's name to [[name]]), to be able to go to a note by clicking on it.
Desktop (please complete the following information)
- OS: Windows 10
- Version: 0.78.0
Additional context
The problem here isn't that Dendron is not being able to figure out the note, since it does convert the link (which has the hash of the note), to a relative one (with its title), but more so on converting it to the proper format.
Thank you for the issue.
pinging @Harshita-mindfire @jonathanyeung for: pod improvements.
also related: https://github.com/dendronhq/dendron/issues/2228
For anyone who directed to this issue, I wrote a small script to help convert the markdown link to the dendron link in the target directory.
HenryC-3/markdown-link-to-wikilink
Make sure to backup your files before conversion.