Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@halkn
Copy link
Contributor

@halkn halkn commented Mar 20, 2020

Overview

Thanks for a useful plugin.
This PR fix the path to image in markdown when let g:previm_wsl_mode = 1.

Before

WSL was treated as Unix, and the following path was generated.
![alt](file://localhost/home/halkn/Pictures/img.png "title")
But in WSL, paths like above cannot be opened from Windows browser.

After

Use wslpath to convert to a path that can be referenced from Windows browser.
![alt](\\wsl$\Ubuntu\home\halkn\Pictures\img.png "title")

@mattn mattn merged commit 0e020c1 into previm:master Jun 13, 2022
@mattn
Copy link
Member

mattn commented Jun 13, 2022

Thank you

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

Successfully merging this pull request may close these issues.

2 participants