Using an image caption in Markdown Jekyll

后端 未结 10 982
一个人的身影
一个人的身影 2021-01-29 18:11

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:

![name of the image](http://link.com/ima

10条回答
  •  误落风尘
    2021-01-29 18:16

    Andrew's @andrew-wei answer works great. You can also chain a few together, depending on what you are trying to do. This, for example, gets you an image with alt, title and caption with a line break and bold and italics in different parts of the caption:

    img + br + strong {margin-top: 5px; margin-bottom: 7px; font-style:italic; font-size: 12px; }
    img + br + strong + em {margin-top: 5px; margin-bottom: 7px; font-size: 12px; font-style:italic;}
    

    With the following markdown:

    ![description](https://img.jpg "description")
    ***Image:*** *description*
    

提交回复
热议问题