github-preview.nvim icon indicating copy to clipboard operation
github-preview.nvim copied to clipboard

Resolve relative path

Open fanghanonline opened this issue 1 year ago • 0 comments

I use the plugin with Lazyvim. Configured as instructed in the readme.

  • I use Chrome browser
  • No problem rendering the rest of my Markdown document.
  • Image with local path "../img/xxx.png" is not rendered.
  • After changing the path to an path relative to "root", not the root of the my Ubuntu. The image got rendered.
  • Pushed to GitHub and it resolves the "../img/xxx.png" but not the "relative to root" path

Possible solution:

  1. follow the GitHub style, resolve the ".." from where the Markdown file is

fanghanonline avatar Aug 19 '24 17:08 fanghanonline