Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

relative image paths do not get updated on export #49

Closed
brunnre8 opened this issue Mar 26, 2016 · 2 comments
Closed

relative image paths do not get updated on export #49

brunnre8 opened this issue Mar 26, 2016 · 2 comments

Comments

@brunnre8
Copy link

When using the Insert-->Image-->Copy all images in a local folder function it copies all the pictures into ./$FILENAME_files/$PICTURE

However it does so relative, meaning that if one exports the html via Export as HTML to a location other than the storage directory of the markdown file the images aren't found and therefore appear as a broken link.

I see 2 options that should fix the issue:

  • Set the path to an absolute one
  • copy the files over to the new location.
@brrd
Copy link
Owner

brrd commented Mar 26, 2016

I see 2 options that should fix the issue

A third option would be to encode images as base 64.

Set the path to an absolute one

Yes, but it's not really "portable".

I think the best solution is to copy relative images to some target.html_files/images directory. Actually, this is what was mainly planned (until I forgot about it 😅).

@brunnre8
Copy link
Author

A third option would be to encode images as base 64.

Binary blobs seem just a bit hacky to me 😉

Thank you very much for taking care of it, awesome program by the way.

@brrd brrd closed this as completed in 2540902 Feb 8, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants