Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block quote marker choice uniformity #466

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 83 additions & 2 deletions spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3194,9 +3194,12 @@ with a following space, or (b) a single character `>` not followed by a space.
The following rules define [block quotes]:

1. **Basic case.** If a string of lines *Ls* constitute a sequence
of blocks *Bs*, then the result of prepending a [block quote
of blocks *Bs*, then the result of prepending the same [block quote
marker] to the beginning of each line in *Ls*
is a [block quote](#block-quotes) containing *Bs*.
is a [block quote](#block-quotes) containing *Bs*. If some lines in *Ls*
are [blank lines](@), then any block quote marker may be used on these
blank lines without affecting the interpretation of which block quote
marker was prepended.

2. **Laziness.** If a string of lines *Ls* constitute a [block
quote](#block-quotes) with contents *Bs*, then the result of deleting
Expand Down Expand Up @@ -3243,6 +3246,84 @@ baz</p>
````````````````````````````````


Indentation is determined by the shortest marker (on a non-blank line):

```````````````````````````````` example
>- - asdf
>
> - sdfg
.
<blockquote>
<ul>
<li>
<ul>
<li>
<p>asdf</p>
</li>
<li>
<p>sdfg</p>
</li>
</ul>
</li>
</ul>
</blockquote>
````````````````````````````````


The following is equivalent to the above (but now using the longer marker):

```````````````````````````````` example
> - - asdf
>
> - sdfg
.
<blockquote>
<ul>
<li>
<ul>
<li>
<p>asdf</p>
</li>
<li>
<p>sdfg</p>
</li>
</ul>
</li>
</ul>
</blockquote>
````````````````````````````````


List within a block quote, with the first item indented by three spaces:

```````````````````````````````` example
> 1. a
>2. b
.
<blockquote>
<ol>
<li>a</li>
<li>b</li>
</ol>
</blockquote>
````````````````````````````````


The shortest marker might not occur on the first line, meaning four spaces is too many:
```````````````````````````````` example
> 1. a
>2. b
.
<blockquote>
<pre><code>1. a
</code></pre>
<ol start="2">
<li>b</li>
</ol>
</blockquote>
````````````````````````````````


The `>` characters can be indented 1-3 spaces:

```````````````````````````````` example
Expand Down