Using Markdown, how do I center an image and its caption?

Chetan picture Chetan · Oct 12, 2010 · Viewed 94.9k times · Source

I want to end up with:

Hello there!

      <image>
      This is an image

Hi!

Where the image and the text This is an image are centered on the page. How do I accomplish this with Markdown?

Edit: Note that I'm looking to horizontally center the image and text on the page.

Answer

Chetan picture Chetan · Oct 17, 2010

I figured that I'd just have to use HTML where I want to horizontally align anything.

So my code would look like this:

Hello there!

      <center><img src="" ...></center>
      <center>This is an image</center>

Hi!