-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
relative image links turn to absolute links #2652
Comments
the same here. Once I paste the image, which is placed correctly in the relative path, I have to manually edit the route to make it relative. |
kiyoka
added a commit
to kiyoka/marktext
that referenced
this issue
Nov 23, 2021
Fixed a problem with image links being absolute paths. Fix for issue 2652. marktext#2652
kiyoka
added a commit
to kiyoka/marktext
that referenced
this issue
Dec 6, 2021
marktext#2652 Fixed the call position of ensureDirSync().
Closed
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I specified a relative path to images, like '../_resources', in the configuration dialog, and the pasted images indeed are stored there (sometimes...). But however, within the .md-file the links are stored as absolute paths in windows notation. This prevents the document from being copied elsewhere even together with it's _resource folder - the absolute paths will not work in arbitrary locations. The imagepaths should alway be codes relative to the document path I think. Additionally the term relative should not be mean relative to the current dir (whatever this is) or something else, but relative to the current document (if one is opened), or else it makes no sense! See some screenshots below.
Steps to reproduce
Expected behavior:
Actual behavior:
Link to an example: [optional]
Some Screenshots:
Document isn't saved yet, so default for storing attached files take place:
This settings are active:
Now saving the document and paste another image in:
If the document is saved somewhere, then the result is right but in absolute format:
Versions
The text was updated successfully, but these errors were encountered: