Relative link issue after opening a local file
There are two markdown files on my local computer(Windows7):
- C:\dir1\test1.md
- C:\dir1\dir2\test2.md
I want a relative link in test1.md to test2.md after opening test1.md, like this:
[TEST2](dir2/test2.md)
And I also want another link in test2.md back to test1.md after following the link above, like this:
[TEST1](../test1.md)
Those links do not seem to be working in the current version.
I noticed these links below were OK, but they are incompatible with server file format.
[TEST2](dir2\test2.md)
[TEST1](test1.md)
I had the same problem.
I found that the solution can be to remove the code to "sanitize" links here: https://github.com/Thiht/markdown-viewer/blob/master/chrome/content/markdown-viewer.js at line 149, 150, 151
// Sanitize: Only allow links in the same folder.
var match = linkInTheSameFolderWithHash.exec(originalHref);
if (match) {
This should be removed or it could be put under condition that the user can set in the PlugIn Option
This sounds like the problem I'm seeing too.
I have the same problem. Is this Add On maintained anymore?