markdown-mode icon indicating copy to clipboard operation
markdown-mode copied to clipboard

Relative paths won't work on preview

Open fuzunspm opened this issue 3 years ago • 3 comments

Expected Behavior

Ability to preview images with relative sub paths. My images are in a sub folder. I want to use them without absolute path because of multi-synced environments.

Actual Behavior

Images won't be displayed or opened on preview window

Software Versions

  • Markdown Mode: 2.5-dev
  • Emacs: 27.1
  • OS: Arch Linux

Example Path

Preview

fuzunspm avatar Apr 21 '21 15:04 fuzunspm

I cannot reproduce this issue. Could you tell us how to reproduce this issue in detail ?

I tried following steps

  • put image under foo/a.png
  • Open following markdown file
  • M-x markdown-toggle-inline-images
  • Then image shows.
![](foo/a.png)

relative_image

syohex avatar Apr 21 '21 16:04 syohex

actually inline images and export working, preview is not working, screenshot above was taken from firefox preview window

fuzunspm avatar Apr 21 '21 17:04 fuzunspm

markdown-mode does nothing about converting html. It is external command(markdown-command) responsibility

syohex avatar Apr 22 '21 02:04 syohex