iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.67k stars 277 forks source link

image not preview #673

Closed hyawara closed 2 months ago

hyawara commented 4 months ago

windows env

My image path uses an absolute path, which can be displayed normally on obsidian. but markdown-preview.nvim not.

image

RaidOpe commented 3 months ago

You can try '/' to guide the path (Windows ❤️ Linux). In my case, using relative path can fix that

hyawara commented 3 months ago

You can try '/' to guide the path (Windows ❤️ Linux). In my case, using relative path can fix that relative path is ok.

and I was wondering why the absolute path is not work

RaidOpe commented 3 months ago

You can try '/' to guide the path (Windows ❤️ Linux). In my case, using relative path can fix that relative path is ok.

and I was wondering why the absolute path is not work

A little look at the source code shows that the original author prefers to use MD notes with relative paths.

This is reason why it works with relative path

I find there is a Contributor PR the root path

But now that the original author has abandoned the project and hopes that there will be enthusiasts to update the project in the future, this is a good plugin