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

前端 未结 7 790
小鲜肉
小鲜肉 2021-01-31 08:08

I want to end up with:

Hello there!

      
      This is an image

Hi!

Where the image and the text This is an image

7条回答
  •  生来不讨喜
    2021-01-31 08:24

    In Mou (and perhaps Jekyll) this is quite simple.

    -> This is centered Text <-
    

    So taking that in mind you can apply this to the img syntax.

    ->![alt text](/link/to/img)<-
    

    This syntax doesn't work for Markdown implementations that implement only what is documented on Daring Fireball.

提交回复
热议问题