facelessuser / MarkdownPreview

Markdown preview and build plugin for Sublime Text https://facelessuser.github.io/MarkdownPreview/
Other
405 stars 53 forks source link

Relative image path issue #114

Closed v-ko closed 4 years ago

v-ko commented 4 years ago

Hello, I've added the options:

{
    "image_path_conversion": "relative",
    "file_path_conversion": "relative",
}

to the user config, but the extension outputs incorrect paths like ../home/user/projects/dummy_project/media/picture.png while the markdown file is a README.md in /home/user/projects/dummy_project/, and the picture is defined as ![picture](media/picture.png)

facelessuser commented 4 years ago

Please post full user settings (do not include any github auth tokens or info you view as sensitive).

Just an FYI, it is currently working for me with no issues.

v-ko commented 4 years ago

I'm so sorry to have bothered you. I'd overlooked the URL and missed a folder. It was src/media/picture.png. And I didn't understand how paths like ../absolute/path would have meaning, but the html preview is stored in /tmp, so that makes sense.. Thanks for taking the time to maintain this great extension.

facelessuser commented 4 years ago

No problem, glad you figured it out