orbikm / mkdocs-ezlinks-plugin

Plugin for mkdocs which enables easier linking between pages
MIT License
34 stars 17 forks source link

Links between deeply nested subfolders fails (bis) #54

Open Karreg opened 6 months ago

Karreg commented 6 months ago

Hello,

I'm new to ezlinks, as I'm trying to work on both obsidian, and mkdocs publication of the obsidian vault.

It looks like the bug #35 has not been fixed, as I still have the issue.

Here is the structure used:

content/
├─ blog/
│  ├─ posts/
│  │  ├─ post.md
├─ campaign/
│  ├─ characters/
│  │  ├─ john.md

in the post.md file, I use this code:

...
This is [[John]]
...

the john.md contains:

# John

Hey I'm John!

When generating the site, the created link go up to the root, but does not go down to the john directory:

INFO    -  Doc file 'blog/posts/post.md' contains an unrecognized relative link '../../john', it was left as is.

It looks like the #35 was not fixed, as per the last comment from @Lisandra-dev ?

It's happening in linux by the way. Not sure it's of any help.

Mara-Li commented 6 months ago

Could you try to use my fork? It's the same name but with ezlinked. (Sorry, can't provide the link right now)

Karreg commented 6 months ago

Your fork fixed the issue. Thanks a lot! I was digging through ezlinks, it looks like the issue might be on handling spaces in filenames. However, I'll stick to your fork. Thanks again! I can now publish my ongoing campaign, I see we have the same use case here...

I'll leave this issue open, just in case.