-
Notifications
You must be signed in to change notification settings - Fork 30.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
Support relative paths for images in markdown/rich output cells (of untitled notebooks) #99139
Comments
This is also tricky with single workspace as the relative path might be broken once you save it to disk. |
Doesn't work in the normal markdown preview either. I dunno if it's worth it really. You might have images that work in an untitled file, then go and save the file to some subfolder and then the images don't work anymore. |
Agreed. When using the WebView panel, we just change the base href in html document to point to the local workspace and that's how relative images work for markdown/html.
I'm trying to understand how we make this possible with the new VS Code API. |
This seems to work now |
Steps to Reproduce:
However in a multi-root workspace, things might be a little bit more complicated.
Not sure how VSC handles this today, e.g. with auto completion for relative imports in untitled js/ts files.
I'd also this to work with HTML output of cells (can create a separate issue, assumed they are similar)
Does this issue occur when all extensions are disabled?: Yes
@rebornix /cc
The text was updated successfully, but these errors were encountered: