I am hosting a Jekyll Blog on Github and write my posts with Markdown. When I am adding images, I do it the following way:

{:.image-caption}
*The caption for my image*
And then in your CSS file you can do something like this:
.image-caption {
text-align: center;
font-size: .8rem;
color: light-grey;
Comes out looking good!