Relative Links to Files with Export

k.wilczek's Avatar


14 Aug, 2014 09:37 AM

Hi Brett,

first of all, great app!

I need to write a documents that links to other PDF documents that reside within the same folder.
So within my document I will write the following Syntax

[This is the PDF I am referring to](./the_other_pdf_document.pdf)

Everything works fine when I preview it in Marked. I get in to trouble when I export my Document into a pdf.
The PDF Export will resolve the relative links to fixed one like this


Is there a way to retain the relative links?


  1. Support Staff 1 Posted by Brett on 14 Aug, 2014 12:39 PM

    Brett's Avatar

    I'm afraid this comes down to the same bug that keeps intra-document
    links from working. WebKit's PDF export breaks all file links by making
    them absolute, and relative links always end up pointing to the wrong

    There are alternative (and much less convenient) means of generating a
    PDF, if you need this functionality. You might look into wkhtml2pdf, a
    command line tool that allows you to export HTML from Marked and then
    convert it to a PDF with links intact. Let me know if you need any
    assistance getting that working.

    Hopefully this bug will be fixed soon. It's already fixed in the open
    source WebKit thread, but not in the version that Apple provides.


  2. k.wilczek closed this discussion on 14 Aug, 2014 02:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac