Monday, June 3, 2019

CSS for Markdown captions


My caption goes here
This tip told me how to create a caption in Markdown. If you follow an image by a line with emphasis.

For example
![Alt Text](https://image url)
*The caption goes here*
and then add this to the stylesheet, you'll get a nice caption.
/* for image caption */
img + br + em {
    font-style: normal;
    display: inherit;
    text-align: center;
    font-size: 90%;
}

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.