blockquote30
This is a test for
> a blockquote starting at top-level
> > then opening a nested level
> > further continuing at the nested level
> > > then opening a doubly-nested level
> > > further continuing at the doubly-nested level
> > >
> > then returning to the simply-nested level
> >
> then returning to the top-level blockquote.
markdown.pl doesn't close a blockquote before
"then returning to the simply-nested level"; it
does close a blockquote level before
"then returning to the top-level blockquote",
and closes two blockquote levels after the
blockquote section.
Compare this to blockquote31.txt, where blank lines
are part of the blockquote being returned to,
rather than being closed as here.
NOTE:
markdown.awk doesn't treat this as markdown.pl does:
markdown.awk doesn't differentiate between whether a
blank line occurs in the blockquote being closed or
in the blockquote being returned to, so formats this
same as blockquote31.txt (which shows the recommended,
portable way to exit from a nested blockquote).
The reason is that markdown.pl's behaviour isn't
documented, and seems merely an implementation
artifact.
Rendered HTML
<p>This is a test for
</p><blockquote><p>a blockquote starting at top-level
</p><blockquote><p>then opening a nested level
further continuing at the nested level
</p><blockquote><p>then opening a doubly-nested level
further continuing at the doubly-nested level
</p></blockquote><p>then returning to the simply-nested level
</p></blockquote><p>then returning to the top-level blockquote.
</p></blockquote><p>markdown.pl doesn't close a blockquote before
"then returning to the simply-nested level"; it
does close a blockquote level before
"then returning to the top-level blockquote",
and closes two blockquote levels after the
blockquote section.
</p><p>Compare this to blockquote31.txt, where blank lines
are part of the blockquote being returned to,
rather than being closed as here.
</p><p>NOTE:
markdown.awk doesn't treat this as markdown.pl does:
markdown.awk doesn't differentiate between whether a
blank line occurs in the blockquote being closed or
in the blockquote being returned to, so formats this
same as blockquote31.txt (which shows the recommended,
portable way to exit from a nested blockquote).
</p><p>The reason is that markdown.pl's behaviour isn't
documented, and seems merely an implementation
artifact.
</p>
blockquote31
This is a test for
> a blockquote starting at top-level
> > then opening a nested level
> > further continuing at the nested level
> > > then opening a doubly-nested level
> > > further continuing at the doubly-nested level
> >
> > then returning to the simply-nested level
>
> then returning to the top-level blockquote.
markdown.pl needs the blank lines as shown or wouldn't
return to the simply-nested (level 2) nesting level at
"then returning to the simply-nested level" nor to
the level 1 blockquote at "then returning to the
top-level blockquote" (cf. blockquote30.txt).
Rendered HTML
<p>This is a test for
</p><blockquote><p>a blockquote starting at top-level
</p><blockquote><p>then opening a nested level
further continuing at the nested level
</p><blockquote><p>then opening a doubly-nested level
further continuing at the doubly-nested level
</p></blockquote><p>then returning to the simply-nested level
</p></blockquote><p>then returning to the top-level blockquote.
</p></blockquote><p>markdown.pl needs the blank lines as shown or wouldn't
return to the simply-nested (level 2) nesting level at
"then returning to the simply-nested level" nor to
the level 1 blockquote at "then returning to the
top-level blockquote" (cf. blockquote30.txt).
</p>
blockquote32
This is a test for
> a blockquote starting at top-level
> > then opening a nested level
> > further continuing at the nested level
> > > then opening a doubly-nested level
> > > further continuing at the doubly-nested level
> > then returning to the simply-nested level
> then returning to the top-level blockquote.
Here, all blank lines are omitted. markdown.pl
will open blockquotes as expected, but put
all text starting from "then opening a double-nested
level" until the end of the blockquote section into
the innermost blockquote level text, then close
all blockquotes.
Rendered HTML
<p>This is a test for
</p><blockquote><p>a blockquote starting at top-level
</p><blockquote><p>then opening a nested level
further continuing at the nested level
</p><blockquote><p>then opening a doubly-nested level
further continuing at the doubly-nested level
then returning to the simply-nested level
then returning to the top-level blockquote.
</p></blockquote></blockquote></blockquote><p>Here, all blank lines are omitted. markdown.pl
will open blockquotes as expected, but put
all text starting from "then opening a double-nested
level" until the end of the blockquote section into
the innermost blockquote level text, then close
all blockquotes.
</p>
blockquote31
This is a test for
> a blockquote starting at top-level
> > then opening a nested level
> > further continuing at the nested level
> > > then opening a doubly-nested level
> > > further continuing at the doubly-nested level
> >
> > then returning to the simply-nested level
>
> then returning to the top-level blockquote.
markdown.pl needs the blank lines as shown or wouldn't
return to the simply-nested (level 2) nesting level at
"then returning to the simply-nested level" nor to
the level 1 blockquote at "then returning to the
top-level blockquote" (cf. blockquote30.txt).
Rendered HTML
<p>This is a test for
</p><blockquote><p>a blockquote starting at top-level
</p><blockquote><p>then opening a nested level
further continuing at the nested level
</p><blockquote><p>then opening a doubly-nested level
further continuing at the doubly-nested level
</p></blockquote><p>then returning to the simply-nested level
</p></blockquote><p>then returning to the top-level blockquote.
</p></blockquote><p>markdown.pl needs the blank lines as shown or wouldn't
return to the simply-nested (level 2) nesting level at
"then returning to the simply-nested level" nor to
the level 1 blockquote at "then returning to the
top-level blockquote" (cf. blockquote30.txt).
</p>