How do you right align text in Jekyll?
I have a block of text I want to right align.
If it was HTML, I'd do something like:
style="text-align:right;"
How can I do that in Markdown with Jekyll?
Jekyll 2.0+ uses kramdown as a default markdown converter.
You can declare right align in your css:
.right{
text-align: right;
}
Then, simply add after your paragraph:
This text is right aligned. {: .right}