Markdown 中的嵌套引号无法正常工作

all*_*llo 6 quotes markdown nested

我对 Markdown 中的引号有问题。当我有这样的事情时:

    text
    > quoted text
    > > deeper layer
    > > > even deeper layer
Run Code Online (Sandbox Code Playgroud)

效果很好。但是当有一个层次不那么深的回复时:

    > quoted text
    > > deeper layer
    > > > even deeper layer
    > > from second layer again
    i see your point there
Run Code Online (Sandbox Code Playgroud)

它没有按应有的方式工作。它只是将引用不那么深的文本附加到当前的块引用层。

我怎样才能获得当前行之前的块引用标签的引号层?

tru*_*ted 1

始终在每个回复级别之间添加一个“空白”行。

>(“空白”行实际上是指:没有文本的行,但包含与之前的引用级别相同的数量。)

例如:

> Level one.
>
> > Level two.
> >
> > > Level three.
> > >
> > Level two again.
Level two continues as hard-wrapped paragraph.
Run Code Online (Sandbox Code Playgroud)

上面的内容由本网站的 Markdown 解析器/渲染器渲染如下,符合您的需求:

一级。

第二级。

三级。

再次二级。第二级继续作为硬包装段落。

如果您有硬包装的段落(如您的示例中所示),则始终包含空行是更正确、更统一的方法。有关更多详细信息,请阅读我在其他答案下的评论,转载如下:

@allo:回复“我不太确定该行为是否是一个降价错误。”

这不是一个错误,至少根据daringfireball.net定义的语法来看是这样。特别是,请参阅页面中的这一部分:“Markdown 允许您偷懒,只将 放在>硬包装段落的第一行之前”。