tag:support.multimarkdown.com,2013-02-12:/discussions/betas/204-trouble-with-imagesMultiMarkdown Software, LLC: Discussion 2017-09-18T22:20:04Ztag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-14T13:12:44Z2017-09-14T13:12:44ZTrouble with images<div><p>I don't understand what you're trying to do, or what role Composer could<br>
have had since it doesn't create the sort of mistakes you show.</p>
<ol>
<li>
<p>Your images, as you have them, are defined by reference:</p>
<p>![foo][bar]</p>
</li>
</ol>
<p>I don't know whether you defined them later in the document, but<br>
presumably not since Marked could not find them.</p>
<p>If you want an explicit link, you define it this way:</p>
<pre>
<code>![foo](/path/to/bar)</code>
</pre>
<p>See the Markdown syntax guide to learn more:</p>
<p><a href="https://daringfireball.net/projects/markdown/syntax">https://daringfireball.net/projects/markdown/syntax</a></p>
<ol>
<li>
<p>URLs cannot have spaces -- you have to "URL escape" everything in URL<br>
paths, e.g. "La%20storia". If you drag/drop, Composer will do this for you.</p>
</li>
<li>
<p>There is not a preference to insert absolute paths. Most of the time<br>
relative paths are better (certainly not all). Many users don't fully<br>
understand the difference between relative and absolute paths, and it is<br>
safer to give them relative paths.</p>
</li>
</ol></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-14T15:12:32Z2017-09-14T15:12:32ZTrouble with images<div><p>This is the code automatically produced by MMDC after dragging and dropping images:</p>
<hr>
<p><img src="immagini/bifacciale.tiff" alt="Il bifacciale &egrave; uno strumento preistorico, utile lavori di taglio"></p>
<p><img src="immagini/punte.tiff" alt="Esempi di punte di freccia"></p>
<hr>
<p>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.<br>
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.</p>
<p>I've understood the notice about spaces.</p></div>loukastag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-14T15:30:12Z2017-09-14T15:30:12ZTrouble with images<div><p>So it sounds like you are doing it incorrectly when you do it by yourself?</p>
<p>Sounds like Composer is working properly?</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-14T16:43:54Z2017-09-14T16:43:54ZTrouble with images<div><p>If I understand, this is the behaviour of MMDC; good, before this conversation I didn't know, now I know.<br>
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?</p></div>loukastag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-14T17:38:58Z2017-09-14T17:38:58ZTrouble with images<div><p>You can certainly do it yourself. But you're doing it wrong.</p>
<p>If you do it correctly, it works fine. ;)</p>
<p>Sent from my iPhone</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-16T21:58:52Z2017-09-16T21:58:52ZTrouble with images<div><p>Did you get this straightened out?</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T09:01:56Z2017-09-17T09:01:56ZTrouble with images<div><p>This is the report:</p>
<ol>
<li>Dragging and dropping the image directly to a blank document, MMDC creates the whole code and everything works fine in its preview<br>
This is the code created by MMDC:<br>
***** <img src="/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche%20e%20lavori/Chiaravalle/La%20storia%20antica%20di%20Chiaravalle/Libro%20sul%20bronzo/Capitoli/immagini/bifacciale.tiff" alt="esempio1"> *****</li>
<li>
<p>If I create myself the image code '<img src="" alt="">' and paste between '()' the image's absolute pathname (copied from ctrl menu with opt), the preview doesn't show the image</p>
</li>
<li>
<p>If I create myself the image code '<img src="" alt="">' and write the image's relative pathname, the preview doesn't show the image</p>
</li>
<li>
<p>If I use Marked preview, it shows as the 2nd attached picture</p>
</li>
</ol>
<p>What about this?? :)</p></div>loukastag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T09:09:33Z2017-09-17T09:09:33ZTrouble with images<div><p>I think we are still not understanding each other.</p>
<ol>
<li>
<p>The drag and drop looks correct, so it should work. And you say it does.</p>
</li>
<li>
<p>When you copy the path, are you converting spaces to "%20"??</p>
</li>
<li>
<p>Same thing -- the relative URL must be correct for it to work.</p>
</li>
<li>
<p>I still don't understand what the picture is supposed to show me.<br>
It's wrong in multiple ways:</p>
</li>
</ol>
<p>A) You have <code>![foo][foo](bar)</code> which is not a correct Markdown<br>
structure. It's either <code>![foo][foo]</code> or it's <code>![foo](bar)</code>. But not both</p>
<p>B) The URL is not a proper URL -- it contains space characters which are<br>
not allowed.</p>
<p>Fletcher</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T09:49:02Z2017-09-17T09:49:02ZTrouble with images<div><p>Thanks for your time and patience, now we surely are understading!</p>
<ol>
<li>The drag and drop looks correct in MMDC preview, but <em>not</em> in Marked2<br></li>
<li>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)<br></li>
<li>I think it's correct: '<img src="immagini/bifacciale.tiff" alt="esempio3">' -- why MMDC's preview is not showing the image when it's me writing it? Believe me, it is not showing<br>
4A. I have <em>never</em> written something like this <code>![foo][foo](bar)</code>, Marked by itself is showing this, and I don't know why<br>
4B. See above, NOW I finally understand</li>
</ol>
<p>Latest news:<br>
After MMDCv4 (downloaded from App Store) suddenly crashed, now this is the result: see 3rd picture.<br>
Don't point out to esempio2, I understand it isn't correct... But the others should be correct...</p></div>loukastag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T13:16:39Z2017-09-17T13:16:39ZTrouble with images<div><p>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.</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T15:02:51Z2017-09-17T15:02:51ZTrouble with images<div><p>I might have figured it out. I was fixated on what was wrong in your examples, and didn't look past that.</p>
<p>This should work</p>
<pre>
<code>![foo][bar]
[bar]:/path/to/image</code>
</pre>
<p>But this doesn't:</p>
<pre>
<code>![foo](/path/to/image)</code>
</pre>
<p>Can you verify that fixes it for you? I'll fix for next release.</p>
<p>Fletcher</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T15:52:37Z2017-09-17T15:52:37ZTrouble with images<div><p>This is the report, a bit better than before:</p>
<hr>
<p><img src="/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche%20e%20lavori/Chiaravalle/La%20storia%20antica%20di%20Chiaravalle/Libro%20sul%20bronzo/Capitoli/immagini/bifacciale.tiff" alt="esempio1"></p>
<p>![esempio2][esempio2]</p>
<p><img src="immagini/bifacciale.tiff" alt="esempio3"></p>
<p><img src="immagini/bifacciale.tiff" alt="esempio4"></p>
<p><img src="immagini/bifacciale.tiff" alt="esempio5"></p>
<p><img src="immagini/bifacciale.tiff" alt="esempio6"></p>
<p>[esempio2]:(/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche e lavori/Chiaravalle/La storia antica di Chiaravalle/Libro sul bronzo/Capitoli/immagini/bifacciale.tiff)</p>
<hr>
<p>They ALL work fine in MMDC preview, also n.2 WITH SPACES in pathname (bur <em>only</em> if I'm separing the command, as you told me, and there are ROUND BRACKETS) and also relative pathname written by myself</p>
<p>BUT in Marked anyone doesn't work fine, see picture 2017/09/17 at 17.46.26</p>
<p>(sorry for the upper case, but I would to notice you...)</p></div>loukastag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T16:01:38Z2017-09-17T16:01:38ZTrouble with images<div><p>You should use:</p>
<p>Not:</p>
<p>The parentheses will work in some Markdown variants, but not all. So<br>
better not to use them. They should work in MMD 6, but not in MMD 5,<br>
which may be why it doesn't work in Marked.</p>
<p>You could also try:</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-17T16:37:26Z2017-09-17T16:37:26ZTrouble with images<div><p>While I was trying to do it, MMDCv4 App Store crashed, see email please.</p></div>loukastag:support.multimarkdown.com,2013-02-12:Comment/434417302017-09-18T22:20:00Z2017-09-18T22:20:00ZTrouble with images<div><p>4.0.1 is out, and this should be fixed.</p>
<p>Thanks!</p>
<p>Fletcher</p></div>Fletcher