31

2019-05-27-creating-verse-paragraphs-in-kramdown

 4 years ago
source link: https://www.tuicool.com/articles/fqeErmj
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

2019-05-27-creating-verse-paragraphs-in-kramdown

In the past, when I’ve wanted to create a verse, perhaps in a blockquote I’ve resorted to using <br> on every line, which is tedious:

> Listen, little children, all,<br>
> Listen to our earnest call:<br>
> You are very young, 'tis true,<br>
> But there's much that you can do.<br>
> Even you can plead with men<br>
> That they buy not slaves again,<br>
> And that those they have may be<br>
> Quickly set at liberty.<br>

In kramdown , the default markdown processor in Jekyll these days, there’s an easier way:

> Listen, little children, all,
> Listen to our earnest call:
> You are very young, 'tis true,
> But there's much that you can do.
> Even you can plead with men
> That they buy not slaves again,
> And that those they have may be
> Quickly set at liberty.
{: style="white-space: pre-line"}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK