Trouble with images
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)?
Comments are currently closed for this discussion. You can start a new one.
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
Support Staff 1 Posted by Fletcher on 14 Sep, 2017 01:12 PM
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:
![foo][bar]
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:
![foo](/path/to/bar)
See the Markdown syntax guide to learn more:
https://daringfireball.net/projects/markdown/syntax
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 Posted by loukas on 14 Sep, 2017 03:12 PM
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.
Support Staff 3 Posted by Fletcher on 14 Sep, 2017 03:30 PM
So it sounds like you are doing it incorrectly when you do it by yourself?
Sounds like Composer is working properly?
4 Posted by loukas on 14 Sep, 2017 04:43 PM
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?
Support Staff 5 Posted by Fletcher on 14 Sep, 2017 05:38 PM
You can certainly do it yourself. But you're doing it wrong.
If you do it correctly, it works fine. ;)
Sent from my iPhone
Support Staff 6 Posted by Fletcher on 16 Sep, 2017 09:58 PM
Did you get this straightened out?
7 Posted by loukas on 17 Sep, 2017 09:01 AM
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:
*****
![esempio1](/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche%20e%20lavori/Chiaravalle/La%20storia%20antica%20di%20Chiaravalle/Libro%20sul%20bronzo/Capitoli/immagini/bifacciale.tiff)
*****
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?? :)
Support Staff 8 Posted by Fletcher on 17 Sep, 2017 09:09 AM
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.
Fletcher
9 Posted by loukas on 17 Sep, 2017 09:49 AM
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...
Support Staff 10 Posted by Fletcher on 17 Sep, 2017 01:16 PM
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.
Support Staff 11 Posted by Fletcher on 17 Sep, 2017 03:02 PM
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.
Fletcher
12 Posted by loukas on 17 Sep, 2017 03:52 PM
This is the report, a bit better than before:
***
![esempio1](/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche%20e%20lavori/Chiaravalle/La%20storia%20antica%20di%20Chiaravalle/Libro%20sul%20bronzo/Capitoli/immagini/bifacciale.tiff)
![esempio2][esempio2]
![esempio3](immagini/bifacciale.tiff)
![esempio4](immagini/bifacciale.tiff)
![esempio5](immagini/bifacciale.tiff)
![esempio6][esempio6]
[esempio2]:(/Users/Loukas/CloudStation/Kosmos/Specializzazione/Ricerche e lavori/Chiaravalle/La storia antica di Chiaravalle/Libro sul bronzo/Capitoli/immagini/bifacciale.tiff)
[esempio6]: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...)
Support Staff 13 Posted by Fletcher on 17 Sep, 2017 04:01 PM
You should use:
[foo]: /Users/etc.
Not:
[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 Posted by loukas on 17 Sep, 2017 04:37 PM
While I was trying to do it, MMDCv4 App Store crashed, see email please.
Support Staff 15 Posted by Fletcher on 18 Sep, 2017 10:20 PM
4.0.1 is out, and this should be fixed.
Thanks!
Fletcher
Fletcher closed this discussion on 18 Sep, 2017 10:20 PM.