timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 75 forks source link

Link to local file not working #119

Open SatokiOgiso opened 7 years ago

SatokiOgiso commented 7 years ago

I have tried to put a link to a local file, but it does not work that it says no file on the previewer server.

Folder structure: ~/workspace/linkToFile L linkToFile.mdown L file.png

The content of linkToFile.mdown is following:

[linktofile](./file.png)

When I click that link, it gives me following error:

Error: 404 Not Found Sorry, the requested URL 'http://127.0.0.1:51004/view/file.png' caused an error: Not found: '/view/file.png'

Environment: macOS OSX 10.11.6 Sublime Text 3 Build 3126 OmniMarkupPreviewer v3.0.0

This may be caused as the previewer server cannot see the linked file. Hope to have considered to make able to handle local file link.

Kotsuha commented 6 years ago

I encountered this problem too. But my original image file names are in Chinese characters. After renamed to English it's okay.

b1uuue commented 6 years ago

I encountered this problem too. Have you sovel the problem?