Trouble with images

loukas's Avatar


14 Sep, 2017 08:53 AM

I've seen that I can't paste the pathname of images (because MMDC doesn't recognise it and shows as picture attached - a frame from Marked), but if I drag and drop images, everything works fine.
Is it a programmer's choice or a bug?
Second, I prefer write absolute pathname (not only relative pathname), so if I will change it, I'm sure, but when I drag and drop it automatically inserts the relative one. Is there a preference for this (I've not found)?

  1. Support Staff 1 Posted by Fletcher on 14 Sep, 2017 01:12 PM

    Fletcher's Avatar

    I don't understand what you're trying to do, or what role Composer could
    have had since it doesn't create the sort of mistakes you show.

    1. Your images, as you have them, are defined by reference:


    I don't know whether you defined them later in the document, but
    presumably not since Marked could not find them.

    If you want an explicit link, you define it this way:


    See the Markdown syntax guide to learn more:

    2. URLs cannot have spaces -- you have to "URL escape" everything in URL
    paths, e.g. "La%20storia". If you drag/drop, Composer will do this for you.

    3. There is not a preference to insert absolute paths. Most of the time
    relative paths are better (certainly not all). Many users don't fully
    understand the difference between relative and absolute paths, and it is
    safer to give them relative paths.

  2. 2 Posted by loukas on 14 Sep, 2017 03:12 PM

    loukas's Avatar

    This is the code automatically produced by MMDC after dragging and dropping images:

    ![Il bifacciale è uno strumento preistorico, utile lavori di taglio](immagini/bifacciale.tiff)

    ![Esempi di punte di freccia](immagini/punte.tiff)

    The point is that, when I write by myself the path, Marked reads as you can see in picture attached and documents exported (for instance .docx) don't include the images.
    On the other hand, if I drag and drop directly images, everything work fine but MMDC creates relative paths, which I don't like very much.

    I've understood the notice about spaces.

  3. Support Staff 3 Posted by Fletcher on 14 Sep, 2017 03:30 PM

    Fletcher's Avatar

    So it sounds like you are doing it incorrectly when you do it by yourself?

    Sounds like Composer is working properly?

  4. 4 Posted by loukas on 14 Sep, 2017 04:43 PM

    loukas's Avatar

    If I understand, this is the behaviour of MMDC; good, before this conversation I didn't know, now I know.
    But, forgive me, why it'd be incorrectly if I write by myself the document's pathname (given that the code is correct): it seems to me it's a normal way to create multimarkdown, isn't it?

  5. Support Staff 5 Posted by Fletcher on 14 Sep, 2017 05:38 PM

    Fletcher's Avatar

    You can certainly do it yourself. But you're doing it wrong.

    If you do it correctly, it works fine. ;)

    Sent from my iPhone

  6. Support Staff 6 Posted by Fletcher on 16 Sep, 2017 09:58 PM

    Fletcher's Avatar

    Did you get this straightened out?

  7. 7 Posted by loukas on 17 Sep, 2017 09:01 AM

    loukas's Avatar

    This is the report:

    1. Dragging and dropping the image directly to a blank document, MMDC creates the whole code and everything works fine in its preview
    This is the code created by MMDC:
    2. If I create myself the image code '![]()' and paste between '()' the image's absolute pathname (copied from ctrl menu with opt), the preview doesn't show the image

    3. If I create myself the image code '![]()' and write the image's relative pathname, the preview doesn't show the image

    4. If I use Marked preview, it shows as the 2nd attached picture

    What about this?? :)

  8. Support Staff 8 Posted by Fletcher on 17 Sep, 2017 09:09 AM

    Fletcher's Avatar

    I think we are still not understanding each other.

    1. The drag and drop looks correct, so it should work. And you say it does.

    2. When you copy the path, are you converting spaces to "%20"??

    3. Same thing -- the relative URL must be correct for it to work.

    4. I still don't understand what the picture is supposed to show me.
    It's wrong in multiple ways:

    A) You have `![foo][foo](bar)` which is not a correct Markdown
    structure. It's either `![foo][foo]` or it's `![foo](bar)`. But not both

    B) The URL is not a proper URL -- it contains space characters which are
    not allowed.


  9. 9 Posted by loukas on 17 Sep, 2017 09:49 AM

    loukas's Avatar

    Thanks for your time and patience, now we surely are understading!

    1. The drag and drop looks correct in MMDC preview, but *not* in Marked2
    2. No, I'm not, NOW I finally understand (previously, I wrote with "xxxxx" - like Terminal - but I understand it's not correct, it was my misunderstanding)
    3. I think it's correct: '![esempio3](immagini/bifacciale.tiff)' -- why MMDC's preview is not showing the image when it's me writing it? Believe me, it is not showing
    4A. I have *never* written something like this `![foo][foo](bar)`, Marked by itself is showing this, and I don't know why
    4B. See above, NOW I finally understand

    Latest news:
    After MMDCv4 (downloaded from App Store) suddenly crashed, now this is the result: see 3rd picture.
    Don't point out to esempio2, I understand it isn't correct... But the others should be correct...

  10. Support Staff 10 Posted by Fletcher on 17 Sep, 2017 01:16 PM

    Fletcher's Avatar

    Why don't you email me a zipped directory with your file and the images, using relative paths to the images that you think are correct so I can validate it for you.

  11. Support Staff 11 Posted by Fletcher on 17 Sep, 2017 03:02 PM

    Fletcher's Avatar

    I might have figured it out. I was fixated on what was wrong in your examples, and didn't look past that.

    This should work


    But this doesn't:


    Can you verify that fixes it for you? I'll fix for next release.


  12. 12 Posted by loukas on 17 Sep, 2017 03:52 PM

    loukas's Avatar

    This is the report, a bit better than before:






    [esempio2]:(/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche e lavori/Chiaravalle/La storia antica di Chiaravalle/Libro sul bronzo/Capitoli/immagini/bifacciale.tiff)


    They ALL work fine in MMDC preview, also n.2 WITH SPACES in pathname (bur _only_ if I'm separing the command, as you told me, and there are ROUND BRACKETS) and also relative pathname written by myself

    BUT in Marked anyone doesn't work fine, see picture 2017/09/17 at 17.46.26

    (sorry for the upper case, but I would to notice you...)

  13. Support Staff 13 Posted by Fletcher on 17 Sep, 2017 04:01 PM

    Fletcher's Avatar

    You should use:

    [foo]: /Users/etc.


    [foo]: (/Users/etc.)

    The parentheses will work in some Markdown variants, but not all. So
    better not to use them. They should work in MMD 6, but not in MMD 5,
    which may be why it doesn't work in Marked.

    You could also try:

    [foo]: '/Users/etc.'
    [foo]: "/Users/etc."

  14. 14 Posted by loukas on 17 Sep, 2017 04:37 PM

    loukas's Avatar

    While I was trying to do it, MMDCv4 App Store crashed, see email please.

  15. Support Staff 15 Posted by Fletcher on 18 Sep, 2017 10:20 PM

    Fletcher's Avatar

    4.0.1 is out, and this should be fixed.



  16. Fletcher closed this discussion on 18 Sep, 2017 10:20 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