Markdown formatting in image captions

I've noticed that when adding captions using the Markdown syntax ![Caption goes here.](image_url.png) that I'm unable to use Markdown to format the caption. For example on this post, 'Ted Lasso' is supposed to be italicized and the '⌘' character in the caption is supposed to direct link to the full-size image, but it's not rendered that way. Is there a way to make the engine check for markdown formatting within that text caption area? Here's the raw text for that particular link:

![Black shirt with *Ted Lasso* character names in white text. [⌘](](

(I have the 'Create a caption from the image’s alt text' option checked in settings.)

3 replies

No, this is not possible at the moment due to the way the markdown parser works. One workaround is to skip the markdown and just mix the desired HTML right into your post:

  <img src="">
  <span class="caption">Black shirt with <em>Ted Lasso</em> character names in white text. ⌘</span>

Does that help you work around the issue for now?

Answered 4 months ago · Improve this answer

I've got a similar workaround that should be good enough for now. I put the actual caption (as opposed to specifically alt text) into a <figcaption> tag right after the ![]() syntax, which I've styled the same as the other captions in the CSS file. And then I disabled the setting to convert alt text to a caption.


![Cartoon girl surrounded by icons for services.](
<figcaption> Apple's never made that iPhone.</figcaption>

That will work for now! (I'm also hoping that this will be better for folks using screen readers by including both the alt text and caption for them?)

Would you consider an adaptation to the Markdown parser to include that alt text/caption area in the future?

Answered 4 months ago · Improve this answer

I would but this will take a little while – messing with the markdown parser is complicated at this point!

Answered 4 months ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us


developers 28 questions bug 14 questions posts 9 questions resolved 7 questions request 6 questions google-drive 5 questions configure 4 questions pages 3 questions added 3 questions meta 3 questions More tags →
Subscribe for changes
RSS Feed of latest questions