Log in Sign up

Display image caption?

How do I get markdown to display an image caption?

5 replies

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 4 months 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 4 months 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 4 months 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 4 months 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 4 months ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us

Tags

developers 61 questions bug 30 questions templates 21 questions posts 20 questions meta 19 questions metadata 17 questions resolved 16 questions how 12 questions markdown 9 questions tags 9 questions More tags →
Subscribe for changes
RSS Feed of latest questions