Relative local file link
See original GitHub issueDescription
- Can you reproduce the issue?
Steps to reproduce
- create markdown link to relative file e.g.: My File
- export as a PDF
Expected behavior:
In the PDF, the text link should link to my_file.pdf next to the markdown file location.
Actual behavior:
In the PDF, the text link links to: file:///D:/soft/marktext/marktext/resources/app.sar/dist/electron/my_file.pdf
Versions
- Mark Text: v0.15.1 and v0.16.0
- Operating system: Windows 10
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Help with relative path link to local file - html - Stack Overflow
I tried the code below and a number of similar permutations, but I can't seem to successfully write the relative path link for...
Read more >HTML File Paths - W3Schools
When using relative file paths, your web pages will not be bound to your current base URL. All links will work on your...
Read more >File Paths - HTML - Codecademy
Relative file path are paths that links to a local file in the same folder or on the same server, for example: ......
Read more >How to create absolute hyperlinks and relative hyperlinks in ...
A relative hyperlink is a hyperlink that contains an address that is relative to the address of the destination file. The address of...
Read more >file:// to point a relative file to current directory - Super User
A relative link usually doesn't include the protocol (like http: or https: or file: ). When the protocol is omitted, a web browser...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Jocs I would categorized the issue as bug?!
Yes, converting a relative path to an absolute makes sense, but I checked that the
html
data while export pdf. I found the url is relative path, but it will automatically become the absolute path after exporting pdf.I did the following experiment:
test.html
file, and edit ittest.txt
file in the same directory, and edit ittest.html
withChrome
and clickgo to test.txt
will will jump totest.txt
test.html
as pdf inChrome
usingPrint
, then you can found the relative path will automatically become the absolute path.So, I think the reason is
Chrome Printer
.