如何在RestructuredText中为blockquote添加换行符?

时间:2014-07-20 12:48:31

标签: restructuredtext

这句话:

    "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

呈现为:

“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

我发现a raw HTML replacement can be used to force a blockquote但它在块引用中不起作用。

有没有办法在blockquote中使用换行符?

1 个答案:

答案 0 :(得分:6)

我相信你会想要line blocks

要创建一个,只需在每行前面添加一个竖线(" |"),如下所示:

| "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

它应该像这样呈现:

"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