Relative linked images

philip's Avatar

philip

03 May, 2014 04:46 PM

Relative linked images seems very flaky. If I have images in a folder next to the md document and just type ![](imgs/an-image.png) the preview shows a broken image. But if I then drag that image into the document anywhere, and then delete the resulting file path text the previous relative link works.

  1. Support Staff 1 Posted by Fletcher on 03 May, 2014 06:17 PM

    Fletcher's Avatar

    I assume you're using the App Store version, not the non-sandboxed version.

    Apple sandboxes applications, meaning that Composer can't access files it wasn't given permission to access. You have to give Composer access to that image, which happens in 1 of 2 ways:

    1) You open the image with Composer (which you do when you drag and drop)

    2) Composer has to ask you for permission -- which it does when you open a file *if* there are any images/css/etc to ask about.

    If you type an image URL, then it wasn't there when the document was opened. So there was nothing to ask about at the time. So it doesn't have permission

    You have three options:

    1) Drag and drop images all the time, then it's a non-issue

    2) After typing URLs for local images, close and reopen the file and composer will rescan and ask for permission if necessary.

    3) Download the non-sandboxed version from the web site and permission is a non-issue (this disables iCloud access, however)

    (BTW --- Composer gets permission based on folders, not files. So once it gets permission for a "big" folder, e.g. your home directory, it doesn't have to ask again for anything inside that folder. It's up to you whether giving Composer broad access is better than the annoyance of sandboxing.)

    Fletcher

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  2. 2 Posted by Javier Rodrígue... on 15 Jul, 2014 01:06 PM

    Javier Rodríguez's Avatar

    I don't know if this is related with the same problem, but when export a document as ePub, the resulting file loses all the images. This is a BIG issue for me. Probably I'm doing something wrong… but I can find how to solve this.

    As you can see in the screenshots, MMD correctly shows the image in the preview… but when exported as ePUB and loaded within iBooks… the document loses the reference to the included image.

    Any advice? (I'm using the MAS version and gave permission to access the folder containing the images).

    Thank you,

    Javier

  3. Support Staff 3 Posted by Fletcher on 17 Jul, 2014 01:12 AM

    Fletcher's Avatar

    Try moving the images into the same folder as the MMD document itself, rather than a subdirectory.

    FTP

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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