Skip to content
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

Image Relative Path #2764

Closed
iWuYc opened this issue Dec 14, 2021 · 2 comments
Closed

Image Relative Path #2764

iWuYc opened this issue Dec 14, 2021 · 2 comments

Comments

@iWuYc
Copy link

iWuYc commented Dec 14, 2021

Describe your feature request

Dear developer for marktext:
I paste an image to markdown document,the marktext using absolute path on "![] (c:/../task/assert/image.png)".when I move the task directory to another drive letter,example "d:",the markdown document absolute path change to "d:/../task/task.md",but the image can't show ,because it using absolute path also.
Can we try using relative path when paste image,like typora(example:"![image](./assert/image.png)"),or support choose option using relative path or not.
Thank you for your contribution!!

@YalandHong
Copy link

Dup of #2560 and #2652

@fxha
Copy link
Contributor

fxha commented Dec 22, 2021

@iWuYc You can select this behavior under via Settings -> Image. Select "Move to designated local folder" and activate "Prefer relative assets folder".

@fxha fxha closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants