Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add line breaks to a blockquote in RestructuredText?

This quote:

    "there are worse things
    than being alone
    but it often takes
    decades to realize this
    and most often when you do
    it's too late
    and there's nothing worse
    than too late"

    -- Charles Bukowski

Is rendered like:

“there are worse things than being alone but it often takes decades to realize this and most often when you do it’s too late and there’s nothing worse than too late”
—Charles Bukowski

I have found that a raw HTML replacement can be used to force a blockquote but it doesn't work within a blockquote.

Is there any way to use line breaks in a blockquote?

like image 340
muhuk Avatar asked Mar 18 '23 23:03

muhuk


1 Answers

I believe you'll want to use line blocks.

To create one, simply prefix each line with a vertical bar ("|") like so:

| "there are worse things  
| than being alone  
| but it often takes  
| decades to realize this  
| and most often when you do  
| it's too late  
| and there's nothing worse  
| than too late"

-- Charles Bukowski

It should render like this:

"there are worse things
than being alone
but it often takes
decades to realize this
and most often when you do
it's too late
and there's nothing worse
than too late"

-- Charles Bukowsk
like image 154
rhgrant10 Avatar answered May 17 '23 09:05

rhgrant10