orbikm / mkdocs-ezlinks-plugin

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

Image wikilink doesn't work when image extension included in link text #47

Open peddamat opened 1 year ago

peddamat commented 1 year ago

The provided example works:

![[Puppy]]

However, if I use a link like this, which Obsidian.md creates, the generated link is broken:

![[Puppy.png]]

I'm not sure if this is intentional or not.

gluc commented 3 months ago

I can confirm that this is the case. It seems that the . is being replaced:

image

This is a problem in combination with Obsidian, as Obsidian does not recognize the Wikilinks notation without the file extension:

image

Also not sure who is right, but being able to use wikilinks created by Obsidian (i.e. with extensions) would help us tremendously.

gluc commented 3 months ago

This fork fixes it: https://github.com/gluc/mkdocs-ezlinks-plugin

You can use it like so: add mkdocs-ezlinks-plugin @ git+https://github.com/gluc/mkdocs-ezlinks-plugin to your requirements.txt.

An alternative seems to be https://github.com/Lisandra-dev/mkdocs-ezlinked-plugin . Though I haven't tested it.