Log in Sign up

Display image caption?

How do I get markdown to display an image caption?


2 years ago, 5 replies   posts   markdown   Edit 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 2 years ago · Edit 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 2 years ago · Edit 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 2 years ago · Edit 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 2 years ago · Edit 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 2 years ago · Edit answer