Your sites Log in Sign up Menu

Display image caption?

How do I get markdown to display an image caption?


a year ago, 5 replies   posts   markdown   Improve this question

Blot comes with a setting on the Services page of your dashboard under Images which can "Create a caption from the image’s alt text". Does that work?

Answered a year ago · Improve this answer

It does work, thanks. But then i cannot put alt text to the image without this rendering into a caption.

Is there a way to specify the caption separately from the alt text?

Answered a year ago · Improve this answer

You can't have your cake and eat it too!

More seriously, it might be a good idea to disable this feature, and manually type the desired HTML for the caption in specific cases, directly in your markdown file, e.g.

![Alt text here](/image.jpg)
<div class="caption">Your caption here</div>

Would that work best? It gives you the most control

Answered a year ago · Improve this answer

yes thanks that works,

but i don't understand why it can't be

![alt text](/image.jpg "caption")
or
![caption](/image.jpg "alt text")
Answered a year ago · Improve this answer

It can be – image title attribute takes precedence over the alt tag but if you only set an alt tag, and turn on that setting, you'll get a caption from that alt tag.

Answered a year ago · Improve this answer