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

[BUG] image urls get rewritten to local path when exporting to markdown or html #2015

Open
Rahabib opened this issue Jun 22, 2024 · 0 comments
Assignees
Labels

Comments

@Rahabib
Copy link

Rahabib commented Jun 22, 2024

Describe the bug
A clear and concise description of what the bug is.

image urls get rewritten to local path when exporting to markdown or html

I need to use a path outside of my current directory, and I need to compile a markdown and html version as I am using the @import and generating a table of contents wont work unless I "compile" / export as a single markdown and then insert the TOC. I want to use a root url such as /images/ or ../images/ instead of images/

Environment

  • OS: Windows 11
  • VSCode: 1.82.0
  • Markdown Preview Enhanced: 0.8.0

To Reproduce
Steps to reproduce the behavior:

  1. Add a markdown image: or
  2. export the doc as markdown
  3. The image URL in the exported .md file has for either case listed above

Expected behavior
Especially if the absolute_image_path: false is set, it should retain the original image path

Markdown file
not required

Screenshots
original
exported

Additional context
perhaps there is a flag I missed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants