Skip to content

Lists ​

Markers, looseness, the content-column model, continuation markers and block openers inside items.

Generated from resources/examples/edge-cases/ and resources/examples/core.md - edit the cases there, not here. Each case links the conformance fixture it produces.

A new list after a note-attached list ​

1 conformance fixture

PART 9 §17 L3 offers one block to the note, and §11 N1 makes a different marker type a new sibling list (carve#5559).

carve
[^a]: +
* li
- sib

see[^a]
html
<ul>
  <li>sib</li>
</ul>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>li</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Non-row pipe keeps lazy plus in a nested item ​

1 conformance fixture

The nested item's open paragraph also owns the flush-left plus line.

carve
- a
  - b
  | x | y | Ω
+ c
html
<ul>
  <li>a
    <ul>
      <li>b
| x | y | Ω
+ c</li>
    </ul>
  </li>
</ul>

A tabbed table ends before a flush-left list line ​

1 conformance fixture

The table belongs to the item, and the next line falls below its content column.

carve
- a
	|x|
+ c
html
<ul>
  <li>a
    <table>
      <tbody>
        <tr><td>x</td></tr>
      </tbody>
    </table>
  </li>
</ul>
<p>+ c</p>

A list import preserves its hard break ​

1 conformance fixture

A backslash at the end of an item line keeps the break before lazy continuation.

carve
- a\
b
html
<ul>
  <li>a<br>
b</li>
</ul>

A post-marker tab keeps a quote literal ​

1 conformance fixture

A tab after a list marker separator is content and cannot expose a quote opener.

carve
- 	> a
html
<ul>
  <li>	&gt; a</li>
</ul>

A refused plus without the inner quote prefix renders as text ​

4 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

A + without the inner quote prefix stays with its owning paragraph. A quoted descendant inside an ordered item does not erase the item’s sibling marker column (markup-carve/carve#3421).

carve
> > - a
>   +
>   - b
html
<blockquote>
  <blockquote>
    <ul>
      <li>a
+</li>
    </ul>
  </blockquote>
  <ul>
    <li>b</li>
  </ul>
</blockquote>
carve
> > - a
>   Q
>   - b
html
<blockquote>
  <blockquote>
    <ul>
      <li>a
Q</li>
    </ul>
  </blockquote>
  <ul>
    <li>b</li>
  </ul>
</blockquote>
carve
1. ordered
  > > quote
+  
- item
html
<ol>
  <li>ordered</li>
</ol>
<blockquote>
  <blockquote><p>quote
+
- item</p></blockquote>
</blockquote>
carve
1. ordered
  > > quote
Q  
- item
html
<ol>
  <li>ordered</li>
</ol>
<blockquote>
  <blockquote><p>quote
Q
- item</p></blockquote>
</blockquote>

A caption after a continuation marker fence stays with the fence ​

10 conformance fixtures

Caption variant 1

carve
- x
  ```
  x
  ```

  ^ cap
- c
html
<ul>
  <li>x
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 2

carve
- x
  ```
  x
  ```
  ^ cap
- c
html
<ul>
  <li>x
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 3

carve
- x
  ~~~
  x
  ~~~
  ^ cap
- c
html
<ul>
  <li>x
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 4

carve
- - text
  ```
  x
  ```
  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 5

carve
- x
+
```
x
```
^ cap
- c
html
<ul>
  <li>x
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 6

carve
- +
```
x
```
^ cap
- c
html
<ul>
  <li>
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 7

carve
1. x
+
~~~
x
~~~
^ cap
2. c
html
<ol>
  <li>x
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ol>

Caption variant 8

carve
- x
+
::: figure
![a](b.png)
:::
^ cap
- c
html
<ul>
  <li>x
    <figure class="carve-figure-group">
      <img src="b.png" alt="a">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Caption variant 9

carve
- x
+
::: figure [label]
hi
:::
^ cap
- c
html
<ul>
  <li>x
    <div class="figure">
      <p class="div-label">label</p>
      <p>hi</p>
    </div>
  </li>
</ul>
<p>^ cap
- c</p>

Caption variant 10

carve
- x
+
::: figure "t"
hi
:::
^ cap
- c
html
<ul>
  <li>x
    <div class="figure">
      <p class="admonition-title">t</p>
      <p>hi</p>
    </div>
  </li>
</ul>
<p>^ cap
- c</p>

A lazily folded fence opener line does not keep a list tight ​

4 conformance fixtures

Folded fence variant 1

carve
- - text
  ```
  x

  cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <pre><code>x

cap
</code></pre>
  </li>
  <li>c</li>
</ul>

Folded fence variant 2

carve
- - text
  ~~~
  x

  cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <pre><code>x

cap
</code></pre>
  </li>
  <li>c</li>
</ul>

Folded fence variant 3

carve
- - text
  ![i](x.png)
  x

  cap
- c
html
<ul>
  <li>
    <ul>
      <li>text
<img src="x.png" alt="i">
x</li>
    </ul>
    <p>cap</p>
  </li>
  <li><p>c</p></li>
</ul>

Folded fence variant 4

carve
- - text
  ```
  x
  cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <pre><code>x
cap
</code></pre>
  </li>
  <li>c</li>
</ul>

A fence run folded into a child paragraph loosens the outer item when it closes at the outer column ​

6 conformance fixtures
carve
- outer
  - head
     ```
     a
  ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>
carve
- outer
  - head
     ````
     a
  ````

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>
carve
1. outer
   - head
      ```
      a
   ```

   tail
html
<ol>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ol>
carve
> - outer
>   - head
>      ```
>      a
>   ```
>
>   tail
html
<blockquote>
  <ul>
    <li>outer
      <ul>
        <li>head
          <pre><code>a
</code></pre>
        </li>
      </ul>
      <pre><code>
tail
</code></pre>
    </li>
  </ul>
</blockquote>
carve
- outer
  - head
    more
    ```
    a
   ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
more
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>
carve
- outer
  - head
     ```
     a
  ```

    tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
  tail
</code></pre>
  </li>
</ul>

A fence closer outside the child folds and leaves the child open ​

11 conformance fixtures
carve
- outer
  - head
     ```
     a
   ```

    tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
 tail
</code></pre>
  </li>
</ul>
carve
- outer
  - head
     ```
     a
```

    tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
  </li>
</ul>
<pre><code>
    tail
</code></pre>
carve
- outer
  - head
     ```
     a
  ```


    tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>

  tail
</code></pre>
  </li>
</ul>
carve
1. outer
   - head
      ```
      a
   ```

     tail
html
<ol>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
  tail
</code></pre>
  </li>
</ol>
carve
- outer
  - head
     ```
     a
  ```

    tail

    more
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
  tail

  more
</code></pre>
  </li>
</ul>
carve
- outer
  - head
     ~~~
     a
 ~~~

    tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
  </li>
</ul>
<pre><code>
   tail
</code></pre>
carve
- outer
  - head
     ```
     a
```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
  </li>
</ul>
<pre><code>
  tail
</code></pre>
carve
- outer
  - head
     ```
     a
 ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
  </li>
</ul>
<pre><code>
 tail
</code></pre>
carve
- outer
  - head
     ```
     a
    ```

  tail
html
<ul>
  <li><p>outer</p>
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <p>tail</p>
  </li>
</ul>
carve
- outer
  - head
     ````
     a
  ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>
carve
- outer
  - head
     ````
     a
  ```

    tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
  tail
</code></pre>
  </li>
</ul>

An indented plus below a nested fence stays content at every depth ​

8 conformance fixtures
carve
- - - ```
      x
    +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x
</code></pre>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
- - - ```
    +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
- - - ```
      x
    +
- y
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x
</code></pre>
          </li>
        </ul>
      </li>
    </ul>
  </li>
  <li>y</li>
</ul>
carve
- - - ```=html
      x
    +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            x
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
- - ```


  +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code>

</code></pre>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
- - - ```
      x


    +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x


</code></pre>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
- 1. ```


  +
tail
html
<ul>
  <li>
    <ol>
      <li>
        <pre><code>

</code></pre>
      </li>
    </ol>
  </li>
</ul>
<p>tail</p>
carve
- - [ ] ```js
        x

  +
tail
html
<ul>
  <li>
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <pre><code class="language-js">    x

</code></pre>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>

A refused marker leaves an open fence's blank payload ​

7 conformance fixtures

A refused + renders nothing and keeps the item's ownership. It ends an open fence at the item's marker column, so a following content-column line is a new item paragraph (carve#5637). A + at the fence content column stays payload (markup-carve/carve#3400, markup-carve/carve#3421).

carve
- ```
+
  x
html
<ul>
  <li>
    <pre><code></code></pre>
    x
  </li>
</ul>
carve
- ```
+

  x
html
<ul>
  <li>
    <pre><code></code></pre>
    <p>x</p>
  </li>
</ul>
carve
- ```
  a
+
  x
html
<ul>
  <li>
    <pre><code>a
</code></pre>
    x
  </li>
</ul>
carve
- ```
  x
+

tail
html
<ul>
  <li>
    <pre><code>x
</code></pre>
  </li>
</ul>
<p>tail</p>
carve
- - ```
  +

tail
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
- ```
+

tail
html
<ul>
  <li>
    <pre><code></code></pre>
  </li>
</ul>
<p>tail</p>
carve
- ```=html
  x
+

tail
html
<ul>
  <li>
    x
  </li>
</ul>
<p>tail</p>

A column-zero marker below an open div attaches beside the div ​

4 conformance fixtures

A + at the item marker column ends an open colon div from the marker line. The next block at that column joins the item beside the div (markup-carve/carve#3406, markup-carve/carve#3421).

carve
- ::: d
+
tail
html
<ul>
  <li>
    <div class="d">

    </div>
    tail
  </li>
</ul>
carve
- - ::: d
  +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <div class="d">

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
1. ::: d
+
tail
html
<ol>
  <li>
    <div class="d">

    </div>
    tail
  </li>
</ol>
carve
- ::: d
  z
+
tail
html
<ul>
  <li>
    <div class="d">
      <p>z</p>
    </div>
    tail
  </li>
</ul>

A dangling plus is a letter, and a nested quote reads it like an unnested one ​

8 conformance fixtures

Under §17 L3, a later + with no following block is a letter (markup-carve/carve#3421, carve#4409). A nested quote reads a valid marker after its quote prefix. A + outside every open marker column stays text (markup-carve/carve#3421).

carve
> q
+

para
html
<blockquote><p>q</p></blockquote>
<p>para</p>
carve
> q
+
html
<blockquote><p>q</p></blockquote>
carve
- a
+

para
html
<ul>
  <li>a</li>
</ul>
<p>para</p>
carve
x[^a]

[^a]: note
+

para
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p>para</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> > q
> +
> para
html
<blockquote>
  <blockquote>
    <p>q</p>
    <p>para</p>
  </blockquote>
</blockquote>
carve
> > q
> +
para
html
<blockquote>
  <blockquote><p>q</p></blockquote>
</blockquote>
<p>para</p>
carve
> > q
> +
html
<blockquote>
  <blockquote><p>q</p></blockquote>
</blockquote>
carve
> [^a]: n
> +

para
html
<blockquote>

</blockquote>
<p>para</p>

A continuation marker stands alone at an open marker column or right after a block opener ​

18 conformance fixtures

A + on its own line at an open marker column, or last on a line of openers, attaches a follower at that marker column, read through the prefixes of the quotes around it. Any other + is a letter, or fence payload at a fence's content column (markup-carve/carve#3421, carve#4409).

carve
- a
  - b
  +
para
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
<p>para</p>
carve
- a
  - b
+
para
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
    para
  </li>
</ul>
carve
> - a
>   - b
> +
> para
html
<blockquote>
  <ul>
    <li>a
      <ul>
        <li>b</li>
      </ul>
      para
    </li>
  </ul>
</blockquote>
carve
> > q
> > +
> > - s
html
<blockquote>
  <blockquote><p>q
+
- s</p></blockquote>
</blockquote>
carve
> q
>   +
> para
html
<blockquote><p>q
+
para</p></blockquote>
carve
- a
  - ```
    x
    +
    ```
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code>x
+
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - b
  +
> q
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
<blockquote><p>q</p></blockquote>
carve
- a
  - b
  +
  > q
html
<ul>
  <li>a
    <ul>
      <li>b
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- - - ```
      x
    +
tail
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x
</code></pre>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<p>tail</p>
carve
  > +
q
html
<blockquote>

</blockquote>
<p>q</p>
carve
>>+
q
html
<p>&gt;&gt;+
q</p>
carve
>+
q
html
<p>&gt;+
q</p>

The last opener is the nested item, whose marker column is 2, so the line at column 0 folds into the refused +.

carve
- - +
para
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>para</p>

The quote opened inside the item owns the +. Its marker column is 2, so the line folds into the refused +.

carve
- > +
para
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<p>para</p>

The item opened inside the quote takes the paragraph.

carve
> - +
> para
html
<blockquote>
  <ul>
    <li>para</li>
  </ul>
</blockquote>

An ordered outer item reads the same: its nested item owns the + and refuses column 0.

carve
1. - +
para
html
<ol>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ol>
<p>para</p>

A later column-0 marker belongs to the outer item, not the nested item.

carve
- a
  - b
+
para
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
    para
  </li>
</ul>

The indented opener's + is refused at column 0, and the line folds into it.

carve
- a
  - +
para
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>para</p>

A task item takes a first-block continuation marker after its checkbox ​

4 conformance fixtures

The task-item opener is a block opener, so a bare + after its checkbox attaches a block at the item's marker column. A stacked item's marker column is not column 0, so the last pair is refused (markup-carve/carve#3421, carve#4409). Text after + remains item text.

carve
- [ ] +
```
code
```
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <pre><code>code
</code></pre>
  </li>
</ul>
carve
- [x] +
> quote
html
<ul class="task-list">
  <li data-task-state="x"><input type="checkbox" checked disabled> 
    <blockquote><p>quote</p></blockquote>
  </li>
</ul>
carve
- [ ] + text
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="+ text"> + text</li>
</ul>
carve
- - [ ] +
```
code
```
html
<ul>
  <li>
    <ul class="task-list">
      <li><input type="checkbox" disabled> </li>
    </ul>
  </li>
</ul>
<pre><code>code
</code></pre>

A continuation marker uses its container column ​

34 conformance fixtures

A lone + at an open marker column takes one block at that column; a same-column list item refuses it (markup-carve/carve#3421). These rows pin the relative column rule for nested containers, fences, tables, and first-block forms.

carve
- a
  - b
  +
  > q
html
<ul>
  <li>a
    <ul>
      <li>b
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - b
+
> q
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
- a
  - b
  +
  para
html
<ul>
  <li>a
    <ul>
      <li>b
        para
      </li>
    </ul>
  </li>
</ul>
carve
1. a
+
> q
html
<ol>
  <li>a
    <blockquote><p>q</p></blockquote>
  </li>
</ol>
carve
- [ ] task
+
> q
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="task"> task
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
x[^a]

[^a]: note
+
> q
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note</p>
      <blockquote><p>q</p></blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: term
: body
+
> q
html
<dl>
  <dt>term</dt>
  <dd>
    <p>body</p>
    <blockquote><p>q</p></blockquote>
  </dd>
</dl>
carve
> q
+
| a |
html
<blockquote>
  <p>q</p>
  <table>
    <tbody>
      <tr><td>a</td></tr>
    </tbody>
  </table>
</blockquote>
carve
- a
  - b
  +
> q
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
<blockquote><p>q</p></blockquote>
carve
- a
  - b
  +
  > q
html
<ul>
  <li>a
    <ul>
      <li>b
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - b
  +
    > q
html
<ul>
  <li>a
    <ul>
      <li>b
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] task
  +
  - x
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task"> task</li>
    </ul>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
- a
+
- b
html
<ul>
  <li>a</li>
  <li>b</li>
</ul>
carve
> - a
  +
html
<blockquote>
  <ul>
    <li>a
+</li>
  </ul>
</blockquote>
carve
- a
  > q
  +
  para
html
<ul>
  <li>a
    <blockquote>
      <p>q</p>
      <p>para</p>
    </blockquote>
  </li>
</ul>
carve
- a
  - ```
  +
  > q
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code></code></pre>
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - ```
    +
    ```
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code>+
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - ```
  +

  tail
html
<ul>
  <li><p>a</p>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    <p>tail</p>
  </li>
</ul>
carve
- a
  - b
  +

  tail
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
    <p>tail</p>
  </li>
</ul>
carve
- a
  - b
  +
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
carve
- a
  - b

  +
  > q
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- x
  - y
    - a
	+
	> q
html
<ul>
  <li>x
    <ul>
      <li>y
        <ul>
          <li>a
            <blockquote><p>q</p></blockquote>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  | h |
  | v |
+
> q
html
<ul>
  <li>a
    <table>
      <tbody>
        <tr><td>h</td></tr>
        <tr><td>v</td></tr>
      </tbody>
    </table>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
- a
  | h |
  | v |
  + text |
html
<ul>
  <li>a
    <table>
      <tbody>
        <tr><td>h</td></tr>
        <tr><td>v text</td></tr>
      </tbody>
    </table>
  </li>
</ul>
carve
- a
  - b
+
> q
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
- foo
  - [ ] task
  +
  ```sh
  npm test
  ```
  - [ ] more
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task"> task
        <pre><code class="language-sh">npm test
</code></pre>
      </li>
      <li><input type="checkbox" disabled aria-label="more"> more</li>
    </ul>
  </li>
</ul>
carve
- a
  - +
  > b
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote><p>b</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - +
> b
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- - +
> q
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<blockquote><p>q</p></blockquote>
carve
- - [ ] +
> q
html
<ul>
  <li>
    <ul class="task-list">
      <li><input type="checkbox" disabled> </li>
    </ul>
  </li>
</ul>
<blockquote><p>q</p></blockquote>
carve
- > +
> q
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<blockquote><p>q</p></blockquote>
carve
> - +
> q
html
<blockquote>
  <ul>
    <li>q</li>
  </ul>
</blockquote>
carve
1. - +
> q
html
<ol>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ol>
<blockquote><p>q</p></blockquote>
carve
 - a
 +
 > q
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

A first-block marker on an indented opener reads only its marker column ​

39 conformance fixtures

An indented first-block opener takes one block at its own marker column and no other (carve#4409). A list marker at that column never attaches under a list item (markup-carve/carve#3421).

carve
- foo
  - +
- x
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
  <li>x</li>
</ul>
carve
- a
+
- b
html
<ul>
  <li>a</li>
  <li>b</li>
</ul>
carve
- foo
  - [ ] task
  +
  1. x
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task"> task</li>
    </ul>
    <ol>
      <li>x</li>
    </ol>
  </li>
</ul>
carve
- foo
  - b
  +
    - x
html
<ul>
  <li>foo
    <ul>
      <li>b
        <ul>
          <li>x</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
> b
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  - +
 x
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>x</p>
carve
- foo
  - +
> b
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  - +
 > b
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  - +
  > b
html
<ul>
  <li>foo
    <ul>
      <li>
        <blockquote><p>b</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
    > b
html
<ul>
  <li>foo
    <ul>
      <li>
        <blockquote><p>b</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] +
> b
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> </li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  - [ ] +
 > b
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> </li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  - [ ] +
  > b
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <blockquote><p>b</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] +
    > b
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <blockquote><p>b</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  1. +
> b
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  1. +
 > b
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- foo
  1. +
  > b
html
<ul>
  <li>foo
    <ol>
      <li>
        <blockquote><p>b</p></blockquote>
      </li>
    </ol>
  </li>
</ul>
carve
- foo
  1. +
    > b
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
    <blockquote><p>b</p></blockquote>
  </li>
</ul>
carve
- foo
  - +
```
x
```
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- foo
  - +
 ```
 x
 ```
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- foo
  - +
  ```
  x
  ```
html
<ul>
  <li>foo
    <ul>
      <li>
        <pre><code>x
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
    ```
    x
    ```
html
<ul>
  <li>foo
    <ul>
      <li>
        <pre><code>x
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] +
```
x
```
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> </li>
    </ul>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- foo
  - [ ] +
 ```
 x
 ```
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> </li>
    </ul>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- foo
  - [ ] +
  ```
  x
  ```
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <pre><code>x
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] +
    ```
    x
    ```
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <pre><code>x
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  1. +
```
x
```
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- foo
  1. +
 ```
 x
 ```
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- foo
  1. +
  ```
  x
  ```
html
<ul>
  <li>foo
    <ol>
      <li>
        <pre><code>x
</code></pre>
      </li>
    </ol>
  </li>
</ul>
carve
- foo
  1. +
    ```
    x
    ```
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
    <pre><code>x
</code></pre>
  </li>
</ul>
carve
- foo
  - +
  - x
html
<ul>
  <li>foo
    <ul>
      <li></li>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
  + x
html
<ul>
  <li>foo
    <ul>
      <li>+ x</li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
  * x
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
  1. x
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
    <ol>
      <li>x</li>
    </ol>
  </li>
</ul>
carve
- foo
  - +
  - [ ] x
html
<ul>
  <li>foo
    <ul>
      <li></li>
    </ul>
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="x"> x</li>
    </ul>
  </li>
</ul>
carve
- foo
  - +
    - x
html
<ul>
  <li>foo
    <ul>
      <li>
        <ul>
          <li>x</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
carve
- a

+
- s
html
<ul>
  <li><p>a</p></li>
  <li><p>s</p></li>
</ul>
carve
- ```
+
- s
html
<ul>
  <li>
    <pre><code></code></pre>
  </li>
  <li>s</li>
</ul>
carve
> - ```
> +
> - s
html
<blockquote>
  <ul>
    <li>
      <pre><code></code></pre>
    </li>
    <li>s</li>
  </ul>
</blockquote>

A marker folds into the paragraph a first-block plus took ​

3 conformance fixtures

PART 0 S4 (carve#4545). The section name predates the superseding ruling and is append-only. A list marker of another kind between the item's marker and content columns opens a new list, also after the paragraph a first-block + took.

carve
- +
  b
 * w1
html
<ul>
  <li>b</li>
</ul>
<ul>
  <li>w1</li>
</ul>
carve
1. +
+ w1
 - w2
html
<ol>
  <li>+ w1</li>
</ol>
<ul>
  <li>w2</li>
</ul>
carve
- a
  - +
  + w1
   9. w2
html
<ul>
  <li>a
    <ul>
      <li>+ w1</li>
    </ul>
    <ol start="9">
      <li>w2</li>
    </ol>
  </li>
</ul>

A refused continuation plus remains text ​

40 conformance fixtures
carve
- foo
  - [ ] task
  +
  > q
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task"> task
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] task
    +
  - x
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task +"> task
+</li>
    </ul>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] task
  +
  - x
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task"> task</li>
    </ul>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
> - a
> +
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
</blockquote>
carve
- a
  - b
  +
  - c
html
<ul>
  <li>a
    <ul>
      <li>b</li>
      <li>c</li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] task
  +
  ```sh
  npm test
  ```
  - [ ] more
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task"> task
        <pre><code class="language-sh">npm test
</code></pre>
      </li>
      <li><input type="checkbox" disabled aria-label="more"> more</li>
    </ul>
  </li>
</ul>
carve
- foo
  - [ ] task
    +
    q
html
<ul>
  <li>foo
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="task + q"> task
+
q</li>
    </ul>
  </li>
</ul>
carve
- a
  - ``` =html
    +
html
<ul>
  <li>a
    <ul>
      <li>
        +
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - ``` =html
  +
html
<ul>
  <li>a
    <ul>
      <li>
        
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - b
  +
left
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
<p>left</p>
carve
- a
  - b
  +
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
carve
- a
  - b
  +
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
carve
- > a
  +
  b
html
<ul>
  <li>
    <blockquote>
      <p>a</p>
      <p>b</p>
    </blockquote>
  </li>
</ul>
carve
- x
  - > a
    +
    b
html
<ul>
  <li>x
    <ul>
      <li>
        <blockquote>
          <p>a</p>
          <p>b</p>
        </blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
- +
html
<ul>
  <li></li>
</ul>
carve
- +

para
html
<ul>
  <li></li>
</ul>
<p>para</p>
carve
- +
- b
html
<ul>
  <li></li>
  <li>b</li>
</ul>
carve
1. +
html
<ol>
  <li></li>
</ol>
carve
- [ ] +
html
<ul class="task-list">
  <li><input type="checkbox" disabled> </li>
</ul>
carve
- foo
  - +
  - b
html
<ul>
  <li>foo
    <ul>
      <li></li>
      <li>b</li>
    </ul>
  </li>
</ul>
carve
> +
flush
html
<blockquote><p>flush</p></blockquote>
carve
- a

+
- s
html
<ul>
  <li><p>a</p></li>
  <li><p>s</p></li>
</ul>
carve
> > +
flush
html
<blockquote>
  <blockquote>

  </blockquote>
</blockquote>
<p>flush</p>
carve
- a
  - - +
  > b
html
<ul>
  <li>a
    <ul>
      <li>
        <ul>
          <li></li>
        </ul>
      </li>
    </ul>
    <blockquote><p>b</p></blockquote>
  </li>
</ul>
carve
- a
  - - +
> b
html
<ul>
  <li>a
    <ul>
      <li>
        <ul>
          <li></li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<blockquote><p>b</p></blockquote>
carve
- a
  - > +
  b
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote>

        </blockquote>
      </li>
    </ul>
    b
  </li>
</ul>
carve
> > +
> b
html
<blockquote>
  <blockquote><p>b</p></blockquote>
</blockquote>
carve
- > +
# h
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<section id="h">
  <h1>h</h1>
</section>
carve
- > +
```
x
```
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- > +
| a |
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<table>
  <tbody>
    <tr><td>a</td></tr>
  </tbody>
</table>
carve
- > +
> q
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<blockquote><p>q</p></blockquote>
carve
- a
  - > +
# h
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote>

        </blockquote>
      </li>
    </ul>
  </li>
</ul>
<section id="h">
  <h1>h</h1>
</section>
carve
- ```
+
- s
html
<ul>
  <li>
    <pre><code></code></pre>
  </li>
  <li>s</li>
</ul>
carve
- a
  - > +
  # h
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote>

        </blockquote>
      </li>
    </ul>
    <h1 id="h">h</h1>
  </li>
</ul>
carve
- a
  - ```
    +
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code>+
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - ```
  +
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - ```
  x
  +
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    x
+
  </li>
</ul>
carve
- a
  - ```
  x
    +
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    x
+
  </li>
</ul>
carve
1. [ ] +
html
<ol>
  <li>[ ] +</li>
</ol>

A refused + on its own line stays text, or fence payload at the fence content column. A refused + on a marker line (- +, - [ ] +) is the same letter (markup-carve/carve#3421, carve#4409).

carve
- a
  - b
  +
tail
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
<p>tail</p>

A tab-indented nested list starts at its marker ​

1 conformance fixture

A nested list whose marker line starts with a tab is placed by the tab-expanded column, and its span starts on that line, not on the line above (markup-carve/carve-js#3309, markup-carve/carve-rs#2967).

carve
- a
	- b
	c
html
<ul>
  <li>a
    <ul>
      <li>b
c</li>
    </ul>
  </li>
</ul>

Definition body, note, and fence owner boundaries ​

6 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

These examples pin the ruled owner columns in carve#3446, carve#3448, and carve#3452.

A tabbed fence opens in a definition body, and a closer that reaches the body closes it

carve
:: t
: a
	```
  ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code></code></pre>
  </dd>
</dl>

A closer below the definition body opens a fence of its own after the body

carve
:: t
: a
	```
 ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code></code></pre>
  </dd>
</dl>
<pre><code></code></pre>

An invisible footnote keeps a marker at its body column

carve
. d
   [^n]: e
     - a
html
<ol>
  <li>d</li>
</ol>

A marker below the invisible footnote body is text of the note's open paragraph, not a sublist of the item (carve#4160)

carve
. d
   [^n]: e
    - a
html
<ol>
  <li>d
    <ul>
      <li>a</li>
    </ul>
  </li>
</ol>

A later closer at a definition fence base owns its payload

carve
:: m
: l
     ```
e
     ```
html
<dl>
  <dt>m</dt>
  <dd>
    <p>l</p>
    <pre><code></code></pre>
  </dd>
</dl>
<p>e</p>
<pre><code></code></pre>

A closer outside the definition body cannot close its fence

carve
:: m
: l
     ```
e
 ```
html
<dl>
  <dt>m</dt>
  <dd>
    <p>l</p>
    <pre><code></code></pre>
  </dd>
</dl>
<p>e</p>
<pre><code></code></pre>

Nested plus below fence and description ​

3 conformance fixtures

These cases pin the owner selected by a continuation marker at a nested column (carve#3482).

The nested item keeps the block after its open fence

carve
- - ```

  +
  x
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code>
</code></pre>
        x
      </li>
    </ul>
  </li>
</ul>

The outer item loosens while the nested item receives the quote

carve
- a
  - ```
    x

  +
  > q
html
<ul>
  <li><p>a</p>
    <ul>
      <li>
        <pre><code>x

</code></pre>
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>

The nested description keeps the attached fence

carve
:: t
:  d
   :: term
   :  detail
   +
   ```
   code
   ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <dl>
      <dt>term</dt>
      <dd>
        <p>detail</p>
        <pre><code>code
</code></pre>
      </dd>
    </dl>
  </dd>
</dl>

A folded fence run leaves a later paragraph loose ​

1 conformance fixture
carve
- o
  ```
```

  t
html
<ul>
  <li>o
    <pre><code></code></pre>
  </li>
</ul>
<pre><code>
  t
</code></pre>

A folded child fence keeps the below-column line in its paragraph ​

1 conformance fixture
carve
- o
  - h
    ```
```
html
<ul>
  <li>o
    <ul>
      <li>h
        <pre><code></code></pre>
      </li>
    </ul>
  </li>
</ul>
<pre><code></code></pre>

An unclosed fence run with no closer in its item does not hide a blank line ​

2 conformance fixtures

These rows follow up the folded fence run section (carve#3495). A fence line with no closer inside its item opens a code block (PART 9 §10 I4), so a blank line after it is payload and leaves the list tight. A line below the item column ends the fence and the item, whether it is a closer-shaped line or a letter.

A closer-shaped line below the item column ends the item and opens a fence of its own

carve
- h
  ```

  b
```
html
<ul>
  <li>h
    <pre><code>
b
</code></pre>
  </li>
</ul>
<pre><code></code></pre>

A letter below the item column ends the item the same way

carve
- o
  ```
x

  t
html
<ul>
  <li>o
    <pre><code></code></pre>
  </li>
</ul>
<p>x</p>
<p>t</p>

A line below a list item folds into the open paragraph of a div or an absorbed colon run ​

4 conformance fixtures

PART 0 S4 asks the same lazy question at every depth: a line that misses a nested item folds into the open paragraph inside its div, a line block's included (CARVE-P0-015). A bare colon run after an invalid opener opens a div, so no paragraph is left for the line below (carve#4863).

carve
- a
  - b
    ::: e
    x
y
html
<ul>
  <li>a
    <ul>
      <li>b
        <div class="e">
          <p>x
y</p>
        </div>
      </li>
    </ul>
  </li>
</ul>
carve
- m
   :::e
  :::
l
html
<ul>
  <li>m
:::e
    <div>

    </div>
  </li>
</ul>
<p>l</p>
carve
> - x
>    :::d
>   :::
- tail
html
<blockquote>
  <ul>
    <li>x
:::d
      <div>

      </div>
    </li>
  </ul>
</blockquote>
<ul>
  <li>tail</li>
</ul>
carve
- a
  - m
    :::e
    :::
l
html
<ul>
  <li>a
    <ul>
      <li>m
:::e
        <div>

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>l</p>

A lazy colon-shaped line in a quote paragraph keeps no indentation ​

3 conformance fixtures

A line with no > prefix below an open quote paragraph folds into it as a lazy line (PART 0 S4). Its leading whitespace is stripped like that of any other paragraph continuation line, so a colon-shaped line keeps none of it, whatever its width (carve#3493).

A colon-shaped lazy line below a quote paragraph that starts with colon-shaped text

carve
> :  d
   :  b
html
<blockquote><p>:  d
:  b</p></blockquote>

The same lazy line after a marker-line term ends at the quote's column

carve
> - :: t
> :  d
   :  b
html
<blockquote>
  <ul>
    <li>
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ul>
  <p>:  d
:  b</p>
</blockquote>

Six spaces of indentation are stripped the same way

carve
> :  d
      :  b
html
<blockquote><p>:  d
:  b</p></blockquote>

A first-block marker takes a list at a note's or description's marker column ​

2 conformance fixtures

Reversed by carve#4409: a list attaches in every host except a list item (CARVE-P9-067), so a list at the marker column under [^a]: + or : + is the body.

A footnote takes the list

carve
[^a]: +
- a list

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>a list</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A description takes the list

carve
:: t
: +
- a list
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a list</li>
    </ul>
  </dd>
</dl>

A separate plus after content attaches a list to a note or description ​

2 conformance fixtures

A lone + at an open container's marker column attaches the next block, and a list counts as one (PART 9 §17 L3). Only the first-block form : + or [^a]: + refuses a list (carve#3482).

A description with content takes the list after a separate +

carve
:: t
: a
+
- b
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </dd>
</dl>

A footnote with content takes the list after a separate +

carve
[^a]: x
+
- b

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x</p>
      <ul>
        <li>b</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A quote on a description body marker line takes a plus at its column ​

3 conformance fixtures

A lone + at the column of a quote that opens after : gives the quote its next block (PART 9 §17 L3, CARVE-P0-024), as it does for a quote that opens on a list item's marker line (markup-carve/carve#4223).

carve
:: t
: > a
  +
  para
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote>
      <p>a</p>
      <p>para</p>
    </blockquote>
  </dd>
</dl>

The quote takes any block there, and a wider body lead moves the column with the >.

carve
:: t
:  > a
   +
   > q
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote>
      <p>a</p>
      <blockquote><p>q</p></blockquote>
    </blockquote>
  </dd>
</dl>

A list at the quote's column attaches too: only a list item host refuses one (carve#4409).

carve
:: t
: > a
  +
  . e
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote>
      <p>a</p>
      <ol>
        <li>e</li>
      </ol>
    </blockquote>
  </dd>
</dl>

A comment line leaves a description's list item open for a fence ​

2 conformance fixtures

An invisible line does not choose the next line's owner (PART 9 §10 I5). A fence after a comment line in a description's list item stays in that item, as it would with no comment line between (carve#3518).

A line comment before the fence

carve
:: t
: 1. para
 %% c
```
x
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>para</li>
    </ol>
  </dd>
</dl>
<pre><code>x
</code></pre>

A delimited comment before the fence

carve
:: t
: 1. para
 %%%
 c
 %%%
```
x
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>para</li>
    </ol>
  </dd>
</dl>
<pre><code>x
</code></pre>

A quote-prefixed plus takes one space after each quote marker and attaches a quote ​

13 conformance fixtures

A + after quote prefixes is a marker only when every > is followed by one space, as on any quote line. >+, >>+ and >> + are not quote lines and read as text, and > >+ is a quote holding the text >+ (markup-carve/carve#3421). A marker that addresses an open container at its quote level attaches a following quote, which nests like every other block (PART 9 §17 L4). With no container there, as in > a / > + / > > q, the + stays text.

carve
> +
q
html
<blockquote><p>q</p></blockquote>
carve
> > +
q
html
<blockquote>
  <blockquote>

  </blockquote>
</blockquote>
<p>q</p>
carve
>+
q
html
<p>&gt;+
q</p>
carve
>>+
q
html
<p>&gt;&gt;+
q</p>
carve
> >+
q
html
<blockquote><p>&gt;+
q</p></blockquote>
carve
>> +
q
html
<p>&gt;&gt; +
q</p>
carve
> q
>+
> para
html
<blockquote><p>q
&gt;+
para</p></blockquote>
carve
> > q
> +
> > r
html
<blockquote>
  <blockquote>
    <p>q</p>
    <blockquote><p>r</p></blockquote>
  </blockquote>
</blockquote>
carve
> - a
> +
> > r
html
<blockquote>
  <ul>
    <li>a
      <blockquote><p>r</p></blockquote>
    </li>
  </ul>
</blockquote>
carve
> > - a
> +
> para
html
<blockquote>
  <blockquote>
    <ul>
      <li>a</li>
    </ul>
    <p>para</p>
  </blockquote>
</blockquote>
carve
> a
> +
> > q
html
<blockquote>
  <p>a
+</p>
  <blockquote><p>q</p></blockquote>
</blockquote>

A description or a note inside the quote takes the marker at its own marker column the same way.

carve
> :: t
> : a
> +
> > q
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>
      <p>a</p>
      <blockquote><p>q</p></blockquote>
    </dd>
  </dl>
</blockquote>
carve
> [^a]: a
> +
> > q

r[^a]
html
<blockquote>

</blockquote>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a</p>
      <blockquote><p>q</p></blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A quote opened on its own line in an item takes the first-block form ​

2 conformance fixtures

A > + that opens a quote on its own line inside a list item attaches the following block at the quote's column to that quote, as it would for a quote opened at the start of a document. An item's content is read like a document, so the first-block form of CARVE-P9-067 covers a quote opened there (carve#3421).

The ruled shape

carve
- a
  > +
  q
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

A nested item in an ordered list, with a table as the attached block

carve
1. a
   - b
     > +
     | c |
html
<ol>
  <li>a
    <ul>
      <li>b
        <blockquote>
          <table>
            <tbody>
              <tr><td>c</td></tr>
            </tbody>
          </table>
        </blockquote>
      </li>
    </ul>
  </li>
</ol>

A quote opened on an item's marker line attaches a quote at its own depth ​

3 conformance fixtures

A > + under a stacked quote opened on a list item's or description's first line reads like its top-level twin: the attached quote nests in the quote the + names (CARVE-P0-024, carve#3421).

The marker-line form

carve
- > > q
  > +
  > > r
html
<ul>
  <li>
    <blockquote>
      <blockquote>
        <p>q</p>
        <blockquote><p>r</p></blockquote>
      </blockquote>
    </blockquote>
  </li>
</ul>

The outer quote names the marker

carve
- > > > q
  > +
  > > r
html
<ul>
  <li>
    <blockquote>
      <blockquote>
        <blockquote><p>q</p></blockquote>
        <blockquote><p>r</p></blockquote>
      </blockquote>
    </blockquote>
  </li>
</ul>

A quote opened on a description's first line, with an indented opener

carve
:: t
: > > q
  > +
  > > r
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote>
      <blockquote>
        <p>q</p>
        <blockquote><p>r</p></blockquote>
      </blockquote>
    </blockquote>
  </dd>
</dl>

A first-block plus refuses a follower at an intervening column ​

5 conformance fixtures

A first-block + takes a follower only at its host's marker column, read through the prefixes of the quotes around the host (CARVE-P9-067, carve#3421, carve#4409). A follower at any other column refuses the marker, and the + then reads like a letter at its column: the follower folds lazily into the paragraph the + starts.

A stacked list and quote opener refuses a follower one column in, and the + folds with it

carve
- > +
 b
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<p>b</p>

In a nested item, a follower left of the opener line's column is refused

carve
- a
  - > +
 b
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote>

        </blockquote>
      </li>
    </ul>
  </li>
</ul>
<p>b</p>

In a nested item, a follower between the opener line's column and the quote's column is refused

carve
- a
  - > +
   b
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote>

        </blockquote>
      </li>
    </ul>
    b
  </li>
</ul>

A > at the inner quote's marker column is no outer prefix, so the follower is refused

carve
> > +
  > q
html
<blockquote>
  <blockquote>

  </blockquote>
  <p>q</p>
</blockquote>

The same lines inside a list item are refused the same way: the follower's > stands at document column 4, the inner quote's marker column (carve#3935)

carve
- a
  > > +
    > q
html
<ul>
  <li>a
    <blockquote>
      <blockquote>

      </blockquote>
      <p>q</p>
    </blockquote>
  </li>
</ul>

A wrapped attribute line interrupts like a one-line attribute line ​

4 conformance fixtures

A block attribute interrupts when every continuation carries its container prefixes, reaches the body column and passes the brace column. The historical short continuations below refuse, leaving only their opener literal (CARVE-P2-035, carve#5830).

A refused wrapped run below an item paragraph stays text before the fence

carve
- a
{.c
}
~~~
y
~~~
html
<ul>
  <li>a
{.c
}</li>
</ul>
<pre><code>y
</code></pre>

A wrapped class list, the paragraph form

carve
- a
{.c
.d}
para
html
<ul>
  <li>a
{.c
.d}
para</li>
</ul>

Below a refused + under a stacked lead

carve
- - ```
  +
{.c
}
~~~
y
~~~
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </li>
</ul>
<p>{.c
}</p>
<pre><code>y
</code></pre>

Below a description

carve
:: t
: d
{.c
}
para
html
<dl>
  <dt>t</dt>
  <dd>d
{.c
}
para</dd>
</dl>

A stacked first-block plus takes a follower only at its innermost opener's marker column ​

3 conformance fixtures

On a line of stacked openers the innermost opener owns the +, and only its marker column takes a follower (CARVE-P9-067, carve#4409). Column 0 and the line's own column have no reach of their own. At any other column the + is refused and reads like a letter at its column (carve#3421).

A follower at the inner item's column refuses the quote's +, which then folds with it like a letter

carve
- - > +
  b
html
<ul>
  <li>
    <ul>
      <li>
        <blockquote>

        </blockquote>
      </li>
    </ul>
    b
  </li>
</ul>

The same follower below a stacked list opener stands at the inner item's marker column and attaches

carve
- - +
  b
html
<ul>
  <li>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

Nested one level, a follower at the opener line's own column is refused, since the quote owns the +

carve
- a
  - - > +
  b
html
<ul>
  <li>a
    <ul>
      <li>
        <ul>
          <li>
            <blockquote>

            </blockquote>
          </li>
        </ul>
      </li>
    </ul>
    b
  </li>
</ul>

A quote's first-block plus takes a list that carries its quote prefixes at its marker column ​

3 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

Reversed by carve#4409: a list attaches in every host except a list item (CARVE-P9-067), so a quote's + takes a list at its marker column that carries the prefixes of the quotes around it. A list line without them refuses the +, which reads like a letter, and folds into its paragraph.

Inside a host quote's list item, a list with every prefix at the nested quote's marker column attaches

carve
> - > q
>   > > +
>   > - s
html
<blockquote>
  <ul>
    <li>
      <blockquote>
        <p>q</p>
        <blockquote>
          <ul>
            <li>s</li>
          </ul>
        </blockquote>
      </blockquote>
    </li>
  </ul>
</blockquote>

A quote opened on an item's marker line inside a host quote refuses a column-0 list

carve
> - > +
- s
html
<blockquote>
  <ul>
    <li>
      <blockquote>

      </blockquote>
    </li>
  </ul>
</blockquote>
<ul>
  <li>s</li>
</ul>

A stacked quote opener in an item refuses a list at the item's column

carve
- > > +
  - s
html
<ul>
  <li>
    <blockquote>
      <blockquote>

      </blockquote>
    </blockquote>
    <ul>
      <li>s</li>
    </ul>
  </li>
</ul>

A wrapped attribute line opened at a container's column is one construct ​

10 conformance fixtures

A block attribute opened at a container's column remains one construct only when every continuation passes its opening { column (CARVE-P2-035). The historical closer and token lines below fall short, so the runs become paragraph text. A deeper continuation retains the one-line attribute reading.

A closer at column 0 refuses the attribute run

carve
- a
  {.c
}
para
html
<ul>
  <li>a
{.c
}
para</li>
</ul>

A closer at column 1 also falls short of the opening column

carve
- a
  {.c
 }
para
html
<ul>
  <li>a
{.c
}
para</li>
</ul>

A token continuation at column 0 also refuses the run

carve
- a
  {.c
.d}
para
html
<ul>
  <li>a
{.c
.d}
para</li>
</ul>

A blank line before the attribute changes nothing

carve
- a

  {.c
}
para
html
<ul>
  <li><p>a</p>
    <p>{.c
}
para</p>
  </li>
</ul>

The description twin reads the same

carve
:: t
: d
  {.c
}
para
html
<dl>
  <dt>t</dt>
  <dd>d
{.c
}
para</dd>
</dl>

In a nested list the attribute is one construct for the outer item too, and para stays at document level

carve
- a
  - b
    {.c
}
para
html
<ul>
  <li>a
    <ul>
      <li>b
{.c
}
para</li>
    </ul>
  </li>
</ul>

A nested item in a definition body leaves the following paragraph at document level

carve
:: t
: - a
    {.c
}
para
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a
{.c
}
para</li>
    </ul>
  </dd>
</dl>

A nested item after a blank line in a definition body does the same

carve
:: t
: d

  - a
    {.c
}
para
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <ul>
      <li>a
{.c
}
para</li>
    </ul>
  </dd>
</dl>

A quoted nested item keeps its prefix on the closer

carve
> - a
>   {.c
> }
para
html
<blockquote>
  <ul>
    <li>a
{.c
}
para</li>
  </ul>
</blockquote>

A closer that drops the quote prefix stays literal text

carve
> - a
>   {.c
}
para
html
<blockquote>
  <ul>
    <li>a
{.c
}
para</li>
  </ul>
</blockquote>

A wrapped attribute opener indented in a body is an attribute line ​

4 conformance fixtures

A wrapped { ... } attribute can open at any column in its owner, but its continuation must pass that opening column (CARVE-P2-035). The historical examples below close at column 0, so the whole run is paragraph text. The one-line form and a deeper closer remain attribute lines under PART 9 §15 A5.

carve
:: t
: d
   {c
}
a
html
<dl>
  <dt>t</dt>
  <dd>d
{c
}
a</dd>
</dl>
carve
:: t
: d
 {c
}
html
<dl>
  <dt>t</dt>
  <dd>d
{c
}</dd>
</dl>
carve
- d
   {.c
}
para
html
<ul>
  <li>d
{.c
}
para</li>
</ul>
carve
- a
   {.c
}
}
html
<ul>
  <li>a
{.c
}
}</li>
</ul>

A quote follower below stacked quote openers in an item is read at its raw column ​

2 conformance fixtures

Below - > > + the inner quote owns the +. A follower must carry the outer quote's > at column 2 and stand at column 4 (CARVE-P9-067, carve#4409). A > at column 0 is no such prefix, so the + is refused and the line opens its own quote outside the list.

A quote at column 0 is refused and stands outside the list

carve
- > > +
> q
html
<ul>
  <li>
    <blockquote>
      <blockquote>

      </blockquote>
    </blockquote>
  </li>
</ul>
<blockquote><p>q</p></blockquote>

A > at the item's content column is the outer quote's prefix, so q attaches to the inner quote

carve
- > > +
  > q
html
<ul>
  <li>
    <blockquote>
      <blockquote><p>q</p></blockquote>
    </blockquote>
  </li>
</ul>

A hosted quote's first-block plus refuses a block without the host quote's prefix ​

3 conformance fixtures

Reversed by carve#4409: below > - > + a block at column 0 lacks the host quote's prefix, so the + is refused (CARVE-P9-067). The unprefixed line ends the host quote (§10 I5) and the block stands outside it.

A heading at column 0 stands outside the host quote

carve
> - > +
# h
html
<blockquote>
  <ul>
    <li>
      <blockquote>

      </blockquote>
    </li>
  </ul>
</blockquote>
<section id="h">
  <h1>h</h1>
</section>

A table row at column 0 stands outside the host quote

carve
> - > +
| c |
html
<blockquote>
  <ul>
    <li>
      <blockquote>

      </blockquote>
    </li>
  </ul>
</blockquote>
<table>
  <tbody>
    <tr><td>c</td></tr>
  </tbody>
</table>

A stacked opener on a sibling item's line refuses the heading the same way

carve
> - a
> - > +
# h
html
<blockquote>
  <ul>
    <li>a</li>
    <li>
      <blockquote>

      </blockquote>
    </li>
  </ul>
</blockquote>
<section id="h">
  <h1>h</h1>
</section>

The column of the quote that owns a first-block plus stays eligible at every depth ​

3 conformance fixtures

The column of the quote that owns the + is its marker column and is eligible at every stacking depth, as it is for - > +, when the follower carries the prefixes of any quotes around it (CARVE-P9-067, carve#3421, carve#4409). A follower at an inner item's column stays refused (corpus 651).

A follower at the quote's column below - - > + attaches

carve
- - > +
    b
html
<ul>
  <li>
    <ul>
      <li>
        <blockquote><p>b</p></blockquote>
      </li>
    </ul>
  </li>
</ul>

One level deeper, a follower at the quote's column attaches too

carve
- - - > +
      b
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <blockquote><p>b</p></blockquote>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

Below stacked quote openers the innermost quote owns the +, and a follower at its column without the outer quote's prefix is refused

carve
- > > +
    b
html
<ul>
  <li>
    <blockquote>
      <blockquote>

      </blockquote>
    </blockquote>
    b
  </li>
</ul>

A description separator left of its item's column folds into the definition body ​

4 conformance fixtures

A : separator one column in, below the content column of the list item that holds the definition list, opens nothing in the surviving context. It is not a separator but plain text, and lazy continuation folds it into the innermost open paragraph, the definition body (CARVE-P9-083, PART 9 §10 I2; carve#3547).

carve
- item

  :: Term
  :  Def
 :  under
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>Term</dt>
      <dd>Def
:  under</dd>
    </dl>
  </li>
</ul>

At column 0 the line is a document-level separator with no term above it in the document. It ends the item, and the line opens a paragraph (carve#3451).

carve
- item

  :: Term
  :  Def
:  under
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>Term</dt>
      <dd>Def</dd>
    </dl>
  </li>
</ul>
<p>:  under</p>

A blank line closes the definition body's paragraph, so nothing is left for the line to fold into. Below the item's column it ends the list.

carve
- item

  :: Term
  :  Def

 :  under
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>Term</dt>
      <dd>Def</dd>
    </dl>
  </li>
</ul>
<p>:  under</p>

A tight item reads the column-1 line the same way.

carve
- item
  :: Term
  :  Def
 :  under
html
<ul>
  <li>item
    <dl>
      <dt>Term</dt>
      <dd>Def
:  under</dd>
    </dl>
  </li>
</ul>

A definition marker line keeps a straddling tab's residual columns ​

1 conformance fixture

PART 9 §24 C5 strips a container's indent by columns and, on a list-marker line, re-inserts the columns a straddling tab leaves past the strip as spaces. A :: term line and a : description line are list-marker lines too (carve#3550). The tab before :: t reaches column 4 and the description body strips two of those columns, so the two left over put the nested term two columns into the body. : zq sits at the body's own column, left of that term, so it ends the nested list and stays text. Consuming the tab whole would put the term at the body's column and make zq its description.

carve
:: a
: b
	:: t
  : zq
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>t</dt>
      <dd>zq</dd>
    </dl>
  </dd>
</dl>

An invisible fenced block is not a list paragraph ​

1 conformance fixture

A blank before a fenced percent block does not make the block a second paragraph. The opener, payload, and closer are classified as one block before list looseness is decided.

carve
- intro

   %%%
   hidden
   %%%
html
<ul>
  <li>intro</li>
</ul>

Lists ​

24 conformance fixtures

A marker is a list item only when followed by a space and content. A content-less marker — bare (-) or trailing whitespace only (- ) — is not a list; it stays paragraph text. The rule ignores trailing whitespace, so - and - behave the same (an editor stripping the space can't change the meaning). Carve is stricter than CommonMark, where a bare - is an empty item.

carve
-
not a list
html
<p>-
not a list</p>

The same holds for every marker that takes a separator space, not just bullets. A definition term needs content too, and here the trailing-whitespace half of the rule is what matters: :: and :: with two spaces after it must mean the same thing, or stripping whitespace on save would turn a paragraph into a definition list.

carve
::
html
<p>::</p>

An ordered list nests the same way — a child indented to the parent's content column (three spaces under 1. ) is a sub-list, even though an ordered marker does not interrupt a paragraph (§10).

carve
1. outer
   1. inner
html
<ol>
  <li>outer
    <ol>
      <li>inner</li>
    </ol>
  </li>
</ol>

An ordered child below the content column does not nest: an ordered marker does not interrupt a paragraph (§10), so it folds into the item as lazy text.

carve
1. outer
  1. inner
html
<ol>
  <li>outer</li>
  <li>inner</li>
</ol>

After a blank line the same content-column rule applies: a continuation belongs to the item only if it reaches the item's content column (three columns under 1. ), exactly as without a blank. The blank line only decides whether the item is tight or loose; it never relaxes the column a block must reach. A block opener at the content column attaches, and like a second paragraph it loosens the list (PART 9 §17 L1).

carve
1. one

   > q
html
<ol>
  <li><p>one</p>
    <blockquote><p>q</p></blockquote>
  </li>
</ol>

Below the content column the line is outside the item body: the list ends and the block parses at document level. A two-column indent is not enough under an ordered marker whose content column is three — the same threshold the no-blank case uses.

carve
1. one

  > q
html
<ol>
  <li>one</li>
</ol>
<blockquote><p>q</p></blockquote>

Past the content column, a recognized opener uses its authored column as a temporary block base. Extra indentation is accepted inside list items and canonical output moves the opener back to the content column.

carve
1. one

    > q
html
<ol>
  <li><p>one</p>
    <blockquote><p>q</p></blockquote>
  </li>
</ol>

A list marker does not interrupt an open paragraph — like an ordered marker, a bullet needs a blank line before it. An indented bullet after a prose line folds into the paragraph (lazy continuation).

carve
text
  - item
html
<p>text
- item</p>

With no preceding paragraph, an indented bullet simply opens a list whose base column is the indentation (Rule B).

carve
  - a
  - b
html
<ul>
  <li>a</li>
  <li>b</li>
</ul>

A blank line between items produces a loose list — each item wraps in a paragraph.

carve
- apples

- oranges
html
<ul>
  <li><p>apples</p></li>
  <li><p>oranges</p></li>
</ul>

A paragraph ends at a blank line — or at a line that begins an interrupting block. A continuation line that starts with >, a valid |…| table row, a heading #, a thematic break, or a fence with a closer interrupts the paragraph and starts that block, with no blank line required (the Markdown-like rule; §10). A list marker is the exception: neither a bullet (- / * ) nor an ordered marker (1., 1), a., …) interrupts — a list needs a blank line before it (symmetric, Djot-like). So a hard-wrapped prose line that happens to begin with a bullet stays prose; the bullet lines fold into the paragraph as lazy continuation.

carve
Die Frage ist x = 5
* 3 + 17 wahr.
html
<p>Die Frage ist x = 5
* 3 + 17 wahr.</p>

A heading under a prose line still interrupts it; a list — bullet or ordered — does not, so these fold into one paragraph.

carve
Liste:
- eins
- zwei
html
<p>Liste:
- eins
- zwei</p>

A blank line before the marker makes it a list, even with one item.

carve
Text hier

- nur eins
html
<p>Text hier</p>
<ul>
  <li>nur eins</li>
</ul>

A blockquote needs a blank line before it like any block; its caption line then attaches and the pair renders as a figure.

carve
Intro

> Stay hungry
^ Steve Jobs
html
<p>Intro</p>
<figure>
  <blockquote><p>Stay hungry</p></blockquote>
  <figcaption>Steve Jobs</figcaption>
</figure>

After a lazy continuation line, a marker at the content column resumes the same sub-list rather than starting a new one (§10).

carve
1. outer
   1. inner
lazy
   2. sibling
html
<ol>
  <li>outer
    <ol>
      <li>inner
lazy</li>
      <li>sibling</li>
    </ol>
  </li>
</ol>

A blank line is not a list boundary, so the ORDERED spelling loosens exactly as the bullet one does: the marker after the blank is still a sibling of the same list. §11 N1's axes are the bullet character, the ordered-marker alternative, the delimiter and plain-vs-task - a blank line is not among them - and §17 L1 reads "a blank line before the next sibling marker", which is a statement about tightness, not about where the list ends.

carve
1. apples

2. oranges
html
<ol>
  <li><p>apples</p></li>
  <li><p>oranges</p></li>
</ol>

A run of three or more blank lines is a hard list boundary (§11 N1a): the marker after it opens a new sibling list even though every N1 axis matches. One blank line still loosens, and so does two - the boundary is deliberately set above the run lengths documents already contain.

carve
- apples



- oranges
html
<ul>
  <li>apples</li>
</ul>
<ul>
  <li>oranges</li>
</ul>

The boundary applies at every level, not only the top one - a sub-list written at an item's content column separates from the one above it on the same run. That shape had no corpus pair when the clause landed, because the canonical writer could not spell it. It can now, and the pairs are at the end of this section.

The run denies a following sibling marker the right to join; it does not end the item. A continuation that reaches the item's content column still continues it, at any run length.

carve
- apples



  still apples
html
<ul>
  <li><p>apples</p>
    <p>still apples</p>
  </li>
</ul>

§11 N1a's boundary below the top level, and what the writer does with it. The clause is unrestricted, so a sub-list separates from the one above it on the same run - but the writer could not spell that until markup-carve/carve#1501: its tight-item join wrote both sub-lists at the item's MARKER column, which is column 0, and a compatible marker there dissolves them into the list around the item rather than attaching them to it. All three engine mainlines write them at the item's CONTENT column now, so these four pairs pin the reading and the .fmt sidecars beside them pin the spelling. The build this repository PINS is older than that fix and is declared behind on all four, in both engine ledgers, until the pin moves.

carve
- outer

  - a



  - b
html
<ul>
  <li><p>outer</p>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

The blank line after - outer is not part of the boundary, but it loosens the item (PART 9 §17 L1), so the sidecar shows the writer keeping it, with both sub-lists and the boundary between them.

A source whose run is LONGER than three is what tells a writer that preserves the boundary apart from one that copies its input, because §10i fixes the written run at exactly three whatever the author typed. The HTML is the same either way, so the .fmt sidecar is again what measures it. This is the nested twin of the top-level six-blank case.

carve
- outer

  - a






  - b
html
<ul>
  <li><p>outer</p>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

An item with a second paragraph before the sub-lists takes the same boundary.

carve
- outer

  para

  - a



  - b
html
<ul>
  <li><p>outer</p>
    <p>para</p>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

An item is not the only host with a content column. Inside a quote the boundary is spelled with the quote's own blank line, which is a bare > - an empty line would end the quote and take the second list out of it - and one level deeper it is > >. Only a sidecar can hold that: the marker lines carry NO trailing space, PART 11 §7 forbids one, and neither the HTML nor a check for whitespace-ONLY lines can tell > > from > > .

carve
> > - a
> >
> >
> >
> > - b
html
<blockquote>
  <blockquote>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </blockquote>
</blockquote>

In the plain-text and ANSI targets an item's continuation blocks keep the item's content column, the same two-space step a nested item takes (PART 11 §10h2). The .txt and .ansi sidecars hold those outputs.

carve
- item one

  second para

  ```
  code
  ```

  > quote

  - nested
html
<ul>
  <li><p>item one</p>
    <p>second para</p>
    <pre><code>code
</code></pre>
    <blockquote><p>quote</p></blockquote>
    <ul>
      <li>nested</li>
    </ul>
  </li>
</ul>

An ordered marker does not widen the column: 1. still puts its blocks at column 2, and the nested item's blocks go to column 4. The blank line inside the code block stays empty.

carve
1. setup

   para

   - nested

     deep para

     ```
     a

     b
     ```

2. build
html
<ol>
  <li><p>setup</p>
    <p>para</p>
    <ul>
      <li><p>nested</p>
        <p>deep para</p>
        <pre><code>a

b
</code></pre>
      </li>
    </ul>
  </li>
  <li><p>build</p></li>
</ol>

Ordered marker vs prose ​

1 conformance fixture

Letter and roman markers are ambiguous: a lone a. in running prose stays text (it would need a blank line before, a sibling marker, or indentation to start a list). Decimal markers always start a list.

carve
Pick option a. it is the best one here.
html
<p>Pick option a. it is the best one here.</p>

Parenthesized ordered marker ​

1 conformance fixture

Carve's ordered markers use the . and ) delimiters only; a parenthesized (1) is not a list marker (it is too easily confused with a prose parenthetical), so it stays literal text.

carve
(1) First
(2) Second
html
<p>(1) First
(2) Second</p>

List nesting and looseness ​

9 conformance fixtures

A more-indented marker nests a sublist inside the item.

carve
- a
  - b
  - c
- d
html
<ul>
  <li>a
    <ul>
      <li>b</li>
      <li>c</li>
    </ul>
  </li>
  <li>d</li>
</ul>

A blank line between items makes the list loose (each item wraps in <p>).

carve
- a

- b
html
<ul>
  <li><p>a</p></li>
  <li><p>b</p></li>
</ul>

An item with a second paragraph is loose; the continuation is indented under the marker.

carve
- a

  more
- b
html
<ul>
  <li><p>a</p>
    <p>more</p>
  </li>
  <li><p>b</p></li>
</ul>

A flush-left line after a heading cannot stay in the item that ends on that heading: the heading leaves no paragraph open. No enclosing frame adopts it either - a line below an item's content column is not that item's content, so the list closes and the line is a document paragraph (markup-carve/carve#2884). What it does not do is fold into the heading: a heading ends at the newline (§18), and its id is built from the heading line alone.

carve
- a
  - b
    # N
lazy
html
<ul>
  <li>a
    <ul>
      <li>b
        <h1 id="N">N</h1>
      </li>
    </ul>
  </li>
</ul>
<p>lazy</p>

A blank line inside a fenced code block is verbatim content, not an interior block separator, so it does not loosen the list — a sibling item after such a fence stays tight because no blank line actually separates the two items.

carve
- ```
  a

  b
  ```
- c
html
<ul>
  <li>
    <pre><code>a

b
</code></pre>
  </li>
  <li>c</li>
</ul>

Plain text on the line after a fenced code block closes is the item's own trailing text. With no blank line anywhere the item stays tight, so that text is not wrapped in a paragraph.

carve
- ```
  x
  ```
  after
html
<ul>
  <li>
    <pre><code>x
</code></pre>
    after
  </li>
</ul>

A bullet's content column is where the marker actually ends, not a fixed 2. A bullet followed by extra spaces puts its content further right, and a block belongs to the item only if it reaches that column.

carve
-   item
    # Wide
html
<ul>
  <li>item
    <h1 id="Wide">Wide</h1>
  </li>
</ul>

Below that column the line is lazy paragraph text instead, so its marker survives literally — the same content-column rule as everywhere else, measured from the marker rather than assumed.

carve
-   item
  # H
html
<ul>
  <li>item</li>
</ul>
<section id="H">
  <h1>H</h1>
</section>

A task item's content column stays at 2. The checkbox is content rather than marker, and extra spaces before it do not move the minimum column. A recognized heading at column 4 therefore uses column 4 as its authored base.

carve
-   [ ] item
    # H
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="item"> item
    <h1 id="H">H</h1>
  </li>
</ul>

List lazy continuation ​

10 conformance fixtures

A non-indented line that follows a list item folds into the item's lead paragraph when it is plain paragraph text and has no blank line before it. A blank line, or a line that starts a block (heading, blockquote, fenced code, thematic break, table, div, a definition), ends the list instead.

carve
- item
lazy
html
<ul>
  <li>item
lazy</li>
</ul>
carve
- a
# H
html
<ul>
  <li>a</li>
</ul>
<section id="H">
  <h1>H</h1>
</section>

An under-indented continuation line after a nested sublist still folds into the deepest open paragraph (CommonMark lazy continuation); its indentation does not place it at an intermediate level. A blank line before it makes it a fresh paragraph instead.

carve
- a
  - b
 c
html
<ul>
  <li>a
    <ul>
      <li>b
c</li>
    </ul>
  </li>
</ul>
carve
- a
  - b
    - c
   d
html
<ul>
  <li>a
    <ul>
      <li>b
        <ul>
          <li>c
d</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - b

 c
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
<p>c</p>

Lazy continuation only ever extends an open paragraph. After a block inside an item, a dedented line therefore folds in only when that block leaves a paragraph open. A blockquote's trailing paragraph is open, so the line folds into the quote:

carve
- item
  > q
tail
html
<ul>
  <li>item
    <blockquote><p>q
tail</p></blockquote>
  </li>
</ul>

A fenced code block leaves no open paragraph, so a dedented line ends the item and starts a top-level block instead of joining the item:

carve
- item
  ```
  c
  ```
tail
html
<ul>
  <li>item
    <pre><code>c
</code></pre>
  </li>
</ul>
<p>tail</p>

A table is the same — no open paragraph, so the dedented line is a fresh top-level paragraph:

carve
- item
  | a | b |
tail
html
<ul>
  <li>item
    <table>
      <tbody>
        <tr><td>a</td><td>b</td></tr>
      </tbody>
    </table>
  </li>
</ul>
<p>tail</p>

A colon fence that is not a valid opener is ordinary paragraph text and leaves no state. :::note has no space between the fence and the type word, so §12's opener test rejects it. The bare ::: below it is read on its own (carve#4863): it interrupts the item's paragraph and opens an empty div, which leaves no paragraph for tail, so tail ends the item:

carve
- item
  :::note
  body
  :::
tail
html
<ul>
  <li>item
:::note
body
    <div>

    </div>
  </li>
</ul>
<p>tail</p>

Give the same fence its space and the two lines between become its body. Written ::: note, it interrupts the item's paragraph, its closer completes the block, and tail again ends the item, exactly as after the fenced code block and the table above.

The neighboring shapes read the same way. Indenting the lazy line to column 1 changes nothing, since it is still below the content column. The malformed fence may be the paragraph's FIRST line, written on the marker line itself (- :::note). Inside a block quote, > tail supplies the quote's prefix but not the item's indentation. tests/colon-fence-absorbed-in-an-item.test.mjs pins them.

The same rule reaches a list item's second paragraph. The blank before spaced makes the item loose, but it does not close the paragraph that spaced opens. The following flush-left line therefore folds into that innermost paragraph; paragraph depth does not create a special boundary.

carve
1. item

   spaced
flush
html
<ol>
  <li><p>item</p>
    <p>spaced
flush</p>
  </li>
</ol>

Compact list blocks ​

10 conformance fixtures

The section title names the reading carve#5015 withdrew (PART 9 §17 L2). A blank line before an item's sub-block (sub-list, block quote, fenced code, fenced div, heading, table) now loosens the list, as a blank before a second paragraph does (§17 L1). To keep a checklist with notes or steps with code compact, write the block without the blank line.

carve
- item

  > note
- next
html
<ul>
  <li><p>item</p>
    <blockquote><p>note</p></blockquote>
  </li>
  <li><p>next</p></li>
</ul>

A sub-list is one of those blocks: the blank stands between the item's lead and its sub-list, so the whole list is loose.

carve
- fruit

  - apples
- vegetables
html
<ul>
  <li><p>fruit</p>
    <ul>
      <li>apples</li>
    </ul>
  </li>
  <li><p>vegetables</p></li>
</ul>

A genuine second prose paragraph still makes the list loose (and so does a blank line between items).

carve
- item

  second para
- next
html
<ul>
  <li><p>item</p>
    <p>second para</p>
  </li>
  <li><p>next</p></li>
</ul>

An invisible construct does not loosen: §17 L1 asks whether the item holds a blank-line-separated second block, and a comment or a definition is not a block - it renders nothing at all. An item wrapped in <p> because of a line that produces no output would be the blank line showing through.

carve
- a

  %% just a note
html
<ul>
  <li>a</li>
</ul>

The same for a definition, which is collected and renders nothing where it stood.

carve
- a

  [r]: /u
html
<ul>
  <li>a</li>
</ul>

A sibling item after it is a different question, and there the list is loose: L1's other clause asks whether an item is followed by a blank line before the next sibling marker, and it is - an invisible line in the gap does not fill it.

carve
- a

  %% just a note
- b
html
<ul>
  <li><p>a</p></li>
  <li><p>b</p></li>
</ul>

A paragraph inside an item carries block attributes like any other, and the attribute line sits above it exactly as it does at document level.

carve
- a

  first

  {.c}
  second
html
<ul>
  <li><p>a</p>
    <p>first</p>
    <p class="c">second</p>
  </li>
</ul>

The attribute still reaches its paragraph across a blank line, exactly as it does at document level: §15 A2a floats it to the next visible block, and a blank is not a block. The item is loose because that paragraph is a real second one, not because of the attribute line.

carve
- a

  {.c}

  b
html
<ul>
  <li><p>a</p>
    <p class="c">b</p>
  </li>
</ul>

On its own, though, an attribute line leaves the item tight — it renders nothing, so it is not the second block §17 L1 asks for, the same reason a comment or a definition is not.

carve
- a

  {.c}
html
<ul>
  <li>a</li>
</ul>

One column further in, the recognized attribute opener uses that authored column as a temporary block base. It remains invisible and the item remains tight.

carve
- a

   {.c}
html
<ul>
  <li>a</li>
</ul>

Marker-line nested lists ​

4 conformance fixtures

A sub-list opened on a parent item's marker line (- - A) is an ordinary persistent nested list, exactly as if the sub-marker sat on its own indented line. It is not a one-off lone item. This matches reference djot.js (@djot/djot) and CommonMark; carve previously inherited a narrower reading from djot-php that did not persist the nested list.

Following markers at the sub-list's indent merge into the same nested list, so - - A then - B and - C yields one list with three items.

carve
- - A
  - B
  - C
html
<ul>
  <li>
    <ul>
      <li>A</li>
      <li>B</li>
      <li>C</li>
    </ul>
  </li>
</ul>

A blank line followed by a block indented to the sub-list's content column is absorbed into the open nested item, just like any list item's lazy continuation. Here the first sub-item gains a second paragraph and the list is loose.

carve
- - A

    second
  - B
html
<ul>
  <li>
    <ul>
      <li><p>A</p>
        <p>second</p>
      </li>
      <li><p>B</p></li>
    </ul>
  </li>
</ul>

One column further out the same blank belongs to the OUTER item: second sits at the outer item's content column, so that item holds two blocks - the sub-list and a paragraph - and goes loose. The lead being a marker line is not part of the looseness test.

carve
- - A

  second
html
<ul>
  <li>
    <ul>
      <li>A</li>
    </ul>
    <p>second</p>
  </li>
</ul>

Flush left, the blank has closed the sub-item's paragraph and the line is below every open item's content column, so the list ends and the text is a document-level paragraph. Without the blank the same line would fold into the sub-item as lazy continuation.

carve
- - A

second
html
<ul>
  <li>
    <ul>
      <li>A</li>
    </ul>
  </li>
</ul>
<p>second</p>

Fence opener with a nested-list body inside a list item ​

7 conformance fixtures

A ::: opener inside a list item opens its block even when its body is a nested list (PART 9 §12). A bullet (-) or ordered marker (1.) on the next line is part of the admonition body, not a sibling list that swallows the opener as literal text. The matching closer sits at the item content column; a ::: at column zero (outside the item) does not close it. The closer is OPTIONAL here as everywhere (PART 2): an opener with none ahead of it still opens, and the container closes at end of input.

A nested unordered list body is wrapped by the admonition:

carve
- ::: note
  - para text
  :::
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <ul>
        <li>para text</li>
      </ul>
    </aside>
  </li>
</ul>

A nested ordered list body is wrapped the same way:

carve
- ::: note
  1. para text
  :::
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <ol>
        <li>para text</li>
      </ol>
    </aside>
  </li>
</ul>

A two-item nested list is wrapped whole:

carve
- ::: note
  - one
  - two
  :::
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <ul>
        <li>one</li>
        <li>two</li>
      </ul>
    </aside>
  </li>
</ul>

A blank line between the opener and the nested list still opens the block:

carve
- ::: note

  - para text
  :::
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <ul>
        <li>para text</li>
      </ul>
    </aside>
  </li>
</ul>

With NO closer, the opener still opens and the container closes at end of input, so the nested list is wrapped exactly as it is with a closer at the item content column. This label used to read the other way, calling the opener literal text under bytes that show it opening (carve#1722):

carve
- ::: note
  - para text
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <ul>
        <li>para text</li>
      </ul>
    </aside>
  </li>
</ul>

NEGATIVE: a closer at column zero is outside the item, so it does not close the opener. The opener still opens its admonition, which closes at end of input, and the stray ::: opens a second, top-level div with an empty body:

carve
- ::: note
  - para text
:::
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <ul>
        <li>para text</li>
      </ul>
    </aside>
  </li>
</ul>
<div>

</div>

GUARD: an empty body (opener immediately followed by its closer) still opens:

carve
- ::: note
  :::
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">

    </aside>
  </li>
</ul>

Sublist marker interrupts a continuation paragraph ​

2 conformance fixtures

A list marker reaching a list item's content column always starts a sublist, even when the item holds an open continuation paragraph (PART 0 S3, PART 9 §24 C3). The general rule that list markers never interrupt a paragraph applies to markers below the content column (lazy continuation) and at the top level — not to a correctly indented sublist marker.

carve
- first

  second
  - nested
html
<ul>
  <li><p>first</p>
    <p>second</p>
    <ul>
      <li>nested</li>
    </ul>
  </li>
</ul>

Ordered markers behave identically (the symmetric list rule): an ordered marker at the content column nests.

carve
- first

  second
  1. nested
html
<ul>
  <li><p>first</p>
    <p>second</p>
    <ol>
      <li>nested</li>
    </ol>
  </li>
</ul>

Post-blank list continuation (content-column model) ​

5 conformance fixtures

A block opener or sublist marker attaches to a list item when it reaches at least the item's content column (§24 C3): - -> column 2, 1. -> column 3. One rule, blank line or not - the blank only decides tight vs loose. Below the content column a line lazily continues the item paragraph (no blank) or, after a blank, ends the item and parses at document level. Past the column, a recognized opener establishes its authored block base and remains structural; canonical output returns it to the content column. This is intentionally similar to Djot's deeper-indent leniency while retaining Carve's minimum column.

Below the content column, after a blank line, the block opener ends the item and parses at the document level.

carve
- one

 > q
html
<ul>
  <li>one</li>
</ul>
<blockquote><p>q</p></blockquote>

At the content column, it nests into the item.

carve
- one

  > q
html
<ul>
  <li><p>one</p>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

Past the content column, a recognized opener remains structural and uses its authored column as a temporary block base.

carve
- one

   # h
html
<ul>
  <li><p>one</p>
    <h1 id="h">h</h1>
  </li>
</ul>

With no blank line, a line below the content column lazily continues the open item paragraph.

carve
- one
 > q
html
<ul>
  <li>one</li>
</ul>
<blockquote><p>q</p></blockquote>

A block opener at column 0 is a document-level block: it interrupts and ends the list, exactly as a quote or heading there would.

carve
- one
```
c
```
html
<ul>
  <li>one</li>
</ul>
<pre><code>c
</code></pre>

Nested item looseness does not propagate to the outer item ​

4 conformance fixtures

A post-blank block attached to a nested (inner) item loosens only that inner item; the outer item stays tight (§17). Looseness is decided per level - a descendant's blank never counts toward an ancestor.

carve
- a
  - b

    > q
html
<ul>
  <li>a
    <ul>
      <li><p>b</p>
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>

The sibling-blank invariant: a blank between the inner items loosens the inner list but leaves the outer item tight - the same non-propagation.

carve
- a
  - b

  - c
html
<ul>
  <li>a
    <ul>
      <li><p>b</p></li>
      <li><p>c</p></li>
    </ul>
  </li>
</ul>

The content-column threshold follows the marker, so a task item's nested block behaves the same.

carve
- [ ] a
  - b

    > q
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="a"> a
    <ul>
      <li><p>b</p>
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>

An item's own second paragraph after a blank still loosens it - non-propagation removes only the upward leak, not legitimate same-level looseness.

carve
- a

  b
html
<ul>
  <li><p>a</p>
    <p>b</p>
  </li>
</ul>

Table as a block opener in a list item ​

2 conformance fixtures

A |-delimited table row is a block opener under the same content-column rule: it nests at the content column and folds as lazy text below it.

carve
- one
  |= H |
  | x |
html
<ul>
  <li>one
    <table>
      <thead>
        <tr><th scope="col">H</th></tr>
      </thead>
      <tbody>
        <tr><td>x</td></tr>
      </tbody>
    </table>
  </li>
</ul>
carve
- one
 |= H |
 | x |
html
<ul>
  <li>one</li>
</ul>
<table>
  <thead>
    <tr><th scope="col">H</th></tr>
  </thead>
  <tbody>
    <tr><td>x</td></tr>
  </tbody>
</table>

A paragraph opened after a block in an item is still open for a lazy line ​

5 conformance fixtures

PART 1 S4 asks one question of the open stack: does any container hold an OPEN paragraph. It does not ask where that paragraph sits among the container's blocks. An item whose first block is a table, a fence or a quote and whose next line is prose holds an open paragraph exactly as an item that began with prose does, so a following flush-left line folds into it and nothing closes.

The first case is the one that separates the two readings. | a | is inside the QUOTE, so at the item's own content column the block above + b | is a blockquote and not a table. PART 9 §5 T6 therefore refuses the continuation row, the line is prose, and prose keeps the paragraph open. A reader that consults the table through the container below - close enough to call the line a continuation row for the purpose of ending the paragraph, while still rendering it as text - answers one line two ways in the same parse.

carve
- > | a |
  + b |
tail
html
<ul>
  <li>
    <blockquote>
      <table>
        <tbody>
          <tr><td>a</td></tr>
        </tbody>
      </table>
    </blockquote>
    + b |
tail
  </li>
</ul>

The same rule with no continuation row involved: the item opens on a table, the next line is ordinary prose at the item's content column, and tail folds into the paragraph that prose opened.

carve
- | a |
  b
tail
html
<ul>
  <li>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    b
tail
  </li>
</ul>

The block the paragraph follows is not what decides it, so a fenced block reads the same way.

carve
- ```
  c
  ```
  b
tail
html
<ul>
  <li>
    <pre><code>c
</code></pre>
    b
tail
  </li>
</ul>

CONTROL. A blank line closes the paragraph, and S4's other half then governs: nothing in the stack holds an open paragraph, so the item ends and tail is a document sibling.

carve
- | a |
  b

tail
html
<ul>
  <li>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    b
  </li>
</ul>
<p>tail</p>

CONTROL. Here the table IS above the line at the item's own column, so the second row extends it, no paragraph is opened at all, and tail is again a document sibling. A reader that folded after a table unconditionally would answer this one wrong.

carve
- | a |
  | b |
tail
html
<ul>
  <li>
    <table>
      <tbody>
        <tr><td>a</td></tr>
        <tr><td>b</td></tr>
      </tbody>
    </table>
  </li>
</ul>
<p>tail</p>

An unterminated container does not extend the item past a blank line ​

6 conformance fixtures

A blank line ends the open paragraph, whatever container stands above it. PART 1 S4 then has nothing to continue, so a following line BELOW the item's content column is not the item's: it stands at the enclosing document's own opener column, and the item ends there. The state of the container above the blank does not enter the question - an unterminated ::: div reaches no further past a blank than a terminated one, an opaque body, a quote, or no container at all.

The executable spec answered the unterminated spelling alone. It carried the blank as container content and left the item's paragraph open across it, so a flush-left line folded into the div as a second paragraph, while the terminated div, the code fence, the quote and the bare item all ended the item on the same input. One rule was being answered two ways by whether a closer had been written. carve-js, carve-php and carve-rs end the item in every spelling (carve#1379).

carve
- ::: d
  b

tail
html
<ul>
  <li>
    <div class="d">
      <p>b</p>
    </div>
  </li>
</ul>
<p>tail</p>

CONTROL. Without the blank the paragraph b opened is still open, so the same flush-left line folds into it under S4's lazy branch and nothing closes. The blank is what decides, not the unterminated container - a reader that ended the item whenever a ::: was left open would answer this one wrong.

carve
- ::: d
  b
tail
html
<ul>
  <li>
    <div class="d">
      <p>b
tail</p>
    </div>
  </li>
</ul>

CONTROL. The blank ends the paragraph, not the ITEM. Content that returns at the item's content column is still inside the div, as its second block - so a reader that closed the item on any blank line inside an open container would answer this one wrong in the other direction.

carve
- ::: d
  b

  tail
html
<ul>
  <li>
    <div class="d">
      <p>b</p>
      <p>tail</p>
    </div>
  </li>
</ul>

An explicit closer is a SPELLING CHANGE, and the document above is where that gets tested. Writing the ::: it left open ends the container exactly where the item already ended it, so the two spellings are one document: the same blocks, in the same order, under the same list. The list's TIGHTNESS is part of that, and this is the spelling the canonical writer emits for the document above, so PART 11 §1's parse(fmt(x)) == parse(x) says outright that supplying the closer cannot move it.

The fixture below cannot say any of this. It is byte-identical to the one above, because the item's blocks sit inside the div and a tight list's paragraph suppression never reaches them - so tightness leaves no mark in the HTML, and a check comparing rendered output here passes under either reading. The pair is pinned at the PARSE level instead, by tests/an-explicit-closer-does-not-move-list-tightness.test.mjs.

What the rule settles is that the two spellings AGREE, not which of tight or loose they agree on. carve-js and carve-rs read the open spelling as loose and the closed one as tight, contradicting themselves rather than each other, and converge on loose; carve-php already reads both loose; the executable spec reads both tight, which is self-consistent and therefore conforms. Whether an item whose only child is a container holding a blank line is loose at all is a separate question and stays open (carve#1602).

carve
- ::: d
  b

  tail

```html
<ul>
  <li>
    <div class="d">
      <p>b</p>
      <p>tail</p>
    </div>
  </li>
</ul>

:::

THE SAME PRODUCTION, ONE CONFIGURATION OVER. Above, the container is the item's LEAD, so every block the item holds sits inside it and a tight list's paragraph suppression never reaches any of them - which is why that pair renders byte-identically under either reading and had to be pinned at the parse level. Move the container BELOW a lead block and the item keeps a paragraph of its own, and that paragraph is exactly what suppression does reach: a loose item wraps x in <p>, a tight one leaves it bare. So this configuration PRINTS the tightness the other one hides, and an ordinary .html fixture can hold the rule.

The reading is TIGHT, and it is the missing closer that has to not matter. The blank line is inside the div, so nothing separates the item's blocks and §17 L1 finds no separator to loosen on; writing the ::: the document leaves open ends the container where the item already ended it, so the two spellings are one document and the tightness cannot move across them (carve-js#1376, carve-js#1379).

carve
- x

a

b


```html
<ul>
  <li>x
    <div>
      <p>a</p>
      <p>b</p>
    </div>
  </li>
</ul>

:::

The closed spelling of the document above. Here PART 11 §1's parse(fmt(x)) == parse(x) and §1a's weaker HTML form say the same thing, which they do not in the pair further up: the item's lead paragraph puts the tightness into the output, so a reader that moved it across the closer is caught by the rendered bytes rather than only by the parse.

carve
- x

a

b :::


```html
<ul>
  <li>x
    <div>
      <p>a</p>
      <p>b</p>
    </div>
  </li>
</ul>

:::

A task item's checkbox is not decided by its first block ​

1 conformance fixture

The checkbox belongs to the ITEM. Nothing about what the item's first block turns out to be reaches it: it is written directly after the <li> opener in every spelling, and only the content moves - beside the checkbox when the first block renders inline, on its own indented line below it when it does not.

The executable spec emitted it only where that first block was a PARAGRAPH. Every other marker-line opener dropped it: a block quote, a code fence, a ::: div, a table row, a heading and a thematic break each rendered a plain <li>, so the [ ] or [x] the author wrote was gone from the output while the item itself parsed correctly. One serializer branch built the <li> opener without the checkbox, and it was the branch every non-paragraph lead takes. carve-js and carve-php write it in all of them (carve#1381).

carve
- [ ] > q
- [x] # h
- [ ] ---
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <blockquote><p>q</p></blockquote>
  </li>
  <li data-task-state="x"><input type="checkbox" checked disabled> 
    <h1 id="h">h</h1>
  </li>
  <li><input type="checkbox" disabled> 
    <hr>
  </li>
</ul>

Only lazy folding demotes a marker-line colon opener ​

2 conformance fixtures

A ::: opener written as the sole content of a list item's marker line opens a container, whatever the next line is (PART 2, "A MARKER-LINE OPENER OPENS TOO", ruled on markup-carve/carve#2978). No later line takes that away. An earlier reading demoted the opener to text when its whole body arrived by lazy folding; the section keeps that title. An opener a blank follows has opened an EMPTY container (carve#1382).

carve
- ::: d

tail
html
<ul>
  <li>
    <div class="d">

    </div>
  </li>
</ul>
<p>tail</p>

The line below the content column. The opener has opened an empty container, which holds no paragraph, so tail has nothing to fold into and is a document paragraph (CARVE-P0-024, CARVE-P9-084).

carve
- ::: d
tail

after
html
<ul>
  <li>
    <div class="d">

    </div>
  </li>
</ul>
<p>tail</p>
<p>after</p>

A blank line before a sibling marker separates the items, whatever consumed it ​

3 conformance fixtures

Section 17 L1's first disjunct is a question about the LIST: is one item followed by a blank line before the next sibling marker? It reads what stands BETWEEN two items, and a blank line with nothing of the item after it stands between them whatever the item's interior was doing with it. An unterminated container above the blank does not change that, any more than it changes where the item ends.

The executable spec answered it by what the line was doing INSIDE the item. A blank inside an open fence is fence content, so it recorded no separator and the list stayed tight - for a ::: div, an admonition, a code fence, a tilde fence, a raw block and a comment fence alike, while the same document with the closer written loosens in every reader. carve-js and carve-rs loosen all six; carve-php loosens four of the six and stays tight for a code or tilde fence (markup-carve/carve-php#1445, carve#1383).

carve
- ::: d
  b

- s
html
<ul>
  <li>
    <div class="d">
      <p>b</p>
    </div>
  </li>
  <li><p>s</p></li>
</ul>

The same holds where the blank is genuinely the container's CONTENT and can be seen in the output. An unterminated code fence carries it as an empty payload line, and it still separates the items - what L1 asks is where the line sits relative to the marker, not which block absorbed it. Reading the payload instead would make a structural answer depend on a detail readers already spell differently: carve-php drops the same trailing blank from a raw block and keeps it in a code block.

carve
- ```
  b

- s
html
<ul>
  <li>
    <pre><code>b

</code></pre>
  </li>
  <li><p>s</p></li>
</ul>

CONTROL. The blank must precede a marker of THIS list. A different bullet character starts a different list under the section 11 axes, so nothing of the first list is followed by a blank before one of its own siblings and it stays tight - a reader that loosened on the blank alone would answer this one wrong. The first item carries the plain text that makes the answer visible: with only the fenced item, tight and loose render the same bytes and the case would assert nothing.

carve
- a
- ```
  b

* s
html
<ul>
  <li>a</li>
  <li>
    <pre><code>b

</code></pre>
  </li>
</ul>
<ul>
  <li>s</li>
</ul>

The INTERIOR blank carve#326 C ruled on is untouched, and its own stated reason is what separates the two: a sibling after such a fence "stays tight because no blank line actually separates the two items". Content follows an interior blank before the marker, so nothing stands between the items, and the case above in this file stays tight in all four readers.

A raw block keeps the blank line at the end of its payload too ​

3 conformance fixtures

The property is the one the fence section above states: a blank line inside a fence is content, and the last one is content too, wherever the fence ends. A raw block is a fence whose interior is a verbatim PAYLOAD rather than content lines, and the payload is every line between the delimiters. Which container the block sits in is not a parameter, and neither is whether the closer was written.

The shape that made this look unsettled is a raw block written LAST in the document. Its payload's trailing newlines then land at the very end of the output, where the trailing-whitespace trim every reader applies removes them, so all four readers print the same bytes and the document cannot tell the readings apart. Put a block after it and the payload becomes visible again (carve#1389).

carve
```=html
b

```

after
html
b

<p>after</p>

The same payload, inside a list item and with the fence left open. The item is loose because a blank line stands before the sibling marker, whatever consumed it; the blank is the payload's last line all the same.

carve
- ```=html
  b

- s
html
<ul>
  <li>
    b

  </li>
  <li><p>s</p></li>
</ul>

CONTROL. A payload with no blank line at the end of it gains none. This document renders the same bytes under either reading of the case above, so it pins nothing about the blank - it is here to catch the over-correction, a reader that emits a separator of its own after the payload.

carve
```=html
b
```

after
html
b
<p>after</p>

An unterminated fence at a content column opens no block, so the paragraph stays open ​

6 conformance fixtures

Section 10 I4 makes a valid code fence interrupt an open paragraph whether or not a closer follows. At document level q over a bare fence run over b is a paragraph followed by a code block holding b.

At a container's content column the same line does the same thing: the fence opens a code block that runs to the end of the container. A fenced body is not a paragraph, so a flush-left line below does not fold into it and the container ends (CARVE-P0-013).

carve
- q
  ```
tail
html
<ul>
  <li>q
    <pre><code></code></pre>
  </li>
</ul>
<p>tail</p>

The container is not a parameter. A definition body's content column answers the same way, and so does a block quote's.

carve
:: t
:  a
   ```
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code></code></pre>
  </dd>
</dl>
<p>tail</p>
carve
> q
> ```
tail
html
<blockquote>
  <p>q</p>
  <pre><code></code></pre>
</blockquote>
<p>tail</p>

CONTROL. A blank line inside the open fence is content, and the flush-left line still ends the fence and the item.

carve
- q
  ```

tail
html
<ul>
  <li>q
    <pre><code>
</code></pre>
  </li>
</ul>
<p>tail</p>

CONTROL. AT BLOCK START a fence opens a body the same way, and the body runs to the end of the container. The flush-left line has nothing to fold into and the item ends, which is the fenced-body clause.

carve
- a

  ```
  b
tail
html
<ul>
  <li><p>a</p>
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>tail</p>

CONTROL. A fence WITH its closer is a block, and a block leaves no paragraph open, so the item ends on the flush-left line for the ordinary reason.

carve
- q
  ```
  y
  ```
tail
html
<ul>
  <li>q
    <pre><code>y
</code></pre>
  </li>
</ul>
<p>tail</p>

A heading at an item's content column leaves no paragraph open ​

2 conformance fixtures

The content column is the item body's column zero, so a heading written there is the item's own heading block. It is not simultaneously a paragraph for the purpose of deciding whether a flush-left line may fold. No paragraph is open, and PART 1 S4 therefore ends the item before tail, exactly as it does when the same heading is written on the marker line or inside a quote. All four readers used to classify the heading correctly and then keep a phantom paragraph open behind it (carve#1377).

carve
- | a |
  # h
tail
html
<ul>
  <li>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    <h1 id="h">h</h1>
  </li>
</ul>
<p>tail</p>

CONTROL. Prose at that same column really does open a paragraph, so the flush-left line lazily continues it. The earlier table does not matter once prose becomes the item's last block.

carve
- | a |
  prose
tail
html
<ul>
  <li>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    prose
tail
  </li>
</ul>

A quote is reached by its marker, and a column never reaches into one ​

4 conformance fixtures

Section 10 I5's columns are read against the container a line is IN. A line that writes no > is in no block quote whatever column it lands on, because section 24 C5 composes the strips and the quote's strip is its marker. Such a line reaches the quote only through PART 1 S4's lazy fold, so it is paragraph text: it renders where it was written and registers nothing.

What made this look like two rules is that the same line answered differently by what the quote HELD. With a list in the quote, the line lands on the inner item's content column, where I5 would make a definition the item's - but it is not inside the item any more than it is inside the quote (carve#1384).

carve
> - x
  [r]: /url

See [r][].
html
<blockquote>
  <ul>
    <li>x</li>
  </ul>
</blockquote>
<p>See <a href="/url">r</a>.</p>

The same shape one container deeper now has a live outer list item even though the line does not re-enter the quote. At column 4 it is an over-indented definition in that outer item, so it registers under the authored-base rule.

carve
- > - x
    [r]: /url

See [r][].
html
<ul>
  <li>
    <blockquote>
      <ul>
        <li>x</li>
      </ul>
    </blockquote>
  </li>
</ul>
<p>See <a href="/url">r</a>.</p>

CONTROL. The quote's body is a PARAGRAPH, and the second line is byte for byte the one above. It folds as text and defines nothing, which is what every reader already did - it is the document that shows the quote's body was never the parameter.

carve
> x
  [r]: /url

See [r][].
html
<blockquote><p>x</p></blockquote>
<p>See <a href="/url">r</a>.</p>

CONTROL. Write the marker and the definition is inside the quote, where I5 gives it to the item whose content column it sits at. The marker is the parameter.

carve
> - x
>   [r]: /url

See [r][].
html
<blockquote>
  <ul>
    <li>x</li>
  </ul>
</blockquote>
<p>See <a href="/url">r</a>.</p>

A marker folds into a quote below it ​

9 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

An unmarked line at an ENCLOSING item's content column, with a quote below it holding the innermost open paragraph, is lazy paragraph text in that quote's paragraph. A list marker there folds like any other text and renders where it was written (markup-carve/carve#1905).

A quote is reached by its marker and a column never reaches into one, so the line is in no quote whatever column it lands on, and PART 0's lazy fold is the only route by which it touches one. The reach question PART 0's AT OR PAST MEANS THE DEEPEST COLUMN THE LINE REACHES answers therefore does not arise for the quote, and §24 C3's content-column branch -- a marker there opens a sublist -- is never reached, because it asks what a line does IN a container and this line is never classified in the item.

The twins and the controls are pinned here beside the folds rather than the divergent documents alone. Their absence is why this drifted: the paragraph twin has always folded at this column in every reader, and the no-quote shapes have always opened a list element with no blank line before it. Neither may move.

The ticket's document. The quote is written BELOW the item's lead line, and - m sits at column 2 -- the outer item's content column, and below the quote's content column of 4. The marker folds into the quoted item's paragraph and renders as text.

carve
- a
  > - x
  - m
html
<ul>
  <li>a
    <blockquote>
      <ul>
        <li>x</li>
      </ul>
    </blockquote>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

The MARKER-LEAD spelling of the same geometry, where the quote sits on the item's lead line instead of below it. Same answer: which line the quote was written on is not a parameter of this rule.

carve
- > - x
  - m
html
<ul>
  <li>
    <blockquote>
      <ul>
        <li>x</li>
      </ul>
    </blockquote>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

The sharpest case. Once the fold has started, intervening prose does not escape the quote: p folds, the fold leaves the quote open for the line after it, and the marker folds too.

carve
- a
  > - x
  p
  - m
html
<ul>
  <li>a
    <blockquote>
      <ul>
        <li>x
p</li>
      </ul>
    </blockquote>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

The PARAGRAPH TWIN, which every reader already folds at this exact column. Replacing the quoted list with quoted prose changes nothing, which is why ruling the marker out of the fold would have had to move this document as well.

carve
- a
  > q
  - m
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

CONTROL -- a BLANK LINE is the escape, and the only one. It ends the quote and every column opened inside it, so the marker below is classified in the item and opens a list there.

carve
- a
  > - x

  - m
html
<ul>
  <li><p>a</p>
    <blockquote>
      <ul>
        <li>x</li>
      </ul>
    </blockquote>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

CONTROL -- an item where the quote was. The line is classified in the enclosing item, so the marker opens a sibling with no blank line before it.

carve
- a
  - b
  - m
html
<ul>
  <li>a
    <ul>
      <li>b</li>
      <li>m</li>
    </ul>
  </li>
</ul>

CONTROL -- a heading where the quote was. It leaves no paragraph open, and the marker at the content column opens a sublist.

carve
- a
  # h
  - m
html
<ul>
  <li>a
    <h1 id="h">h</h1>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

CONTROL -- a fence where the quote was. Same answer, and the fence kind does not enter into it.

carve
- a
  ```
  c
  ```
  - m
html
<ul>
  <li>a
    <pre><code>c
</code></pre>
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

CONTROL -- a paragraph where the quote was. That paragraph IS the item's, so §24 C3 governs at the content column and the marker opens a sublist. This is the row that shows the rule is about the QUOTE rather than about the column.

carve
- a
  p
  - m
html
<ul>
  <li>a
p
    <ul>
      <li>m</li>
    </ul>
  </li>
</ul>

An opener under a quote in a nested host opens at one column only ​

13 conformance fixtures

PART 0 [CARVE-P0-024] folds a block opener into a surviving quote's open paragraph at every column but the host's own content column. PART 0 [CARVE-P0-024] rebases a RECOGNIZED opener, and past the content column a line is one only where no open paragraph can take it as text; PART 0 [CARVE-P0-011] is why that column itself always opens. The item's content column is 2 and the quote's is 4, so column 2 is the control and 1, 3, 4 and 8 all fold. A raw fence earns its own documents: folded, its payload reaches the page inside a code span, while an opener there drops a format the target does not match under PART 9 [CARVE-P9-040], so the band decides whether authored text is published or gone (carve#2607).

carve
- a
  > q
  ```js
  c
  ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <pre><code class="language-js">c
</code></pre>
  </li>
</ul>
carve
- a
  > q
 ```js
 c
 ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
<pre><code class="language-js">c
</code></pre>
carve
- a
  > q
   ```js
   c
   ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <pre><code class="language-js">c
</code></pre>
  </li>
</ul>
carve
- a
  > q
    ```js
    c
    ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <pre><code class="language-js">c
</code></pre>
  </li>
</ul>
carve
- a
  > q
        ```js
        c
        ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <pre><code class="language-js">c
</code></pre>
  </li>
</ul>
carve
- a
  > q
   # h
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <h1 id="h">h</h1>
  </li>
</ul>
carve
- a
  > q
   ---
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <hr>
  </li>
</ul>
carve
- a
  > q
   |= c |
   | 1 |
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <table>
      <thead>
        <tr><th scope="col">c</th></tr>
      </thead>
      <tbody>
        <tr><td>1</td></tr>
      </tbody>
    </table>
  </li>
</ul>
carve
- a
  > q
   ```=latex
   \r
   ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
- a
  > q
   ```=html
   <b>r</b>
   ```
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
    <b>r</b>
  </li>
</ul>
carve
x[^1]

[^1]: > q
   ```js
   c
   ```
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <blockquote><p>q</p></blockquote>
      <pre><code class="language-js">c
</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
x[^1]

[^1]: > q
   ```=latex
   \r
   ```
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <blockquote><p>q</p></blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
: > q
   ```js
   c
   ```
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote><p>q</p></blockquote>
    <pre><code class="language-js">c
</code></pre>
  </dd>
</dl>

Colon-fence as a block opener in a list item ​

3 conformance fixtures

A ::: colon-fence (admonition / div) is a block opener like every other (§24 C3): it must reach the item's content column, and a deeper authored column becomes the fence's temporary block base.

carve
- one
 ::: note
 b
 :::
html
<ul>
  <li>one</li>
</ul>
<aside class="admonition note" aria-label="Note">
  <p>b</p>
</aside>
carve
- one
  ::: note
  b
  :::
html
<ul>
  <li>one
    <aside class="admonition note" aria-label="Note">
      <p>b</p>
    </aside>
  </li>
</ul>
carve
- one
   ::: note
   b
   :::
html
<ul>
  <li>one
    <aside class="admonition note" aria-label="Note">
      <p>b</p>
    </aside>
  </li>
</ul>

Fence folds as lazy inline code above the content column ​

1 conformance fixture

A fenced code block indented past the content column remains a block opener. Its opener column is the temporary block base, so structural over-indent is removed while payload indentation beyond that base survives. Canonical output writes the fence at the content column.

carve
- one

   ```
   c
   ```
html
<ul>
  <li><p>one</p>
    <pre><code>c
</code></pre>
  </li>
</ul>

Indented ordered marker content column includes the marker indent ​

1 conformance fixture

The content column of a list item includes the marker's own leading indentation (PART 9 §24 C3): 1. is base column 4 plus marker width 3, so its content column is 7. A block opener dedented below that column but not to column 0 is lazy text, not a new block. A | x | table row at column 2 therefore folds into the item as lazy paragraph text instead of ending the item and escaping the row to a document-level table.

carve
    1. y
  | x |
html
<ol>
  <li>y</li>
</ol>
<table>
  <tbody>
    <tr><td>x</td></tr>
  </tbody>
</table>

Outer item with an internal blank before an attached block is loose ​

1 conformance fixture

An over-indented recognized block after a nested list remains an attached block. Its authored quote column is temporary; it does not turn the quote into a paragraph. The blank before it stands between two of the outer item's blocks, so the outer item is loose (PART 9 §17 L1).

carve
- a
  - b

   > q
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

Tight list item keeps trailing text after a block bare ​

3 conformance fixtures

In a tight list item, text that follows a closed block (a fenced code block, a div, or an admonition) is part of the item's inline content and is not wrapped in a <p>, matching the item's tightness. Only a blank-separated (loose) item wraps its paragraphs.

carve
- item
  ```
  c
  ```
  tail
html
<ul>
  <li>item
    <pre><code>c
</code></pre>
    tail
  </li>
</ul>

The same holds after a div body, and for an ordered item. A malformed :::note is text, so the bare ::: below it opens a div that takes tail (carve#4863).

carve
- item
  :::note
  body
  :::
  tail
html
<ul>
  <li>item
:::note
body
    <div>
      <p>tail</p>
    </div>
  </li>
</ul>

A blank line makes the item loose, so its leading text and the trailing text are each wrapped.

carve
- item

  ```
  c
  ```

  tail
html
<ul>
  <li><p>item</p>
    <pre><code>c
</code></pre>
    <p>tail</p>
  </li>
</ul>

Bare-dot ordered markers ​

3 conformance fixtures

An ordered marker may drop its value when the delimiter is .: a bare . counts from 1, the AsciiDoc-style shorthand for the list nobody numbers by hand.

carve
. first
. second
. third
html
<ol>
  <li>first</li>
  <li>second</li>
  <li>third</li>
</ol>

The bare dot is a spelling, not a dialect: it is decimal-dot, so it opens and continues one list with the explicit form. Only . may drop its value - a leading ) collides with prose parentheticals far more often than a leading . does, the same asymmetry that keeps (1) from being a marker.

carve
1. explicit
. continues the same list

) not a marker, and never opens one
html
<ol>
  <li>explicit</li>
  <li>continues the same list</li>
</ol>
<p>) not a marker, and never opens one</p>

Carrying no value, it cannot set a start - 3. is how that is written - and li-attributes attach to it exactly as they do to every other marker, because the shape is marker, then attributes, then the required space.

carve
.{#x} attributed
. plain
html
<ol>
  <li id="x">attributed</li>
  <li>plain</li>
</ol>

A definition attached by a + continuation marker is collected, and the item keeps no trace ​

1 conformance fixture

The maintainer overruled this row's title (carve#4449): a definition is invisible, so the + test reads the line after it (CARVE-P9-067). A blank there refuses the +, which shows as a letter, and the definition is still collected.

carve
- a
+
[r]: /u

see [t][r]
html
<ul>
  <li>a</li>
</ul>
<p>see <a href="/u">t</a></p>

An uppercase roman numeral is a list marker ​

1 conformance fixture

Roman markers are case-blind: I. opens a list with type="I" as i. does with type="i". A single uppercase letter with . is a marker only with two or more spaces before its content (carve#4811), so I. takes two spaces and II. takes one.

carve
I.  one
II.  two
html
<ol type="I">
  <li>one</li>
  <li>two</li>
</ol>

Sibling markers that reach one column are one list ​

1 conformance fixture

The same column claim decides sibling markers as decides a block opener: two markers that reach one column are one list, however the indentation was written. A space advances one column and a tab advances to the next multiple of 4 (§24 C1), so four spaces and a space-plus-tab both put a marker at column 4.

This is the third shape of the rule the corpus pinned in a tab indent is the column it reaches, held back until the residual columns a straddling tab leaves behind stopped claiming source offsets they do not have (carve-js#773).

carve
- a
    - b
 	- c
html
<ul>
  <li>a
    <ul>
      <li>b</li>
      <li>c</li>
    </ul>
  </li>
</ul>

The continuation marker at an item's own column, and what follows it ​

3 conformance fixtures

§17's + continuation marker was pinned by the corpus in one shape only: a marker at column 0 with a BLOCK after it. Both axes it varies - where the marker sits, and what kind of thing follows - were unreached, and each hid a live divergence until someone measured it by hand (carve#812).

An INDENTED + is not consumed as a marker, so it survives as text in the item, and a definition below it is still collected:

carve
- a
  +
  [r]: /u

see [t][r]
html
<ul>
  <li>a
+</li>
</ul>
<p>see <a href="/u">t</a></p>

The same indented + with nothing attached stays in the item it was written in, rather than starting a block of its own:

carve
- a
  +

x
html
<ul>
  <li>a
+</li>
</ul>
<p>x</p>

A PARAGRAPH attached by a column-0 + is the shape the marker most obviously serves, and the corpus pinned only non-paragraph blocks - a fenced code block and a block quote - on which the engines had always agreed. Attached paragraph text is bare, not wrapped in its own <p>:

carve
- a
+
b

x
html
<ul>
  <li>a
    b
  </li>
</ul>
<p>x</p>

A continuation marker after a blank line in the item ​

1 conformance fixture

§17 L3 conditions the marker on its COLUMN and on nothing else - not on the item being tight, and not on what the item already holds. The corpus reached it only in a tight item, so an engine could recognize it there and drop it once a blank line had appeared, which is what carve-php did (carve-php#925): the marker came out as literal text inside the paragraph it was meant to end, and the block it should have attached folded in with it.

carve
- a

  b
+
c

x
html
<ul>
  <li><p>a</p>
    <p>b</p>
    <p>c</p>
  </li>
</ul>
<p>x</p>

A continuation marker attaches one block, and the boundary is that block's extent ​

9 conformance fixtures

§17 L3 says it in capitals: a + attaches "the FOLLOWING flush-left block to that container — ONE block of ANY kind". The trailing "up to the next blank line, sibling marker, or a further +" is the extent of that one block, not a count — an attached list, quote or fenced block is many lines long and still one block (markup-carve/carve#1290).

So a marker takes the paragraph and leaves the quote below it outside the item:

carve
- a
+
para
> q
html
<ul>
  <li>a
    para
  </li>
</ul>
<blockquote><p>q</p></blockquote>

A second attached block takes a second marker. This spelling already produces identical output in all three engines, so one block costs a marker line and no expressiveness:

carve
- a
+
para
+
> q
html
<ul>
  <li>a
    para
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

The one block may be many lines. A wrapped paragraph is not cut at its first line, and the quote below it is still outside:

carve
- a
+
p1
p2
> q
html
<ul>
  <li>a
    p1
p2
  </li>
</ul>
<blockquote><p>q</p></blockquote>

An attached LIST is one block too, however many items it holds — the extent clause is what carries them in:

carve
- a
+
> x
> y
- next
html
<ul>
  <li>a
    <blockquote><p>x
y</p></blockquote>
  </li>
  <li>next</li>
</ul>

A same-column list marker leaves the + as text in the preceding item's paragraph. The following item is a sibling:

carve
- a
+
- x
- y
html
<ul>
  <li>a</li>
  <li>x</li>
  <li>y</li>
</ul>

The first-block form counts the same way. - + opens an item whose body is the one block that follows, and a second block needs its own marker:

carve
- +
para
> q
html
<ul>
  <li>para</li>
</ul>
<blockquote><p>q</p></blockquote>
carve
- +
para
+
> q
html
<ul>
  <li>para
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

The block-quote form counts the same way. > quoted / + / para / # H attaches the paragraph and leaves the heading outside the quote:

carve
> quoted
+
para
# H
html
<blockquote>
  <p>quoted</p>
  <p>para</p>
</blockquote>
<section id="H">
  <h1>H</h1>
</section>

And a second marker brings it in, exactly as in the list form:

carve
> quoted
+
para
+
# H
html
<blockquote>
  <p>quoted</p>
  <p>para</p>
  <h1 id="H">H</h1>
</blockquote>

A continuation marker after a blank line in a loose item ​

1 conformance fixture

The column-0 marker attaches the flush-left block below it, whether or not a blank line comes first. The blank does not loosen the item on its own - this item is loose because of the blank between a and b, not because of the one before the marker.

carve
- a

  b

+
c

x
html
<ul>
  <li><p>a</p>
    <p>b</p>
    <p>c</p>
  </li>
</ul>
<p>x</p>

A fence opened on a list marker line, body below the content column ​

7 conformance fixtures

A code fence opened on a list MARKER line, with its body below the item's content column, got four different answers from four readers - the executable spec swallowed the closer into the code text, carve-js did the same with an extra space, carve-php read the column-0 line as body and let the column-0 fence close it, and only carve-rs closed the item (markup-carve/carve#646). No corpus case put a fence body below the content column, so nothing could tell.

PART 9 §24's STEP algorithm already decides it, without a new rule. Take x at column 0 with the stack document > list > item(content_column 2) > code fence body:

  • S1 MATCH PREFIXES walks the stack and stops at the first container whose prefix the line does not supply. x supplies no indentation, so the walk stops at the ITEM and the fenced body is never reached.
  • S2 FENCED BODY therefore does not fire: it applies only when the innermost MATCHED container is a fenced body, and here that is the item.
  • S4 PARTIAL MATCH governs. Its lazy-continuation branch continues an OPEN PARAGRAPH, and a fenced body is not one - the NO OPEN PARAGRAPH, NO LAZY LINE clause the spec already spells out for . >. What remains is S4's otherwise: close the unmatched containers and re-classify the residue in the surviving context.

So the item holds an EMPTY code block and x re-parses at document level:

carve
- ```
x
```
html
<ul>
  <li>
    <pre><code></code></pre>
  </li>
</ul>
<p>x</p>
<pre><code></code></pre>

The trailing delimiter is a valid opener at document level, so it interrupts x and opens an empty code block that runs to the end of the document.

One column in is the same answer, and it is a separate row because the two broken readings differed here: one kept the leading space in the code text and one stripped it. Below the content column is below the content column.

carve
- ```
 x
 ```
html
<ul>
  <li>
    <pre><code></code></pre>
  </li>
</ul>
<p>x</p>
<pre><code></code></pre>

CONTROL. AT the content column the fence body is the item's, the closer closes it, and nothing leaves the item. All four readers always agreed here, which is the shape every existing corpus case uses:

carve
- ```
  x
  ```
html
<ul>
  <li>
    <pre><code>x
</code></pre>
  </li>
</ul>

The BLOCK QUOTE analogue is the same derivation with the same answer, and all three engines already agree on it - unenforced until now, which is why the list case could drift away from it:

carve
> ```
x
```
html
<blockquote>
  <pre><code></code></pre>
</blockquote>
<p>x</p>
<pre><code></code></pre>

A tilde fence takes the same route, and its trailing ~~~ opens an empty code block the same way:

carve
- ~~~
x
~~~
html
<ul>
  <li>
    <pre><code></code></pre>
  </li>
</ul>
<p>x</p>
<pre><code></code></pre>

The guard is on the OPEN FENCE, not on the item's paragraph state. Once the body has collected a line at the content column, a reader tracking "is a paragraph open" sees one again and folds - so this row and the first one need different mechanisms to pass, and only the fence-shaped rule passes both:

carve
- ```
  x
 y
  ```
html
<ul>
  <li>
    <pre><code>x
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>

The same clause reaches one shape further: a fence opened on a CONTINUATION line, after a has opened a paragraph. The fence interrupts a whether or not a closer follows (§10 I4), so a real code block opens. That open body is what makes y end the item, and the trailing run then opens an empty code block after the document paragraph y.

carve
- a
  ```
  b
 y
  ```
html
<ul>
  <li>a
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>

An item's fence is read once, whatever block it follows ​

2 conformance fixtures

A fence on an item's continuation line opens a code block (see A fence opened on a list marker line, body below the content column), and that holds after a caption or a quote as it does after a paragraph. Each reader takes the answer the item collector gave, so the fence is not folded into the caption or the quoted paragraph, and y ends it and the item. The trailing run then opens an empty code block after the document paragraph y. With the closer inside the item the same documents open the same block.

carve
- ![a](i)
  ^ cap
  ```
  b
 y
  ```
html
<ul>
  <li>
    <figure>
      <img src="i" alt="a">
      <figcaption>cap</figcaption>
    </figure>
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>
carve
- > q
  ```
  b
 y
  ```
html
<ul>
  <li>
    <blockquote><p>q</p></blockquote>
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>

A definition body's open code fence ends at a line below its column ​

5 conformance fixtures

A FENCED BODY IS NOT A PARAGRAPH (PART 1, CARVE-P0-013), in a definition body as in a list item: a line below the body's column has no paragraph to fold into, so the body ends there and the line is read at document level. The fence opens whether or not a closer follows (§10 I4), the way An item's fence is read once, whatever block it follows reads it (markup-carve/carve#2143).

carve
:: t
: ```
 y
  ```
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code></code></pre>
  </dd>
</dl>
<p>y</p>
<pre><code></code></pre>
carve
:: t
: ```
  b
 y
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code>b
</code></pre>
  </dd>
</dl>
<p>y</p>

After a paragraph the fence opens too, and the body's own parse takes the same answer. y ends it, and the trailing run opens an empty code block after y.

carve
:: t
: a
  ```
  b
 y
  ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code>b
</code></pre>
  </dd>
</dl>
<p>y</p>
<pre><code></code></pre>

CONTROL. A fence the body already closed leaves the paragraph after it open, so the line folds into that paragraph as it does under a list item.

carve
:: t
: ```
  b
  ```
  c
 y
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code>b
</code></pre>
    <p>c
y</p>
  </dd>
</dl>

A later fence-shaped line is not this fence's closer either: y has already ended the fence and the body, and the trailing run opens its own empty code block after z.

carve
:: t
: a
  ```
  b
 y

z
  ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code>b
</code></pre>
  </dd>
</dl>
<p>y</p>
<p>z</p>
<pre><code></code></pre>

A closer below the container's column does not count ​

7 conformance fixtures

The fence opens whether or not a closer follows (§10 I4), and a line below the content column ends it and the item. A flush-left run, or one a column short, is not written inside the item, so it closes nothing there: it is read at document level, where it opens an empty code block of its own (markup-carve/carve#2145).

carve
- a
  ```
  b
 y
```
html
<ul>
  <li>a
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>
carve
- a
  ```
  b
 y
 ```
html
<ul>
  <li>a
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>

A run past the content column is inside the item but is no closer either: a fence delimiter sits exactly at its container's content column (CARVE-P2-006). The one that counts is at the column, as in A fence opened on a list marker line, body below the content column.

carve
- a
  ```
  b
 y
   ```
html
<ul>
  <li>a
    <pre><code>b
</code></pre>
  </li>
</ul>
<p>y</p>
<pre><code></code></pre>

A definition body reads the same way, on both sides.

carve
:: t
: a
  ```
  b
 y
```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code>b
</code></pre>
  </dd>
</dl>
<p>y</p>
<pre><code></code></pre>
carve
:: t
: a
  ```
  b
 y
   ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code>b
</code></pre>
  </dd>
</dl>
<p>y</p>
<pre><code></code></pre>

With nothing else in play the flush-left run interrupts the description's paragraph, since §10 I4 asks for no closer, and opens an empty code block at document level, as it does under a list item.

carve
:: t
: a
```
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
</dl>
<pre><code></code></pre>

CONTROL. With a closer after it the same run interrupts the same way, and the fence opens a block at document level that ends at its closer.

carve
:: t
: a
```
b
```
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
</dl>
<pre><code>b
</code></pre>

A bare colon opener in a description body is an opener ​

7 conformance fixtures

A bare ::: is closer-shaped, but in a definition body that closes nothing it opens a container, as a typed ::: d does: a ::: opener is not guarded (§10 I4). An empty container leaves no paragraph open, so a line below the body's column closes it (CARVE-P9-084, and An empty unterminated container ends at a flush-left line for the typed spelling). The list-host spelling is a separate question and is not decided here (markup-carve/carve#2147).

carve
:: t
: :::
 y
  :::
html
<dl>
  <dt>t</dt>
  <dd>
    <div>

    </div>
  </dd>
</dl>
<p>y</p>
<div>

</div>
carve
:: t
: :::
y
html
<dl>
  <dt>t</dt>
  <dd>
    <div>

    </div>
  </dd>
</dl>
<p>y</p>

After a paragraph it interrupts, whether a line follows it or not, and a pair closed at once is closed.

carve
:: t
: a
  :::
y
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <div>

    </div>
  </dd>
</dl>
<p>y</p>
carve
:: t
: a
  :::
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <div>

    </div>
  </dd>
</dl>
carve
:: t
: :::
  :::
y
html
<dl>
  <dt>t</dt>
  <dd>
    <div>

    </div>
  </dd>
</dl>
<p>y</p>

CONTROL. A container that already holds a paragraph takes the line in as lazy continuation. A ::: inside an open code fence is code, not an opener, and y below the column ends that fence and the body.

carve
:: t
: :::
  a
 y
  :::
html
<dl>
  <dt>t</dt>
  <dd>
    <div>
      <p>a
y</p>
    </div>
  </dd>
</dl>
carve
:: t
: a
  ```
  :::
 y
  ```
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <pre><code>:::
</code></pre>
  </dd>
</dl>
<p>y</p>
<pre><code></code></pre>

An empty term marker in a description body is text ​

6 conformance fixtures

A :: line with nothing after it but whitespace is not a term: a marker needs content, trailing whitespace is dropped and is not content (CARVE-P2-025), and :: and :: are one line. It opens no block, so below the body's column it folds into the open paragraph like any other plain line (CARVE-P9-083). The third line of the first document is :: and one space, of the second :: and two (markup-carve/carve-js#1891).

carve
:: t
: a
:: 
c
html
<dl>
  <dt>t</dt>
  <dd>a
::
c</dd>
</dl>
carve
:: t
: a
::  
c
html
<dl>
  <dt>t</dt>
  <dd>a
::
c</dd>
</dl>

At the end of the document, after a continuation line, and before a description marker, which opens a second description of the same term.

carve
:: t
: a
::
html
<dl>
  <dt>t</dt>
  <dd>a
::</dd>
</dl>
carve
:: t
: a
  b
:: 
c
html
<dl>
  <dt>t</dt>
  <dd>a
b
::
c</dd>
</dl>
carve
:: t
: a
:: 
: c
html
<dl>
  <dt>t</dt>
  <dd>a
::</dd>
  <dd>c</dd>
</dl>

CONTROL. The same line without the space, which every reader already folds.

carve
:: t
: a
::
c
html
<dl>
  <dt>t</dt>
  <dd>a
::
c</dd>
</dl>

A table row ends a description body and a lone plus folds into a term ​

3 conformance fixtures

A table row interrupts a paragraph (PART 9 §10 I1), so at column 0 under a description it ends the body and the list; the table follows the list (markup-carve/carve#3145):

carve
:: t
: a
| t |
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
</dl>
<table>
  <tbody>
    <tr><td>t</td></tr>
  </tbody>
</table>

A term holds no blocks, so a lone + under it attaches nothing. It is a plain line, and a plain line ends the term (carve#4861):

carve
:: term
+
: d
html
<dl>
  <dt>term</dt>
</dl>
<p>+
: d</p>

The same after a line that ended the term:

carve
:: A term that
   wraps
+
: d
html
<dl>
  <dt>A term that</dt>
</dl>
<p>wraps
+
: d</p>

A below-column marker after a comment, where no paragraph is open ​

5 conformance fixtures

A comment closes the paragraph. At the content column it retains nothing (CARVE-P0-024, CARVE-P0-005), so a following below-column marker starts a separate list.

carve
- a
  %%%
  x
  %%%
 - s
html
<ul>
  <li>a</li>
  <li>s</li>
</ul>

Ordered markers follow the same column rule:

carve
- a
  %%%
  x
  %%%
 1. o
html
<ul>
  <li>a</li>
</ul>
<ol>
  <li>o</li>
</ol>

A heading-shaped line below the content column is also paragraph text:

carve
- a
  %%%
  x
  %%%
 # h
html
<ul>
  <li>a</li>
</ul>
<section id="h">
  <h1>h</h1>
</section>

CONTROL, and the one that shows this is the mechanism rather than a coincidence about comments: with the paragraph still OPEN the fold is available and the marker is lazy item text, as C3 says. Deleting the comment fence from the first document inverts its answer.

carve
- a
  b
 - s
html
<ul>
  <li>a
b</li>
  <li>s</li>
</ul>

CONTROL. A BLOCK QUOTE leaves its own paragraph open, so the fold is available there too and the marker folds into the quote - the same rule reaching a third answer purely on whether a paragraph is open:

carve
- a
  > q
 - s
html
<ul>
  <li>a
    <blockquote><p>q</p></blockquote>
  </li>
  <li>s</li>
</ul>

A column-zero definition ends an open list item ​

4 conformance fixtures

Column zero is the surrounding document's opener column. A link or footnote definition there interrupts and closes the item, registers as document metadata, and leaves the following block at document level. Only a nonzero column below the item content column reaches no definition opener and folds as literal text. At the content column the definition belongs to the item, as category 228 pins. A comment remains the explicit exception: its invisibility is accepted independently of column and does not itself close the item.

carve
1. x
[t](u)
_u_
[r]: /u
[t][r]
\#
html
<ol>
  <li>x
<a href="u">t</a>
<u>u</u>
<a href="/u">t</a>
#</li>
</ol>
carve
- a
[^f]: note
after[^f]
html
<ul>
  <li>a</li>
</ul>
carve
1. x
 [r]: /u
html
<ol>
  <li>x</li>
</ol>
carve
1. x
   [r]: /u
   [t][r]
html
<ol>
  <li>x
<a href="/u">t</a></li>
</ol>

A definition between two open content columns reaches the outer one ​

4 conformance fixtures

- - x opens items at content columns 2 and 4. A definition written at column 3 is at or past one of them and below the other, and PART 0's AT OR PAST MEANS THE DEEPEST COLUMN THE LINE REACHES answers it against the column the line reaches: it registers in the outer item, and [r][] resolves (markup-carve/carve#1896).

All four neighbouring columns are pinned here rather than the divergent one alone. A row that pinned only column 3 would leave the columns either side of it free, and it is those neighbours that make the rule legible - and that showed the other reading was a hole rather than a boundary. Read as the deepest container still OPEN, column 3 would fold while 2 and 4 registered, so one added space would remove a definition and a second would restore it.

Column 2, the outer item's content column.

carve
- - x
  [r]: /url

See [r][].
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
<p>See <a href="/url">r</a>.</p>

Column 3, strictly between the two. This is the column two engines read as lazy text before the rule was stated.

carve
- - x
   [r]: /url

See [r][].
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
<p>See <a href="/url">r</a>.</p>

Column 4, the inner item's content column.

carve
- - x
    [r]: /url

See [r][].
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
<p>See <a href="/url">r</a>.</p>

Column 5, past the innermost column. The authored base is erased before the line is parsed, so a definition past a column registers exactly as one at it does.

carve
- - x
     [r]: /url

See [r][].
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
<p>See <a href="/url">r</a>.</p>

Adjacent sibling lists survive the round trip ​

3 conformance fixtures

Two lists the parser reads as siblings must still read as two after fmt. Nothing separates them but indentation once their markers match, so the writer keeps one space more on each list than the one before it (PART 11 §1; markup-carve/carve#1088).

carve
1. a

 1. b
html
<ol>
  <li><p>a</p></li>
  <li><p>b</p></li>
</ol>

A third list steps again rather than repeating the first offset, which would put it back in the second list's column.

carve
1. a

 1. b

  1. c
html
<ol>
  <li><p>a</p></li>
  <li><p>b</p></li>
  <li><p>c</p></li>
</ol>

Where the marker already separates them nothing is owed, and the control is that this pair renders the same way with no indentation at all.

carve
- a

* b
html
<ul>
  <li>a</li>
</ul>
<ul>
  <li>b</li>
</ul>

A multi-letter ordered marker opens no list ​

2 conformance fixtures

PART 2 spells the marker as ordered_marker = (digit+ | letter | roman_numeral), ('.' | ')'). abc is not a run of digits, not the single letter the production admits, and not a roman numeral, so abc. item matches nothing and the line is an ordinary paragraph.

ABC) is the same reading in the other case and with the other delimiter. Note that a SINGLE letter still is a marker - it is the second letter that ends the match - and that a roman run of any length still is one, so iv. item is a list.

The executable spec refused both instead, and no corpus document began a line with a multi-letter word and a dot (markup-carve/carve#1188).

carve
abc. item
html
<p>abc. item</p>
carve
ABC) item
html
<p>ABC) item</p>

A block attached after an invisible line leaves the item tight ​

5 conformance fixtures

The section title names the reading carve#5015 withdrew with PART 9 §17 L2. §17 L1 loosens a list when some item holds a blank-line-separated block after an earlier visible block of its own, and its first clause covers an item followed by a blank line before the next sibling marker.

An invisible line - a comment, a definition, an attribute block - renders nothing, so it decides neither. 186-an-invisible-line-does-not-cancel-a-blank-line-separation pins that it does not close the separation a blank opened, and 188-a-floating-attribute-stops-at-the-item-boundary pins the case where nothing visible follows it at all and the item really did end at the blank.

What neither of those can say is what happens when a block ATTACHES after the invisible line and the list has a SECOND item. The block answers as it does when no invisible line is there - - a / blank / - b / - c is loose (87-compact-list-blocks-2), and inserting a line that produces no output cannot make the item tight again (CARVE-P9-013 property 3).

An attribute block:

carve
- a

  {.x}
  - b
- c
html
<ul>
  <li><p>a</p>
    <ul class="x">
      <li>b</li>
    </ul>
  </li>
  <li><p>c</p></li>
</ul>

A comment, which is the same rule with a different invisible line - the class of the gap-filler is not the question:

carve
- a

  %% note
  - b
- c
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
  <li><p>c</p></li>
</ul>

A reference definition:

carve
- a

  [r]: /u
  - b
- c
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
  <li><p>c</p></li>
</ul>

Nor is the block only a nested list. A quote in the same position:

carve
- a

  {.x}
  > q
- c
html
<ul>
  <li><p>a</p>
    <blockquote class="x"><p>q</p></blockquote>
  </li>
  <li><p>c</p></li>
</ul>

And so is a code fence:

carve
- a

  {.x}

code

- c
html
<ul>
  <li><p>a</p>
    <pre class="x"><code>code
</code></pre>
  </li>
  <li><p>c</p></li>
</ul>

A PARAGRAPH after the invisible line loosens the same way - 186-an-invisible-line-does-not-cancel-a-blank-line-separation already pins it, one item and two.

A blank line loosens an item only when a paragraph follows it ​

3 conformance fixtures

The section title names the reading carve#5015 withdrew with PART 9 §17 L2. A blank line now loosens an item whatever block follows it: §17 L1 asks whether the item holds a blank-line-separated block after an earlier visible block of its own, and a container counts as much as a paragraph. carve#1622 found carve-js and carve-php disagreeing about the container, and these rows pin the plain shapes. A tight list's HTML cannot show a paragraph boundary INSIDE a container, but it does show the lead's <p> wrapper, so an ordinary pair can see the difference at the item.

A paragraph after the blank: the item is loose, and every item of the list wraps.

carve
- x

  y
- z
html
<ul>
  <li><p>x</p>
    <p>y</p>
  </li>
  <li><p>z</p></li>
</ul>

The same blank line above a container, which is carve#1622's shape: the item is loose too, and the lead is wrapped. The div's own blank line is the div's.

carve
- x

  ::: d
  a

  b
  • z

```html
<ul>
  <li><p>x</p>
    <div class="d">
      <p>a</p>
      <p>b</p>
    </div>
  </li>
  <li><p>z</p></li>
</ul>

:::

A quote in the same position, because the rule is not about the div specifically:

carve
- x

  > q
- z
html
<ul>
  <li><p>x</p>
    <blockquote><p>q</p></blockquote>
  </li>
  <li><p>z</p></li>
</ul>

Loose list starts directly on its first paragraph ​

1 conformance fixture
carve
- first

  second
- next
html
<ul>
  <li><p>first</p>
    <p>second</p>
  </li>
  <li><p>next</p></li>
</ul>

A resumed lazy run belongs to the innermost marker-line item ​

8 conformance fixtures

A marker line may open more than one list item. Once a flush lazy line folds into the innermost item's paragraph, PART 1 S4 closes nothing: the next line is still placed against that innermost open paragraph, whether it is flush, at the outer item's content column, or at the inner item's content column. A line comment ends that paragraph but keeps the same innermost item open for the next paragraph.

carve
* * u
%
 :
html
<ul>
  <li>
    <ul>
      <li>u
%
:</li>
    </ul>
  </li>
</ul>
carve
* * u
%
  :
html
<ul>
  <li>
    <ul>
      <li>u
%
:</li>
    </ul>
  </li>
</ul>
carve
* * u
%
    :
html
<ul>
  <li>
    <ul>
      <li>u
%
:</li>
    </ul>
  </li>
</ul>
carve
* * u
%%
 :
html
<ul>
  <li>
    <ul>
      <li>u
:</li>
    </ul>
  </li>
</ul>

A collected definition instead leaves no paragraph open. The same columns then select the surviving container: below the outer item closes both lists, the outer content column belongs to the outer item, and the inner content column belongs to the inner item. A comment cannot reopen a definition-only item.

carve
* * [d]: u
 :
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>:</p>
carve
* * [d]: u
  :
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
    :
  </li>
</ul>
carve
* * [d]: u
    :
html
<ul>
  <li>
    <ul>
      <li>:</li>
    </ul>
  </li>
</ul>
carve
* * [d]: u
%%
:
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>:</p>
2 conformance fixtures

A definition written directly after a list marker is metadata, not item content, and what stands above it does not change that. NO OPEN PARAGRAPH, NO LAZY LINE decides it: a definition line, a heading, a comment and a marker line are each non-blank and none of them leaves a paragraph for the marker line to fold into, so the item is real and the definition in it defines a reference. The item is structurally present and renders empty.

carve
[f]: t
* [d]: u

[go][d]
html
<ul>
  <li></li>
</ul>
<p><a href="u">go</a></p>

Only an OPEN paragraph makes the marker line lazy text. A list does not interrupt one (PART 9 section 10), so here both lines are one paragraph, the definition is part of its text, and nothing is defined.

carve
para
* [d]: u
html
<p>para
* [d]: u</p>

A lazy marker line's definition defines nothing, in any container ​

5 conformance fixtures

NO OPEN PARAGRAPH, NO LAZY LINE holds wherever the paragraph is. A list does not interrupt one (PART 9 section 10), so a marker line under an open quoted paragraph is lazy text of that paragraph - the definition on it renders as the text the author typed and enters no symbol table, exactly as at the document level. The reference below stays literal because nothing defined it.

carve
> r
> - [d]: u

[go][d]
html
<blockquote><p>r
- [d]: u</p></blockquote>
<p>[go][d]</p>

A div holds a paragraph open the same way, and adds no per-line prefix for the question to hide behind.

carve
::: n
r
- [d]: u
:::

[go][d]
html
<div class="n">
  <p>r
- [d]: u</p>
</div>
<p>[go][d]</p>

The footnote kind answers alike - one rule, both definition markers.

carve
> r
> - [^f]: t

see[^f]
html
<blockquote><p>r
- [^f]: t</p></blockquote>
<p>see[^f]</p>

With no paragraph open the marker opens a real item, and the definition in it is metadata: it renders nothing where it was written and the reference resolves.

carve
> - [d]: u

[go][d]
html
<blockquote>
  <ul>
    <li></li>
  </ul>
</blockquote>
<p><a href="u">go</a></p>

A blank quoted line closes the paragraph, so the marker below it opens an item too.

carve
> r
>
> - [d]: u

[go][d]
html
<blockquote>
  <p>r</p>
  <ul>
    <li></li>
  </ul>
</blockquote>
<p><a href="u">go</a></p>

A marker folds only strictly between the item's base and content column ​

9 conformance fixtures

A list marker written under an OPEN item folds into that item's lead text only where its column is STRICTLY BETWEEN the item's base column and its content column. At the base column it starts a SIBLING; at or past the content column it NESTS. Both of those open a real item, so a definition written on such a marker is metadata and registers; inside the window the line is the open item's own lead text and the reference stays literal (markup-carve/carve#1906).

The window WIDENS with the item, which is the property a corpus has to hold. Under - it is the single column 1; under - it is 1, 2 and 3:

item hands out atfoldsopens an item
210, 2
41, 2, 30, 4

Both EDGES are pinned at both widths, and both directions of the error with them: a reader that collects too little fails the rows where a marker at the base or the content column must register, and one that collects too much fails the rows inside the window. The columns alone do not separate the two readings - column 2 opens an item under - and folds under - - so the two widths have to be pinned together, or a reader that answers by a fixed column passes both.

Under - , the base column. A sibling marker opens a real item, so its definition is metadata.

carve
- lead
- [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
  <li></li>
</ul>
<p>See <a href="/t">t</a>.</p>

Column 1, the whole of this item's window. The marker is lead text and the reference stays literal.

carve
- lead
 - [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
  <li></li>
</ul>
<p>See <a href="/t">t</a>.</p>

Column 2, the content column. The marker nests and its definition registers.

carve
- lead
  - [t]: /t

See [t][].
html
<ul>
  <li>lead
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>See <a href="/t">t</a>.</p>

Under - , the base column again. Widening the item does not move this edge.

carve
-   lead
- [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
  <li></li>
</ul>
<p>See <a href="/t">t</a>.</p>

Column 2, which opened an item three rows above and is inside the window here. This is the pair that separates the window from a fixed column.

carve
-   lead
  - [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
  <li></li>
</ul>
<p>See <a href="/t">t</a>.</p>

Column 3, the window's far edge - one column below the content column, and still lead text.

carve
-   lead
   - [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
  <li></li>
</ul>
<p>See <a href="/t">t</a>.</p>

Column 4, the content column. The marker nests and the definition registers.

carve
-   lead
    - [t]: /t

See [t][].
html
<ul>
  <li>lead
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>See <a href="/t">t</a>.</p>

The base column is read from the COLUMN, not from the marker family. An ordered marker there ends the bullet list and opens its own, so the definition is still metadata.

carve
- lead
1. [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
</ul>
<ol>
  <li></li>
</ol>
<p>See <a href="/t">t</a>.</p>

A folded marker does not become the owner the next line is measured against. The second line is inside the window of the item that is still open and stays lead text, so the third line is measured against that same item and stays text too.

carve
-   lead
 - prose
 - [t]: /t

See [t][].
html
<ul>
  <li>lead</li>
  <li>prose</li>
  <li></li>
</ul>
<p>See <a href="/t">t</a>.</p>

A continuation marker attaches a block only at its owner's marker column ​

8 conformance fixtures

A + at an open marker column attaches one block starting at that column. A block at another column follows ordinary ownership rules (markup-carve/carve#3421).

carve
* * +
x
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>x</p>

Column 2 is the inner item's marker column, so the inner item takes the paragraph.

carve
* * +
  x
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>

Column 1 is no marker column: the + is refused and the line folds into it.

carve
* * +
 x
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>x</p>

At one level, column 0 is the marker column and attaches. The item's content column is refused, so the line folds into the + (carve#4409).

carve
- +
x
html
<ul>
  <li>x</li>
</ul>
carve
- +
  x
html
<ul>
  <li>x</li>
</ul>

The + at the nested item's marker column interrupts its paragraph and attaches c to that item (markup-carve/carve#3421).

carve
- a
  - b
  +
  c
html
<ul>
  <li>a
    <ul>
      <li>b
        c
      </li>
    </ul>
  </li>
</ul>

The same reading one column out. The marker sits at the outer item's marker column, so the line at column 2 refuses it. The refused marker renders nothing and leaves the outer item as the line's owner (carve#5637).

carve
- x
  - L
+
  p
html
<ul>
  <li>x
    <ul>
      <li>L</li>
    </ul>
    p
  </li>
</ul>

The + at column 1 matches no open marker column, so it reaches the output as ordinary text (markup-carve/carve#3421).

carve
- x
  - L
 +
html
<ul>
  <li>x
    <ul>
      <li>L
+</li>
    </ul>
  </li>
</ul>

A longer run at a list boundary is written as exactly three blank lines ​

1 conformance fixture

The canonical writer normalizes a blank-line run between two blocks to ONE. PART 9 §11 N1a's hard list boundary is the exception: one blank line would MERGE the two lists, so the run has to survive. PART 11 §10i fixes what survives at EXACTLY THREE, whatever the author typed - N1a reads THREE OR MORE, so every longer run parses the same and the writer would otherwise have unboundedly many canonical spellings for one document.

The source below has SIX. Its rendered HTML is the same two lists a three-blank source gives, which is why the .fmt sidecar beside this pair - not the HTML - is what measures the collapse.

carve
- apples






- oranges
html
<ul>
  <li>apples</li>
</ul>
<ul>
  <li>oranges</li>
</ul>

One consumed boolean spells the looseness no blank line can ​

1 conformance fixture

PART 9 section 17 L7. Carve spells looseness with a blank line, and a blank line needs two things to stand between, so the shape with nothing on one side has no spelling at all: a ONE-ITEM loose list, and a definition description holding ONE block. The second is the worse case, because a blank line between two ENTRIES does not loosen a <dl> in the first place - only a second block inside the description wraps it - so <dd><p>x</p></dd> is unspellable at every entry count.

loose on the preceding block-attribute line says both, in the one place the axis exists, and is CONSUMED: neither <ul> nor <dl> below carries a loose attribute. It follows PART 12 section 15's header-rows in all three respects - the same line, a structural fact carried as a boolean, consumed rather than emitted.

The <dl> pair carries a second finding. This repository's own oracle never read a definition list's block attributes at all: {.foo} before a :: term line parsed correctly, attached to the node and was dropped on the way out, where carve-js emits <dl class="foo">. No corpus document had ever put an attribute line before a definition list, so nothing was red - the same gap carve#626 and carve#693 left one container over.

Both documents are declared in resources/engine-pin-drift.txt: the pinned build has not shipped the key and renders the attribute literally, as <ul loose="">.

carve
{loose}
- Note text.
html
<ul>
  <li><p>Note text.</p></li>
</ul>

The writer spells looseness only where a blank line cannot ​

2 conformance fixtures

The other half of L7, and the load-bearing half. loose is legal on a container the blank lines already loosened - it is a no-op there, deliberately, so a producer that always emits it stays simple. What the CANONICAL WRITER does is a separate question, and the answer is that it emits the key only where the blank-line spelling cannot express the looseness. PART 12 section 15's writer "retains header-rows / footer-rows when they are present" rather than deriving them onto every table, and PART 11 section 2 spends a mark only where omitting it would change the re-parsed document; on the list below the blank line already says loose, so the key would be idle by exactly that test.

The alternative - emit it on every loose container - would rewrite a large share of this corpus and of every document anyone has written, and would gain nothing. So the rule needs a fixture that goes red when a writer starts decorating everything, which is what the .fmt sidecar beside this pair is: the HTML is identical under both spellings, so no HTML fixture can see the difference.

carve
- alpha

- beta
html
<ul>
  <li><p>alpha</p></li>
  <li><p>beta</p></li>
</ul>

THE ITEM COUNT IS NOT THE TEST, and this is where an implementation of the rule above goes wrong. "Two or more items already say it" is true, so the tempting converse - fewer than two items, therefore decorate - looks like the same rule read backwards. It is not: a list with one item can be loose because the blank line sits INSIDE that item, and then the blank-line spelling did express the looseness after all. The list below is that shape. So is corpus document 05-lists-11, which is a one-item ordered list whose item holds two paragraphs - a writer keyed on the item count rewrites it, and parse(fmt(x)) == parse(x) fails on a document that was never lossy.

The decidable test is a RE-PARSE, over the document rather than over the render: write the body without the key, read it back, and emit the key only where the container's own looseness field did not survive the trip. The item count is sound as a shortcut in ONE direction only - two or more items always re-parse loose, so the extra read can be skipped there, which keeps it off almost every list in this corpus.

carve
- alpha

  beta
html
<ul>
  <li><p>alpha</p>
    <p>beta</p>
  </li>
</ul>

A floating attribute does not widen a list item's content column ​

7 conformance fixtures

Marker-attached attributes are metadata with zero column width. The heading in each of these first three cases is therefore exactly at the item's content column and remains inside it; the marker-line floating attribute attaches to that heading (PART 1 S4, PART 9 §15 A4, PART 9 §24 C3; carve-rs#1373).

carve
-{#k} {#h}
  # h
html
<ul>
  <li id="k">
    <h1 id="h">h</h1>
  </li>
</ul>
carve
1.{#k} {#h}
   # h
html
<ol>
  <li id="k">
    <h1 id="h">h</h1>
  </li>
</ol>
carve
-{#k} [x] {#h}
  # h
html
<ul class="task-list">
  <li data-task-state="x" id="k"><input type="checkbox" checked disabled> 
    <h1 id="h">h</h1>
  </li>
</ul>

Moving the continuation one column left puts it genuinely below the content column. Because a floating attribute opens no paragraph, the item closes, the attribute is dropped at its scope boundary, and the heading-shaped residue is literal top-level paragraph text. Ordinary marker-line text is the control: it does open a paragraph, so the same below-column line lazily continues it.

carve
-{#k} {#h}
 # h
html
<ul>
  <li id="k"></li>
</ul>
<section id="h">
  <h1>h</h1>
</section>
carve
-{#k} text
 # h
html
<ul>
  <li id="k">text</li>
</ul>
<section id="h">
  <h1>h</h1>
</section>
carve
1.{#k} {#h}
  # h
html
<ol>
  <li id="k"></li>
</ol>
<section id="h">
  <h1>h</h1>
</section>
carve
-{#k} [x] {#h}
 # h
html
<ul class="task-list">
  <li data-task-state="x" id="k"><input type="checkbox" checked disabled> </li>
</ul>
<section id="h">
  <h1>h</h1>
</section>

The continuation marker attaches one block in every container ​

4 conformance fixtures

§17 L3 defines + as one operation: ownership of the next flush-left block passes to the container at column 0 of the line's quote level, and the block is then parsed like any other. The count is ONE block, and the container does not answer differently because of what kind of block it is attaching.

The clause's own example, in a list item: the marker takes the paragraph and leaves the quote at document level, where a second marker would be needed to attach it.

carve
- a
+
para
> q
html
<ul>
  <li>a
    para
  </li>
</ul>
<blockquote><p>q</p></blockquote>

The same document in a footnote body. The note takes the paragraph and nothing else — the reading that made this two blocks was the extent measured without the one-block narrowing every other container applies.

carve
[^n]: a
+
para
> q

see[^n]
html
<blockquote><p>q</p></blockquote>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a</p>
      <p>para<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

And in a definition description, which carries continuation_marker_block for the same reason.

carve
:: t
:  a
+
para
> q
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <p>para</p>
  </dd>
</dl>
<blockquote><p>q</p></blockquote>

A quote attached to a quote NESTS, exactly as a list or a fence attached to one would. The marker only ever attaches, so a following quote line cannot make it a no-op.

carve
> a
+
> q
html
<blockquote>
  <p>a</p>
  <blockquote><p>q</p></blockquote>
</blockquote>

The continuation marker's column gate reaches every container ​

19 conformance fixtures

A + at an open marker column attaches one block starting at that column in every container. A block at another column follows ordinary ownership rules (markup-carve/carve#3421).

A column below the body's minimum. The note consumes the comment and retains the line as a new paragraph of the note (CARVE-P0-005, ruled on markup-carve/carve#2978), so in a footnote body and a description body the comment row no longer answers as the marker row does.

carve
[^a]: intro
%% c
 more

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>intro
more<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The marker is no comment. It attaches nothing, and the paragraph lands at document level, above the endnotes section.

carve
[^a]: intro
+
 more

see[^a]
html
<p>more</p>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>intro<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The body's OWN minimum column is not column 0 either, so it is refused for the same reason - the marker names one column, not a range reaching down to the container's floor. An indented comment at that column is a different document and stays inside the body, which is pinned above under "A comment in a footnote body is invisible in both spellings". The comment where the marker was closes no footnote body (carve#4862, which replaced the closing reading of carve#3885), so the follower at the body column stays in the note.

carve
[^a]: intro
%% c
  more

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>intro
more<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^a]: intro
+
  more

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>intro</p>
      <p>more<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Column 0 is what the marker does reach, and the positive row is what makes the two above mean something: the same note, the same paragraph, one column over.

carve
[^a]: intro
+
more

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>intro</p>
      <p>more<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A description body's content column is 3 here, so column 2 is below it. The comment spelling retains the line in the dd:

carve
:: term
:  intro
%% c
  more
html
<dl>
  <dt>term</dt>
  <dd>intro
more</dd>
</dl>

And the marker, which attaches nothing: the ordinary rules put the paragraph outside the dd.

carve
:: term
:  intro
+
  more
html
<dl>
  <dt>term</dt>
  <dd>intro</dd>
</dl>
<p>more</p>

At column 0 the description takes it, as a second block of the dd.

carve
:: term
:  intro
+
more
html
<dl>
  <dt>term</dt>
  <dd>
    <p>intro</p>
    <p>more</p>
  </dd>
</dl>

A column never reaches into a quote (§10 I5, markup-carve/carve#1384), and the marker does not reach out of one for it. The quoted paragraph is closed here so the row asks about the COLUMN and nothing else; the blank-line control and the comment control agree with each other.

carve
> intro
>

  more
html
<blockquote><p>intro</p></blockquote>
<p>more</p>
carve
> intro
>
%% c
  more
html
<blockquote><p>intro</p></blockquote>
<p>more</p>
carve
> intro
>
+
  more
html
<blockquote><p>intro</p></blockquote>
<p>more</p>

At column 0 the marker attaches, which is the only spelling that puts a block into a quote without a > in front of it.

carve
> intro
>
+
more
html
<blockquote>
  <p>intro</p>
  <p>more</p>
</blockquote>

The list item is the container that always held the gate, and it answers the band the same way: the marker attaches nothing and the line reaches the item by its own column, exactly as the comment spelling leaves it.

carve
- intro
+
  more
html
<ul>
  <li>intro
    more
  </li>
</ul>

The + at column 1 matches neither the item's marker column nor the quote's marker column, so the quoted paragraph folds it in (markup-carve/carve#3421).

carve
- x
  > q
 +
html
<ul>
  <li>x
    <blockquote><p>q
+</p></blockquote>
  </li>
</ul>

A word at the same column follows the same ordinary text path.

carve
- x
  > q
 ZZZ
html
<ul>
  <li>x
    <blockquote><p>q
ZZZ</p></blockquote>
  </li>
</ul>

The + is at the quote's marker column. With no block following it, the marker adds nothing (markup-carve/carve#3421).

carve
- x
  > q
  +
html
<ul>
  <li>x
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

A column-0 + is the marker for the outer item and adds nothing here because no flush-left block follows it.

carve
- x
  > q
+
html
<ul>
  <li>x
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

Past the quote's marker the + is quoted content, and text again.

carve
- x
  > q
   +
html
<ul>
  <li>x
    <blockquote><p>q
+</p></blockquote>
  </li>
</ul>

The same two columns without the item around them. A top-level quote's marker sits at column 0, so the marker there attaches the list below it, and one column right it is text in the quoted paragraph.

carve
> q
 +
- m
html
<blockquote><p>q
+
- m</p></blockquote>

A block that opens a tight item is written on the marker line ​

3 conformance fixtures

The canonical writer keeps a tight item's first block on the marker line and puts the continuation marker below it (PART 11 §7e).

carve
- > p
+
> z
html
<ul>
  <li>
    <blockquote><p>p</p></blockquote>
    <blockquote><p>z</p></blockquote>
  </li>
</ul>

The bare-marker spelling parses to the same item and is rewritten to that form.

carve
- +
> p
+
> z
html
<ul>
  <li>
    <blockquote><p>p</p></blockquote>
    <blockquote><p>z</p></blockquote>
  </li>
</ul>

A table below a table stays inside the item in a quote host too.

carve
> - | a |
>   | b |
> +
> | c |
> | d |
html
<blockquote>
  <ul>
    <li>
      <table>
        <tbody>
          <tr><td>a</td></tr>
          <tr><td>b</td></tr>
        </tbody>
      </table>
      <table>
        <tbody>
          <tr><td>c</td></tr>
          <tr><td>d</td></tr>
        </tbody>
      </table>
    </li>
  </ul>
</blockquote>

A refused description plus folds a line below column 0, and a comment does not ​

7 conformance fixtures

: + attaches only a follower at the description's marker column, column 0 (§17 L3, carve#4409). At column 1 or 2 it is refused and is a letter, so the line folds into the paragraph it opens. A comment in the same place opens no paragraph and leaves the line outside. Each pair below is one document twice, once with the marker and once with its control.

The payload one column in. The comment spelling ends the body, and the dd it leaves is empty because a comment renders nothing.

carve
:: t
:  %% c
 flush
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>flush</p>

The marker is refused, and the line folds into the + in the dd.

carve
:: t
:  +
 flush
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>flush</p>

Column 2 is the last column below the body's own content column, and it is refused for the same reason - the marker names ONE column, not a range reaching down to the container's floor.

carve
:: t
:  %% c
  flush
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>flush</p>
carve
:: t
:  +
  flush
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>flush</p>

The positive half. At column 0 the marker is not refused, and the first-block form keeps the one flush-left block it names - so a rule that refused everything would not satisfy this row.

carve
:: t
:  +
flush
html
<dl>
  <dt>t</dt>
  <dd>flush</dd>
</dl>

A list item reads the same in both spellings: the comment leaves the line outside, and the refused + folds it in.

carve
- %% c
 flush
html
<ul>
  <li></li>
</ul>
<p>flush</p>
carve
- +
 flush
html
<ul>
  <li></li>
</ul>
<p>flush</p>

An empty description body is written with the empty sentinel ​

5 conformance fixtures

PART 11 §7d (markup-carve/carve#1827) pins the canonical spelling for a definition_description that holds no blocks: the marker, its separator space, and the sentinel attribute block {empty}. §7b already spells an empty footnote definition body the same way, and this is the same shape one construct over.

The sentinel is an attribute block, so PART 9 §15 A4 drops it - a block-attribute line with no following block inside its own container reaches nothing - and the description is left empty. It claims NO line below it at any column, which is what separates it from the accepted wider-separator : +: the first-block marker attaches a following flush-left block, so it spells an empty body only when a blank line follows.

carve
:: t
: {empty}

flush
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>flush</p>

At end of input, where there is no following block at all.

carve
:: t
: {empty}
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>

The line below it is not claimed even at column 0, which is the whole reason the sentinel needs no blank line after it. The same document spelled with the accepted wider-separator : + puts flush inside the dd.

carve
:: t
: {empty}
flush
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>flush</p>

An entry AFTER the empty one. The empty description is spelled where it stands, so this is ONE list and the second term keeps its own description rather than the first term inheriting it (markup-carve/carve#1636).

carve
:: t1
: {empty}
:: t2
: d2
html
<dl>
  <dt>t1</dt>
  <dd></dd>
  <dt>t2</dt>
  <dd>d2</dd>
</dl>

Two empty descriptions in a row, so neither reads as a term sharing the other's body.

carve
:: t1
: {empty}
:: t2
: {empty}
html
<dl>
  <dt>t1</dt>
  <dd></dd>
  <dt>t2</dt>
  <dd></dd>
</dl>

A colon followed by only whitespace is not a description ​

8 conformance fixtures

A description marker takes a separator space and non-empty content (PART 2, MARKER REQUIRES CONTENT), so a : line carrying nothing but whitespace opens no description. It is a plain line, so it starts a paragraph after the term (carve#4861). The line's trailing whitespace run is dropped (PART 2, NO TRAILING WHITESPACE), which makes every such spelling the same document as the bare marker - the separator's width and the marker's own trailing space cannot carry meaning.

The separator is space, and a tab never satisfies it (PART 1, MARKER SEPARATORS AND PADDING SLOTS). The tab spelling is therefore refused at the separator rather than at the content test, and lands in the same place.

One separator space.

carve
:: t
: 

flush
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>
<p>flush</p>

Two, and three: the width is not read, because there is nothing for it to position.

carve
:: t
:  

flush
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>
<p>flush</p>
carve
:: t
:   

flush
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>
<p>flush</p>

A tab, which the separator does not admit.

carve
:: t
:	

flush
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>
<p>flush</p>

The content control. {} is literal text, not an attribute block, so the marker has content and the description forms.

carve
:: t
: {}

flush
html
<dl>
  <dt>t</dt>
  <dd>{}</dd>
</dl>
<p>flush</p>

The whitespace control. A bare marker has an empty trailing run, so nothing is left to drop.

carve
:: t
:

flush
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>
<p>flush</p>

The cell between those two: a separator space, and then a tab. The separator IS satisfied here, so this spelling is refused at the content test rather than at the separator. After the greedy space run a lone tab is trailing whitespace and nothing else, and MARKER REQUIRES CONTENT ignores trailing whitespace, so the marker opens nothing and the line is plain like the rows above. The greedy run is spaces only, which is what leaves the tab to be judged as content (markup-carve/carve#1836).

carve
:: t
: 	

flush
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>
<p>flush</p>

The reach control. The same separator space and the same tab, with text behind it: the content test now finds a character that is neither space nor tab, so the description opens and the tab is content. Only a run of nothing but spaces and tabs is trailing whitespace.

carve
:: t
: 	text

flush
html
<dl>
  <dt>t</dt>
  <dd>	text</dd>
</dl>
<p>flush</p>

A first-block marker in a footnote body or a quote attaches only at its marker column ​

6 conformance fixtures

Every container that takes the continuation marker also takes it in the FIRST-BLOCK position (§17 L4): - +, : +, > + and [^a]: + open a body whose content is the following block at the marker column. In a footnote body and a block quote, a + with no such block under it is ordinary text, and a line at another column lands wherever the ordinary column rules put it (markup-carve/carve#1821, markup-carve/carve#3105). That includes a line at the note's body column (CARVE-P9-067, carve#4409).

A footnote body whose first line is a lone + over a line at its marker column. The + is the marker, and the note holds the paragraph flush.

carve
[^a]: +
flush

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>flush<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Column 1 is not the marker column, so the + is the note's text, and the line folds into it.

carve
[^a]: +
 flush

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>flush<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

At column 2 the line is inside the body, and it folds into the paragraph the + opened - one paragraph reading + flush, not two blocks and not an attachment.

carve
[^a]: +
  flush

see[^a]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>flush<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

In a block quote, column 0 is the first-block form: the quote holds the paragraph flush.

carve
> +
flush
html
<blockquote><p>flush</p></blockquote>

Column 1 is not the marker column, so the + is the quote's text, and the line reaches that paragraph by §10 I6's lazy fold.

carve
> +
 flush
html
<blockquote>

</blockquote>
<p>flush</p>

Column 2, the column that would be the quote's content column if a marker were reading one here. It is not, and the row is the control that says so.

carve
> +
  flush
html
<blockquote>

</blockquote>
<p>flush</p>

A band paragraph after an invisible line leaves the item loose ​

5 conformance fixtures

A comment at the content column retains nothing, so the below-column followers in the first two rows open document paragraphs (CARVE-P0-024, CARVE-P0-005). The third row's content-column follower is the item's second paragraph, and the blank-line separation makes the item loose (CARVE-P9-013 property 3). The fourth row's comment fence also leaves the follower outside the item, and the last row's below-column marker starts a separate list.

carve
- t

  %% c
 z
html
<ul>
  <li>t</li>
</ul>
<p>z</p>
carve
10. t

    %% c
   z
html
<ol start="10">
  <li>t</li>
</ol>
<p>z</p>
carve
10. t

    %% c
    z
html
<ol start="10">
  <li><p>t</p>
    <p>z</p>
  </li>
</ol>
carve
- t

  %%%
  c
  %%%
 z
html
<ul>
  <li>t</li>
</ul>
<p>z</p>
carve
- t

  %% c
 - b
- s
html
<ul>
  <li><p>t</p></li>
  <li><p>b</p></li>
  <li><p>s</p></li>
</ul>

A paragraph in a held container does not loosen the item ​

3 conformance fixtures

PART 9 section 17 L1 counts the item's own paragraphs. A second paragraph in its description body keeps the item tight. The control puts the second paragraph in the item itself, which makes it loose (carve#2988).

carve
- intro
  :: term
  : body

    text
html
<ul>
  <li>intro
    <dl>
      <dt>term</dt>
      <dd>
        <p>body</p>
        <p>text</p>
      </dd>
    </dl>
  </li>
</ul>
carve
- :: term
  : body

    text
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>
        <p>body</p>
        <p>text</p>
      </dd>
    </dl>
  </li>
</ul>
carve
- intro
  :: term
  : body

  text
html
<ul>
  <li><p>intro</p>
    <dl>
      <dt>term</dt>
      <dd>body</dd>
    </dl>
    <p>text</p>
  </li>
</ul>

A description marker followed by a no-break space has content ​

3 conformance fixtures

The content test after a description marker ignores a space and a tab and nothing else (CARVE-P2-027). A no-break space after the separator is content, so the line opens a description that holds it, alone or before text.

carve
:: t
:  x
html
<dl>
  <dt>t</dt>
  <dd>&nbsp;x</dd>
</dl>
carve
:: t
:
html
<dl>
  <dt>t</dt>
  <dd>&nbsp;</dd>
</dl>

The control. A marker followed by spaces only has no content and is a plain line after the term (carve#4861).

carve
:: t
:
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>

Captions in list items do not create a paragraph gap ​

35 conformance fixtures

The caption slot permits zero or one blank line after its host. That blank does not loosen the enclosing list. Two blanks detach the caption; the resulting paragraph does loosen the list. These cases cover each captionable host. They also cover hosts after nested lists and hosts opened after a blank. A blank before the host itself stands between two of the item's blocks and loosens the list (PART 9 §17 L1).

No blank before a table caption

carve
- | a |
  ^ cap
- c
html
<ul>
  <li>
    <table>
      <caption>cap</caption>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
  </li>
  <li>c</li>
</ul>

One blank before a table caption

carve
- | a |

  ^ cap
- c
html
<ul>
  <li>
    <table>
      <caption>cap</caption>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
  </li>
  <li>c</li>
</ul>

Two blanks detach a table caption

carve
- | a |


  ^ cap
- c
html
<ul>
  <li>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    <p>^ cap</p>
  </li>
  <li><p>c</p></li>
</ul>

One blank before an image caption

carve
- ![a](b.png)

  ^ cap
- c
html
<ul>
  <li>
    <figure>
      <img src="b.png" alt="a">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

One blank before a quote caption

carve
- > q

  ^ cap
- c
html
<ul>
  <li>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

One blank before a code listing caption

carve
- ```
  x
  ```

  ^ cap
- c
html
<ul>
  <li>
    <figure>
      <pre><code>x
</code></pre>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

One blank before an equation caption

carve
- $$`x`

  ^ cap
- c
html
<ul>
  <li>
    <figure>
      <p><span class="math display" role="math">\[x\]</span></p>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

One blank before a figure group caption

carve
- ::: figure
  ![a](b.png)

^ cap

  • c

```html
<ul>
  <li>
    <figure class="carve-figure-group">
      <img src="b.png" alt="a">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

:::

Two blanks detach a figure group caption

carve
- ::: figure
  ![a](b.png)

^ cap

  • c

```html
<ul>
  <li>
    <figure class="carve-figure-group">
      <img src="b.png" alt="a">
    </figure>
    <p>^ cap</p>
  </li>
  <li><p>c</p></li>
</ul>

:::

A quote after item prose still takes its caption

carve
- text
  > q

  ^ cap
- c
html
<ul>
  <li>text
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

A caption after plain text is a second paragraph

carve
- text

  ^ cap
- c
html
<ul>
  <li><p>text</p>
    <p>^ cap</p>
  </li>
  <li><p>c</p></li>
</ul>

An earlier caret paragraph does not loosen an attached quote

carve
- ^ cap
  > q

  ^ cap
- c
html
<ul>
  <li>^ cap
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

A detached quote caption in a sublist does not loosen its parent

carve
- a
  - > q


    ^ cap
- c
html
<ul>
  <li>a
    <ul>
      <li>
        <blockquote><p>q</p></blockquote>
        <p>^ cap</p>
      </li>
    </ul>
  </li>
  <li>c</li>
</ul>

A multi-line attached caption keeps the list tight

carve
- ^ cap
  > q

  ^ cap
  more
- c
html
<ul>
  <li>^ cap
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap
more</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

An attached quote caption in a sublist keeps both lists tight

carve
- a
  - > q

    ^ cap
- c
html
<ul>
  <li>a
    <ul>
      <li>
        <figure>
          <blockquote><p>q</p></blockquote>
          <figcaption>cap</figcaption>
        </figure>
      </li>
    </ul>
  </li>
  <li>c</li>
</ul>

A caret inside an open list-item fence stays code

carve
- ```
  x

  ^ cap
  • c

```html
<ul>
  <li>
    <pre><code>x

^ cap
</code></pre>
  </li>
  <li>c</li>
</ul>

One blank before a quote caption after a nested list

carve
- - text
  > q

  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

One blank before a figure group caption after a nested list

carve
- - text
  ::: figure
  ![a](b.png)
  :::

  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure class="carve-figure-group">
      <img src="b.png" alt="a">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

Item prose and a nested list before a quote caption

carve
- x
  - text
  > q

  ^ cap
- c
html
<ul>
  <li>x
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ul>

One blank before a table caption after a nested list

carve
- - text
  | a |

  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <table>
      <caption>cap</caption>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
  </li>
  <li>c</li>
</ul>

An ordered item holds a nested list before a quote caption

carve
1. - text
   > q

   ^ cap
2. c
html
<ol>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li>c</li>
</ol>

A quoted list holds a nested list before a quote caption

carve
> - - text
>   > q
>
>   ^ cap
> - c
html
<blockquote>
  <ul>
    <li>
      <ul>
        <li>text</li>
      </ul>
      <figure>
        <blockquote><p>q</p></blockquote>
        <figcaption>cap</figcaption>
      </figure>
    </li>
    <li>c</li>
  </ul>
</blockquote>

A blank opens a quote before its caption

carve
- text

  > q

  ^ cap
- c
html
<ul>
  <li><p>text</p>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li><p>c</p></li>
</ul>

A blank opens a figure group before its caption

carve
- text

  ::: figure
  ![a](b.png)
  :::

  ^ cap
- c
html
<ul>
  <li><p>text</p>
    <figure class="carve-figure-group">
      <img src="b.png" alt="a">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li><p>c</p></li>
</ul>

A blank opens a table before its caption

carve
- text

  | a |

  ^ cap
- c
html
<ul>
  <li><p>text</p>
    <table>
      <caption>cap</caption>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
  </li>
  <li><p>c</p></li>
</ul>

A blank opens the final quote before its caption

carve
- text

  > q

  ^ cap
html
<ul>
  <li><p>text</p>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
</ul>

A blank between sibling items still loosens the list

carve
- - text
  > q

  ^ cap

- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li><p>c</p></li>
</ul>

A second paragraph after the caption still loosens the list

carve
- - text
  > q

  ^ cap

  Body.
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
    <p>Body.</p>
  </li>
  <li><p>c</p></li>
</ul>

A caption line with no host above it is a paragraph and loosens the list

carve
- text

  | a |
  |b

  ^ cap
- c
html
<ul>
  <li><p>text</p>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    <p>|b</p>
    <p>^ cap</p>
  </li>
  <li><p>c</p></li>
</ul>

A folded equation block leaves the caption line without a host and loosens the list

carve
- - text
  $$
  x
  $$

  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text
$$
x
$$</li>
    </ul>
    <p>^ cap</p>
  </li>
  <li><p>c</p></li>
</ul>

A folded image leaves the caption line without a host and loosens the list

carve
- - text
  ![i](x.png)

  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text
<img src="x.png" alt="i"></li>
    </ul>
    <p>^ cap</p>
  </li>
  <li><p>c</p></li>
</ul>

An image paragraph after a nested list loosens the list with a caption gap

carve
- - text

  ![i](x.png)

  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <img src="x.png" alt="i">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li><p>c</p></li>
</ul>

An image paragraph after a nested list loosens the list without a caption gap

carve
- - text

  ![i](x.png)
  ^ cap
- c
html
<ul>
  <li>
    <ul>
      <li>text</li>
    </ul>
    <figure>
      <img src="x.png" alt="i">
      <figcaption>cap</figcaption>
    </figure>
  </li>
  <li><p>c</p></li>
</ul>

A repeated caption line after an attached caption is a paragraph and leaves the item tight

carve
- ![]()

  ^ cap
  ^ cap
html
<ul>
  <li>
    <figure>
      <img src="" alt="">
      <figcaption>cap</figcaption>
    </figure>
    ^ cap
  </li>
</ul>

A blank line before the repeated caption line loosens the item

carve
- ![]()
  ^ cap

  ^ cap
html
<ul>
  <li>
    <figure>
      <img src="" alt="">
      <figcaption>cap</figcaption>
    </figure>
    <p>^ cap</p>
  </li>
</ul>

A fence run that dedents out of a child keeps the outer item tight ​

14 conformance fixtures

A fence opened in a child item can be closed by a run at the outer item's content column. That run opens a new, unclosed code block in the outer item, so the blank line and text below it are payload. The outer item holds one paragraph, and the blank inside the child belongs to the child (corpus 144, 563), so L1 reads the list as tight. The child item is loose: its blank stands between its lead and its fence. A blank before the next sibling still loosens it (L1c), and a run that closes inside the child leaves tail as a second paragraph.

A fence run that dedents to the outer content column

carve
- outer
  - head

    ```
    a
  ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

A closer between the outer and child content columns

carve
- outer
  - head

    ```
    a
   ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

A tilde run

carve
- outer
  - head

    ~~~
    a
   ~~~

  tail
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

An opener indented past the child content column

carve
- outer
  - head

        ```
        a
   ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

A trailing line at the child content column

carve
- outer
  - head

    ```
    a
   ```

    tail
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
 tail
</code></pre>
  </li>
</ul>

A second child item above the run

carve
- outer
  - one
  - two

    ```
    a
  ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li><p>one</p></li>
      <li><p>two</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

An ordered outer item

carve
1. outer
   - head

     ```
     a
   ```

   tail
html
<ol>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ol>

A list inside a block quote

carve
> - outer
>   - head
>
>     ```
>     a
>   ```
>
>   tail
html
<blockquote>
  <ul>
    <li>outer
      <ul>
        <li><p>head</p>
          <pre><code>a
</code></pre>
        </li>
      </ul>
      <pre><code>
tail
</code></pre>
    </li>
  </ul>
</blockquote>

A next sibling directly after the payload stays tight

carve
- outer
  - head

    ```
    a
  ```

  tail
- next
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
  <li>next</li>
</ul>

A blank before the next sibling loosens the list

carve
- outer
  - head

    ```
    a
  ```

- next
html
<ul>
  <li><p>outer</p>
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
</code></pre>
  </li>
  <li><p>next</p></li>
</ul>

A run that closes inside the child leaves a second paragraph

carve
- outer
  - head

    ```
    a
    ```

  tail
html
<ul>
  <li><p>outer</p>
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <p>tail</p>
  </li>
</ul>

A run right after a child fence that closed

carve
- outer
  - head

    ```
    a
    ```
  ```
  b

  c
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>b

c
</code></pre>
  </li>
</ul>

A backtick run below an open tilde fence

carve
- outer
  - head

    ~~~
    a
  ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li><p>head</p>
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

A run that dedents out of a grandchild

carve
- outer
  - head
    - deep

      ```
      a
  ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <ul>
          <li><p>deep</p>
            <pre><code>a
</code></pre>
          </li>
        </ul>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>

A fence run folded into a child paragraph loosens the outer item ​

4 conformance fixtures
carve
- outer
  - head
    ```
    a
   ```

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>
carve
- outer
  - head
    ~~~
    a
   ~~~

  tail
html
<ul>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ul>
carve
1. outer
   - head
     ```
     a
    ```

   tail
html
<ol>
  <li>outer
    <ul>
      <li>head
        <pre><code>a
</code></pre>
      </li>
    </ul>
    <pre><code>
tail
</code></pre>
  </li>
</ol>
carve
> - outer
>   - head
>     ```
>     a
>    ```
>
>   tail
html
<blockquote>
  <ul>
    <li>outer
      <ul>
        <li>head
          <pre><code>a
</code></pre>
        </li>
      </ul>
      <pre><code>
tail
</code></pre>
    </li>
  </ul>
</blockquote>

A line at the marker column leaves a closed nested body ​

2 conformance fixtures

After the definition body and its code fence end, the line at the item's marker column belongs outside the list (PART 0 S2).

carve
  - :: term
    : definition
  
      ```
      code
      ```
  after
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>
        <p>definition</p>
        <pre><code>code
</code></pre>
      </dd>
    </dl>
  </li>
</ul>
<p>after</p>
carve
    - :: term
      : definition
    
        ~~~
        code
        ~~~
    after
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>
        <p>definition</p>
        <pre><code>code
</code></pre>
      </dd>
    </dl>
  </li>
</ul>
<p>after</p>

A bare dot starts a list after a blank line ​

1 conformance fixture

After the blank, the bare-dot marker opens a decimal list. The paragraph above it does not absorb the first item.

carve
Before.

. first
. second
html
<p>Before.</p>
<ol>
  <li>first</li>
  <li>second</li>
</ol>

A task box names an unresolved image by its alt as written ​

2 conformance fixtures

A task box's aria-label is the derived text of the item's first block, and an image contributes its alt as written, markup and all, whether or not its reference resolves (CARVE-P2-015, carve#4158). The item still shows the unresolved image as literal text.

carve
- [ ] ![x][r]
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="x"> ![x][r]</li>
</ul>
carve
- [ ] ![/x/ y][r] z
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="/x/ y z"> ![/x/ y][r] z</li>
</ul>

A description body in an item refuses a column-zero block after its first-block plus ​

5 conformance fixtures

Reversed by carve#4409: a description body's + takes a follower only at its marker column (PART 9 §17 L3, CARVE-P9-067). Under an indented : + in an item, a block at document column 0 refuses it at any depth: the + stays the description's text and the block stands after the list.

carve
- a
  :: t
  : +
```
x
```
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- a
  - b
    :: t
    : +
```
x
```
html
<ul>
  <li>a
    <ul>
      <li>b
        <dl>
          <dt>t</dt>
          <dd></dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
1. a
   :: t
   : +
> q
html
<ol>
  <li>a
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
  </li>
</ol>
<blockquote><p>q</p></blockquote>
carve
- a
  :: t
  : +
# H
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
  </li>
</ul>
<section id="H">
  <h1>H</h1>
</section>
carve
- a
  :: t
  : +
```
x

see
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
  </li>
</ul>
<pre><code>x

see
</code></pre>

A description lead under a marker-line child folds into its paragraph ​

3 conformance fixtures

A : line at the outer item's content column reaches the outer item but not the child item on its marker line. With no term open it opens nothing, so PART 0 S4 folds it into the child's open paragraph and the child keeps the lines below (carve#4175). Under an open term the same line still ends the child (row 743).

carve
- - a
  : b
    > q
html
<ul>
  <li>
    <ul>
      <li>a
: b
        <blockquote><p>q</p></blockquote>
      </li>
    </ul>
  </li>
</ul>
carve
* 1. a
  : b
     > q
html
<ul>
  <li>
    <ol>
      <li>a
: b
        <blockquote><p>q</p></blockquote>
      </li>
    </ol>
  </li>
</ul>
carve
- - a
  : b
  : c
    # h
html
<ul>
  <li>
    <ul>
      <li>a
: b
: c
        <h1 id="h">h</h1>
      </li>
    </ul>
  </li>
</ul>

A first-block plus does not take the closer of its div ​

4 conformance fixtures

A div's closer belongs to the div and is never a block of its body, so a first-block + before it is refused: the item or description holds the letter + and the div closes there (PART 9 §12, carve#4254, carve#4409). The same holds for a + nested in an item or a description body and for a quote's +.

carve
::: d
- d
  - +
:::
after
html
<div class="d">
  <ul>
    <li>d
      <ul>
        <li></li>
      </ul>
    </li>
  </ul>
</div>
<p>after</p>
carve
::: d
:: t
: d
  :: u
  : +
:::
after
html
<div class="d">
  <dl>
    <dt>t</dt>
    <dd>
      <p>d</p>
      <dl>
        <dt>u</dt>
        <dd></dd>
      </dl>
    </dd>
  </dl>
</div>
<p>after</p>
carve
::: d
- +
:::
after
html
<div class="d">
  <ul>
    <li></li>
  </ul>
</div>
<p>after</p>
carve
::: d
- d

  > +
:::
after
html
<div class="d">
  <ul>
    <li><p>d</p>
      <blockquote>

      </blockquote>
    </li>
  </ul>
</div>
<p>after</p>

A lazy line after a narrower list in a note folds into its item ​

3 conformance fixtures

A note body list after a list with a wider content column is a new list (§10 I2), and a later line below the note body column is a lazy line of that list item's open paragraph (PART 0 S4). The note reads it as its description twin does, and the line keeps no framing (carve#4259).

carve
[^a]: 1. +
  - y
tail

r[^a]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ol>
        <li></li>
      </ol>
      <ul>
        <li>y
tail</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^a]: x

  10. a
  - y
tail

r[^a]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x</p>
      <ol start="10">
        <li>a</li>
      </ol>
      <ul>
        <li>y
tail</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^a]: 10. a
  * y
 tail

r[^a]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ol start="10">
        <li>a</li>
      </ol>
      <ul>
        <li>y
tail</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A line below an empty div after a first-block plus is not lazy ​

5 conformance fixtures

A line below a container's column folds only into an open paragraph (PART 0 S4). A div or admonition that a first-block + takes, or that follows a refused +, holds no paragraph until a line at its column opens one, so a column-zero line after its opener ends the item and starts its own paragraph (carve#4269). An attribute line opens no paragraph either. Once the div holds a paragraph, the column-zero line folds into it.

carve
::: d
- d
  - e
    - +
  :::
after
html
<div class="d">
  <ul>
    <li>d
      <ul>
        <li>e
          <ul>
            <li></li>
          </ul>
        </li>
      </ul>
      <div>

      </div>
    </li>
  </ul>
  <p>after</p>
</div>
carve
- d
  - +
  :::
after
html
<ul>
  <li>d
    <ul>
      <li>
        <div>

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>after</p>
carve
- d
  - +
  ::: note
after
html
<ul>
  <li>d
    <ul>
      <li>
        <aside class="admonition note" aria-label="Note">

        </aside>
      </li>
    </ul>
  </li>
</ul>
<p>after</p>
carve
- +
  ::: d
  {.c}
after
html
<ul>
  <li>
    <div class="d">

    </div>
  </li>
</ul>
<p>after</p>
carve
- d
  - +
  :::
  in
after
html
<ul>
  <li>d
    <ul>
      <li>
        <div>
          <p>in
after</p>
        </div>
      </li>
    </ul>
  </li>
</ul>

Block reading uses only Carve whitespace ​

5 conformance fixtures

Whitespace is exactly U+0020, U+0009, U+000A and U+000D, and every other character is content (PART 11 whitespace). A U+2028, U+2029, U+000B, U+000C or U+00A0 on a block line therefore changes nothing about how the line is read: it does not end a marker's content, it is not blank, and no trim removes it (carve#4252).

carve
- a
html
<ul>
  <li>a
</li>
</ul>
carve
#
html
<section id="s">
  <h1></h1>
</section>
carve
- +
> q
html
<ul>
  <li>+</li>
</ul>
<blockquote><p>q</p></blockquote>
carve
:: term
: 
the definition
html
<dl>
  <dt>term</dt>
  <dd>
the definition</dd>
</dl>
carve
- [ ] outer

  - inner
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="outer
"> outer

    <ul>
      <li>inner</li>
    </ul>
  </li>
</ul>

A lazy line into a descendant's paragraph keeps the descendant the deepest frame ​

4 conformance fixtures

A lazy line that folds into a nested item's paragraph leaves that item the deepest frame. A block that then closes the nested paragraph (a table, a heading, a definition) leaves no paragraph open, so a column-0 line after it is not lazy and starts a new block. This holds wherever the lazy line stands below the nested item's content column, and when the nested list sits in a quote on the item's marker line (PART 0 S4, CARVE-P0-006, carve#4291).

carve
- a
  - b
  c
    ||
y
html
<ul>
  <li>a
    <ul>
      <li>b
c
        <table>
          <tbody>
            <tr><td></td></tr>
          </tbody>
        </table>
      </li>
    </ul>
  </li>
</ul>
<p>y</p>
carve
- > - a
g
  >   # h
l
html
<ul>
  <li>
    <blockquote>
      <ul>
        <li>a
g
          <h1 id="h">h</h1>
        </li>
      </ul>
    </blockquote>
  </li>
</ul>
<p>l</p>
carve
1. a
   - b
   c
     [r]: /u
y
html
<ol>
  <li>a
    <ul>
      <li>b
c
y</li>
    </ul>
  </li>
</ol>
carve
- - a
   c
    # h
z
html
<ul>
  <li>
    <ul>
      <li>a
c
        <h1 id="h">h</h1>
      </li>
    </ul>
  </li>
</ul>
<p>z</p>

A quote after a caption starts fresh ​

3 conformance fixtures

A ^ caption after a block quote attaches to the quote and ends it; it is never a lazy line of the quote's open paragraph (CARVE-P2-008, carve#4312). A quote after the caption is a new quote and reads as it would on its own, so an indented heading, footnote definition or table in it opens where it stands (PART 0 S3), and a column-0 line after a heading or a table is not lazy.

carve
> - t
^ p
>   # h
l
html
<figure>
  <blockquote>
    <ul>
      <li>t</li>
    </ul>
  </blockquote>
  <figcaption>p</figcaption>
</figure>
<blockquote>
  <h1 id="h">h</h1>
</blockquote>
<p>l</p>
carve
> - t
^ p
>   [^f]: n
l

r[^f]
html
<figure>
  <blockquote>
    <ul>
      <li>t</li>
    </ul>
  </blockquote>
  <figcaption>p</figcaption>
</figure>
<blockquote>

</blockquote>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n
l<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> 1. t
^ p
>   ||
l
html
<figure>
  <blockquote>
    <ol>
      <li>t</li>
    </ol>
  </blockquote>
  <figcaption>p</figcaption>
</figure>
<blockquote>
  <table>
    <tbody>
      <tr><td></td></tr>
    </tbody>
  </table>
</blockquote>
<p>l</p>

An attribute run after a lone plus leads a sublist at the content column ​

3 conformance fixtures

The maintainer overruled this row's title (carve#4278, carve#4449): an attribute line is invisible, so the + test reads the line after it (CARVE-P9-067). That line stands at the content column, so the + is refused and shows as a letter, and the attribute line labels the list outside the item.

The wrapped {x / y} example below is a refused brace run under CARVE-P2-035. Its following marker opens a nested list by the ordinary item rule.

carve
- a
+
{x}
  - c
html
<ul>
  <li>a</li>
</ul>
<ul x="">
  <li>c</li>
</ul>
carve
- a
+
{x
y}
  - c
html
<ul>
  <li>a
    {x
y}
    <ul>
      <li>c</li>
    </ul>
  </li>
</ul>

The same holds inside a quote.

carve
> - a
> +
> {x}
>   - c
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
  <ul x="">
    <li>c</li>
  </ul>
</blockquote>

A fence in a list a quote attaches takes no separator line ​

5 conformance fixtures

A quote's + separates the block it attaches from what follows, but a fence the block leaves open keeps its lines as written (PART 9 §17 L4). The fence may stand behind a list marker,

carve
> t
+
- ```
html
<blockquote>
  <p>t</p>
  <ul>
    <li>
      <pre><code></code></pre>
    </li>
  </ul>
</blockquote>

the next quote line then leaves the item and the fence is still empty,

carve
> t
+
- ```
> b
html
<blockquote>
  <p>t</p>
  <ul>
    <li>
      <pre><code></code></pre>
    </li>
  </ul>
  <p>b</p>
</blockquote>

it may open on a later line of the list,

carve
> t
+
- x
  ```
> b
html
<blockquote>
  <p>t</p>
  <ul>
    <li>x
      <pre><code></code></pre>
    </li>
  </ul>
  <p>b</p>
</blockquote>

or stand behind a description marker.

carve
> t
+
:: t
: ```
html
<blockquote>
  <p>t</p>
  <dl>
    <dt>t</dt>
    <dd>
      <pre><code></code></pre>
    </dd>
  </dl>
</blockquote>

A closed fence is not affected.

carve
> t
+
- ```
  c
  ```
> b
html
<blockquote>
  <p>t</p>
  <ul>
    <li>
      <pre><code>c
</code></pre>
    </li>
  </ul>
  <p>b</p>
</blockquote>

A closerless comment fence opens no span in a body ​

2 conformance fixtures

Since markup-carve/carve#4907 a %%% opener opens its span with no closer lookahead: without a closer it hides everything up to a line that misses its owner or the end of its container (PART 9 §28). The rows below follow that reading; where the prose describes a closerless opener as a %% line or a closer ahead as deciding the span, it records the reading the ruling replaced.

A %%% with no exact-width closer ahead is the line form of a comment and opens no span. A comment below the body column after it closes no body (carve#4862), in a description and a footnote body as in a list item, so a line after it at the body column stays in the body.

carve
:: t
: head

  %%%
%% below

  tail
html
<dl>
  <dt>t</dt>
  <dd>head</dd>
</dl>
carve
[^n]: head

  %%%
%% below

  tail

r[^n]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>head<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
6 conformance fixtures

A first-block + tests its next visible line at the marker column (CARVE-P9-067, carve#4409). A %% line or one-line link definition is erased before that test (PART 0 S1, carve#5012). The follower attaches when it reaches the marker column; otherwise the refused + disappears (carve#5013). A definition still registers document-wide.

carve
- a
  * +
    %% c
after
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>after</p>
carve
- +
  %% c
after
html
<ul>
  <li>after</li>
</ul>
carve
- a
  * +
    [r]: /u
after
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>after</p>
carve
- +
  %% c
  %% d
```
z
```
html
<ul>
  <li>
    <pre><code>z
</code></pre>
  </li>
</ul>
carve
- a
  * +
[r]: /u
  after
html
<ul>
  <li>a
    <ul>
      <li>after</li>
    </ul>
  </li>
</ul>
carve
- a
  * +
%% c
  after
html
<ul>
  <li>a
    <ul>
      <li>after</li>
    </ul>
  </li>
</ul>

An ambiguous first marker keeps its own dialect ​

3 conformance fixtures

A first marker that reads as a roman numeral and as a letter takes the PART 9 §11 N3 tie-break: roman when the next marker is the consecutive numeral, alpha when it is the consecutive letter, and otherwise roman for i and alpha for any other letter. A next marker outside that dialect starts a new list (carve#4351). A single uppercase letter with . takes two spaces before its content (carve#4811).

carve
i.  x
b.  y
html
<ol type="i">
  <li>x</li>
</ol>
<ol type="a" start="2">
  <li>y</li>
</ol>
carve
v.  x
ii.  y
html
<ol type="a" start="22">
  <li>x</li>
</ol>
<ol type="i" start="2">
  <li>y</li>
</ol>
carve
I.  x
A.  y
B.  z
html
<ol type="I">
  <li>x</li>
</ol>
<ol type="A">
  <li>y</li>
  <li>z</li>
</ol>

A column-zero fence below a refused nested first-block plus keeps its payload ​

4 conformance fixtures

A code fence at column zero refuses a nested first-block + (carve#4409) and stands at document level. It starts left of every enclosing item, so no item's content column is stripped from its payload. The depth of the + and a quote on the marker line change nothing (carve#4389).

carve
- - +
```
  x
```
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>  x
</code></pre>
carve
- a
  - +
```
  x
```
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>  x
</code></pre>
carve
- > +
```
  x
```
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>
<pre><code>  x
</code></pre>
carve
- - - +
```
      x
```
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li></li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
<pre><code>      x
</code></pre>

An item on a body's marker line refuses a column-zero block after its plus ​

2 conformance fixtures

A list item on a description's or note's marker line is a marker body like any other. Its first-block + takes a follower at the item's marker column. A line at column zero refuses it and folds into the + (CARVE-P9-067, carve#4409).

carve
:: t
: - +
p
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li></li>
    </ul>
  </dd>
</dl>
<p>p</p>

The note reads the same way.

carve
[^n]: - +
p

r[^n]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>p</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A refused plus reads like a letter ​

3 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

A refused + has no structural effect a letter would not have (PART 9 §17 L4, CARVE-P9-067, carve#4396), so a list marker below a footnote body folds into the paragraph it forms, as it does under a letter.

carve
[^a]: +
- b

r[^a]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>b</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> [^a]: +
- b

r[^a]
html
<blockquote>

</blockquote>
<ul>
  <li>b</li>
</ul>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- > a
  - +
# H
html
<ul>
  <li>
    <blockquote><p>a</p></blockquote>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<section id="H">
  <h1>H</h1>
</section>

Content behind a lead tab offers no first block ​

5 conformance fixtures

A tab that begins an item's content is content (CARVE-P2-010), so the item's text starts with it, and what follows it is paragraph text whatever it spells (corpus 684, 736). So a + behind that tab is a letter at every nesting depth, the paragraph it starts stays open, and a lazy line folds into it. No enclosing collector reads a first-block + through the tab.

carve
- - 	+
  x
html
<ul>
  <li>
    <ul>
      <li>	+
x</li>
    </ul>
  </li>
</ul>
carve
- - 	+
x
html
<ul>
  <li>
    <ul>
      <li>	+
x</li>
    </ul>
  </li>
</ul>
carve
 - 	+
>
html
<ul>
  <li>	+</li>
</ul>
<blockquote>

</blockquote>
carve
> - 	- +
x
html
<blockquote>
  <ul>
    <li>	- +
x</li>
  </ul>
</blockquote>
carve
- 	> +
x
html
<ul>
  <li>	&gt; +
x</li>
</ul>

A plus at a stacked item's marker column reaches it ​

2 conformance fixtures

A lone + at the marker column of an open list item reaches that item, and the owner is the deepest frame reached (PART 0 S2, CARVE-P9-067, carve#4355). An item opened on its parent's marker line has a marker column like any other.

carve
- - +
  +
  x
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
- - - +
  +
  x
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li></li>
        </ul>
        x
      </li>
    </ul>
  </li>
</ul>

A quoted colon line is absorbed only by its own paragraph ​

5 conformance fixtures

A bare colon line that reaches a quote interrupts the open paragraph there, whatever that paragraph holds (carve#4863). A colon line that reaches only an outer quote is a partial match for an inner quote's paragraph, so it interrupts too, and a line with no quote marker then leaves every quote (carve#4416).

carve
> e
:::e
> :::
l
html
<blockquote>
  <p>e
:::e</p>
  <div>

  </div>
</blockquote>
<p>l</p>
carve
> > e
> :::e
> :::
l
html
<blockquote>
  <blockquote><p>e
:::e</p></blockquote>
  <div>

  </div>
</blockquote>
<p>l</p>
carve
> > e
> :::e
> > :::
l
html
<blockquote>
  <blockquote>
    <p>e
:::e</p>
    <div>

    </div>
  </blockquote>
</blockquote>
<p>l</p>
carve
> > e
:::e
> > :::
l
html
<blockquote>
  <blockquote>
    <p>e
:::e</p>
    <div>

    </div>
  </blockquote>
</blockquote>
<p>l</p>
carve
> > > e
:::e
> > :::
l
html
<blockquote>
  <blockquote>
    <blockquote><p>e
:::e</p></blockquote>
    <div>

    </div>
  </blockquote>
</blockquote>
<p>l</p>

A description left of its term measures its own plus follower ​

2 conformance fixtures

A description has no list column: it is measured from its own line, even when its term stands further right. So a line one column past a first-block + at column 0 stands at an intervening column, and the + refuses it, as it does when the term is at column 0 too.

carve
 :: t
: +
 h
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>h</p>

A line at the description's own body column still reaches it.

carve
  :: t
: +
  h
html
<dl>
  <dt>t</dt>
  <dd>h</dd>
</dl>

A lazy line continues a quoted term only as plain text ​

15 conformance fixtures

A term is one line (carve#4861). A line that misses the term's quote or footnote body ends that container and is read as it would be without it, whatever its form.

carve
> - :: t
 - x
html
<blockquote>
  <ul>
    <li>
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ul>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
> - :: t
 1. x
html
<blockquote>
  <ul>
    <li>
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ul>
</blockquote>
<ol>
  <li>x</li>
</ol>
carve
> - :: t
  - x
html
<blockquote>
  <ul>
    <li>
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ul>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
> 1. :: t
 - x
html
<blockquote>
  <ol>
    <li>
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ol>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
> - [ ] :: t
 - x
html
<blockquote>
  <ul class="task-list">
    <li><input type="checkbox" disabled> 
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ul>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
> > - :: t
 - x
html
<blockquote>
  <blockquote>
    <ul>
      <li>
        <dl>
          <dt>t</dt>
        </dl>
      </li>
    </ul>
  </blockquote>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
> - - :: t
 - x
html
<blockquote>
  <ul>
    <li>
      <ul>
        <li>
          <dl>
            <dt>t</dt>
          </dl>
        </li>
      </ul>
    </li>
  </ul>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
> :: t
 - x
html
<blockquote>
  <dl>
    <dt>t</dt>
  </dl>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
r[^n]

- [^n]: :: t
  - x
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <dl>
        <dt>t</dt>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
r[^n]

> [^n]: :: t
- x
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<blockquote>

</blockquote>
<ul>
  <li>x</li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <dl>
        <dt>t</dt>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> :: t
 : d
html
<blockquote>
  <dl>
    <dt>t</dt>
  </dl>
</blockquote>
<p>: d</p>
carve
> > :: t
 : d
html
<blockquote>
  <blockquote>
    <dl>
      <dt>t</dt>
    </dl>
  </blockquote>
</blockquote>
<p>: d</p>
carve
> > :: t
  : d
html
<blockquote>
  <blockquote>
    <dl>
      <dt>t</dt>
    </dl>
  </blockquote>
</blockquote>
<p>: d</p>
carve
> :: t
 plain
html
<blockquote>
  <dl>
    <dt>t</dt>
  </dl>
</blockquote>
<p>plain</p>
carve
> > :: t
 plain
html
<blockquote>
  <blockquote>
    <dl>
      <dt>t</dt>
    </dl>
  </blockquote>
</blockquote>
<p>plain</p>

A padded plus after a quote marker is the quote's text ​

3 conformance fixtures

A quote's + takes one space after the marker. With more padding it is the quote's text, in a quote on an item's marker line as much as in one at document level, so the block below it stays where its own column puts it.

carve
- >  +
# H
html
<ul>
  <li>
    <blockquote><p>+</p></blockquote>
  </li>
</ul>
<section id="H">
  <h1>H</h1>
</section>

A prefixed line is a new quote at its own column, not a line of the item's.

carve
- >  +
> q
html
<ul>
  <li>
    <blockquote><p>+</p></blockquote>
  </li>
</ul>
<blockquote><p>q</p></blockquote>

At an enclosing quote's column it folds like a letter.

carve
> >  +
  s
html
<blockquote>
  <blockquote><p>+
s</p></blockquote>
</blockquote>

An unclosed fence opener interrupts a quote or item paragraph ​

2 conformance fixtures

PART 9 §10 I4 searches for no closer, in a lazy position or in an item: the opener ends the paragraph and the fence runs to the end of its container (carve#4018, carve#4036).

carve
> a
```
b
html
<blockquote><p>a</p></blockquote>
<pre><code>b
</code></pre>
carve
- d
   ```

  l
html
<ul>
  <li>d
    <pre><code>
l
</code></pre>
  </li>
</ul>

A first-block plus shape reads the one attach rule ​

9 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

CARVE-P9-067: a + attaches only at its innermost owner's marker column. A refused marker renders nothing and opens no paragraph (carve#5013).

carve
- - +
:: l
  x
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<dl>
  <dt>l</dt>
</dl>
<p>x</p>
carve
- a
  - +
 ```
x
```
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>x
</code></pre>
carve
- - +
```
+
z

q
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>+
z

q
</code></pre>
carve
- - +
```
+
z
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>+
z
</code></pre>
carve
  - a
  +
  p
html
<ul>
  <li>a
    p
  </li>
</ul>
carve
> :: t
> : +
para
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd></dd>
  </dl>
</blockquote>
<p>para</p>
carve
> [^b]: +
  > para

r[^b]
html
<blockquote>

</blockquote>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>para<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
: [^q]: +
- y

r[^q]
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<ul>
  <li>y</li>
</ul>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^b]: +
 # H

r[^b]
html
<section id="H">
  <h1>H</h1>
  <p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
</section>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An accepted plus needs a follower that reaches its host ​

4 conformance fixtures

PART 9 §17 L3, CARVE-P9-067 (carve#4396). A line of nothing but quote markers holds no block, and a > left of a container holding a quote is not that quote's prefix. Both refuse the +, which then reads like a letter. A + that ends a sub-parse no longer crashes the description reader.

carve
> a
>
+
>
html
<blockquote><p>a</p></blockquote>
<blockquote>

</blockquote>
carve
> +
>
html
<blockquote>

</blockquote>
carve
:: t
: > 1. +
>   x
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote>
      <ol>
        <li></li>
      </ol>
    </blockquote>
  </dd>
</dl>
<blockquote><p>x</p></blockquote>
carve
- > :: t
  > : ```
  >   code
  >   ```
> +
:: u
: v
html
<ul>
  <li>
    <blockquote>
      <dl>
        <dt>t</dt>
        <dd>
          <pre><code>code
</code></pre>
        </dd>
      </dl>
    </blockquote>
  </li>
</ul>
<blockquote>
  <dl>
    <dt>u</dt>
    <dd>v</dd>
  </dl>
</blockquote>

A definition at a plus-attached description's body column registers ​

3 conformance fixtures

PART 9 §17 L3, CARVE-P0-005 and carve#4439. A first-block + hands the item the same block a - a / + spelling does, so a definition at the description body's column is a definition there too.

carve
- +
:: term
: description
  [r]: /url

See [r][]
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>description</dd>
    </dl>
  </li>
</ul>
<p>See <a href="/url">r</a></p>
carve
- +
:: term
: description
  [^n]: note

See[^n]
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>description</dd>
    </dl>
  </li>
</ul>
<p>See<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
1. +
:: term
: description
  [r]: /url

See [r][]
html
<ol>
  <li>
    <dl>
      <dt>term</dt>
      <dd>description</dd>
    </dl>
  </li>
</ol>
<p>See <a href="/url">r</a></p>

A nested unclosed fence keeps every blank line ​

5 conformance fixtures

PART 0 S2 and corpus 291 (carve#4437). A blank run below a fence that a marker line opens is the fence's payload at every nesting depth.

carve
- - - ```
      x


    q
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x


</code></pre>
          </li>
        </ul>
        <p>q</p>
      </li>
    </ul>
  </li>
</ul>
carve
- - - ```
      x



    q
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x



</code></pre>
          </li>
        </ul>
        <p>q</p>
      </li>
    </ul>
  </li>
</ul>
carve
- - - - ```
        x


      q
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <ul>
              <li>
                <pre><code>x


</code></pre>
              </li>
            </ul>
            <p>q</p>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
carve
- - - ```
      x


      y
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x


y
</code></pre>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>
carve
- a

  - - ```
      x


    q
html
<ul>
  <li><p>a</p>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code>x


</code></pre>
          </li>
        </ul>
        <p>q</p>
      </li>
    </ul>
  </li>
</ul>

A plus a second plus follows hands the quote its next block ​

3 conformance fixtures

PART 9 §17 L3, CARVE-P9-067 and carve#4438. Successive markers read the same in every host: after a quote, as after an item, the last + attaches the block and the earlier ones add nothing. Without a block below, that last + is refused and is a letter.

carve
> q
+
+
tail
html
<blockquote>
  <p>q</p>
  <p>tail</p>
</blockquote>
carve
> > q
> +
> +
> tail
html
<blockquote>
  <blockquote>
    <p>q</p>
    <p>tail</p>
  </blockquote>
</blockquote>
carve
> q
+
+
html
<blockquote><p>q</p></blockquote>

A plus after a note in an item gives the note its list ​

2 conformance fixtures

PART 9 §17 L3, CARVE-P9-067 and carve#4440. A + at a note's marker column offers the note the next block, and a list attaches in every host except a list item, so an enclosing item or description does not take it.

carve
- a
  [^n]: note
  +
  1. ordered

see[^n]
html
<ul>
  <li>a</li>
</ul>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note</p>
      <ol>
        <li>ordered</li>
      </ol>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
: x
  [^n]: note
  +
  - b

see[^n]
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note</p>
      <ul>
        <li>b</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A block after a nested note at the outer note's body column stays in that note ​

5 conformance fixtures

A note body keeps its continuation column past an inner note, and a closed block leaves no paragraph for a lazy line (PART 9 §10, carve#4083).

carve
- [ ] [^a]: text
        [^b]: text
        ~~~
        code
        ~~~
after [^a] [^b]
html
<ul class="task-list">
  <li><input type="checkbox" disabled> </li>
</ul>
<p>after <a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>text</p>
      <pre><code>code
</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>text<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- x
  [^a]: text
    [^b]: text
    ~~~
    code
    ~~~
after [^a] [^b]
html
<ul>
  <li>x</li>
</ul>
<p>after <a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>text</p>
      <pre><code>code
</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>text<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- [^a]: text
    [^b]: text

    ~~~
    code
    ~~~
after [^a] [^b]
html
<ul>
  <li></li>
</ul>
<p>after <a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>text</p>
      <pre><code>code
</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>text<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- [^a]: text
    [^b]: text
    ::: n
    x
    :::
after [^a] [^b]
html
<ul>
  <li></li>
</ul>
<p>after <a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>text</p>
      <div class="n">
        <p>x</p>
      </div>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>text<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- [^a]: t
    [^b]: r
    ~~~
    ~~~
    ~

[^a] [^b]
html
<ul>
  <li></li>
</ul>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>t</p>
      <pre><code></code></pre>
      <p>~<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>r<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A comment closer below the content column changes no ownership ​

4 conformance fixtures

CARVE-P0-005 and PART 9 §10 I5 (carve#4086). A matched %%% span is one extent across authored indentation and closes the open paragraph, so a line short of the content column leaves the container.

carve
- a
  %%%
  hidden
%%%
 x
html
<ul>
  <li>a</li>
</ul>
<p>x</p>
carve
- a
  %%%
  hidden
  %%%
 x
html
<ul>
  <li>a</li>
</ul>
<p>x</p>
carve
- a
  - %%%
    hidden
%%%
 { - x
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>{ - x</p>
carve
[^n]: a
  %%%
  hidden
%%%
x

r[^n]
html
<p>x</p>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A description marker line without a paragraph gives the next line no lazy host ​

1 conformance fixture

CARVE-P0-011, PART 1 S4 and CARVE-P9-067 (carve#4305). The item twin ends the body the same way.

carve
- a

  :: T
  : # h
after
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>T</dt>
      <dd>
        <h1 id="h">h</h1>
      </dd>
    </dl>
  </li>
</ul>
<p>after</p>

A lazy line folds into the paragraph a line after an ended descendant started ​

1 conformance fixture

CARVE-P0-006 and PART 0 S4 (carve#4165). An ended descendant supplies no paragraph, but a later line at the enclosing item's content column starts one, and that paragraph takes a lazy line.

carve
- - - ```
    x
    y
l
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
        x
y
l
      </li>
    </ul>
  </li>
</ul>

A line after a marker line folded into a sublist item folds too ​

1 conformance fixture

PART 0 S4 (carve#4371). A fold closes nothing, so the deepest open paragraph takes the next lazy line.

carve
1. - a
     - y
      1. ~~~
z
html
<ol>
  <li>
    <ul>
      <li>a
        <ul>
          <li>y</li>
        </ul>
        <ol>
          <li>
            <pre><code></code></pre>
          </li>
        </ol>
      </li>
    </ul>
  </li>
</ol>
<p>z</p>

A marker under a quoted description paragraph in an item is text ​

2 conformance fixtures

Since markup-carve/carve#4860 a list marker opens a list in a list item, description body or footnote body and closes a body it misses, so the rows below that show a marker in such a body read that way.

PART 0 S3 and ruling carve#4160 (carve#4231). The line reaches the item and the quote and misses the description body, so its owner is the quote. A quote takes no tight sublist, and the outer item adds nothing.

carve
- > :: t
  > : d
  > - z
html
<ul>
  <li>
    <blockquote>
      <dl>
        <dt>t</dt>
        <dd>d</dd>
      </dl>
      <ul>
        <li>z</li>
      </ul>
    </blockquote>
  </li>
</ul>
carve
> :: t
> : d
> - z
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>d</dd>
  </dl>
  <ul>
    <li>z</li>
  </ul>
</blockquote>

A whitespace run after a tab sets the content column where the content starts ​

4 conformance fixtures

CARVE-P2-010 and PART 9 §24 C3 (carve#4610). The content column of a tab-led item is the column after the separator space, so it does not read as its space twin: a line at column 2 or past it continues the item, and the tab stays in the item's text. The section title names the reading carve#4610 replaced and stays as the corpus name.

carve
- 	 e

	f
html
<ul>
  <li><p>	 e</p>
    <p>f</p>
  </li>
</ul>
carve
-    e

    f
html
<ul>
  <li>e</li>
</ul>
<p>f</p>
carve
- 	e
	> q
html
<ul>
  <li>	e
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
-   e
    > q
html
<ul>
  <li>e
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

An indented list starts a new list at a different marker ​

2 conformance fixtures

PART 9 §11 N1 and PART 0 S3 (carve#4363). An indented pair reads as its column-0 spelling.

carve
 * a
 - x
html
<ul>
  <li>a</li>
</ul>
<ul>
  <li>x</li>
</ul>
carve
- p

   * x
   - y
html
<ul>
  <li><p>p</p>
    <ul>
      <li>x</li>
    </ul>
    <ul>
      <li>y</li>
    </ul>
  </li>
</ul>

A refused plus before an attribute run and a sibling is a letter ​

5 conformance fixtures

The sibling test reads the block the run leads (CARVE-P9-067, carve#4447), so neither the + nor the attribute line is lost.

carve
- a
+
{x}
- c
html
<ul>
  <li>a</li>
</ul>
<ul x="">
  <li>c</li>
</ul>
carve
- +
{x}
- c
html
<ul>
  <li></li>
</ul>
<ul x="">
  <li>c</li>
</ul>

A description reads a : sibling behind the run the same way (CARVE-P9-067).

carve
:: t
: a
+
{x}
: b
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
</dl>
<p x="">: b</p>
carve
:: t
: +
{x}
: b
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p x="">: b</p>

A description takes a list, but this one stands at the content column, so the + is refused (carve#4449).

carve
:: t
: a
+
{x}
  - c
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
</dl>
<ul x="">
  <li>c</li>
</ul>

A zero ordered marker writes its start ​

2 conformance fixtures

PART 9 §11 N2: start is omitted only when it is 1 (carve#4454).

carve
0. a
1. b
html
<ol start="0">
  <li>a</li>
  <li>b</li>
</ol>
carve
0) a
html
<ol start="0" data-delim=")">
  <li>a</li>
</ol>

A caret-shaped lazy line keeps a quote in an item ​

2 conformance fixtures

A caption attaches only to a quote directly under the line's owner. Past an item the caret line is a lazy line, and the quote stays open.

carve
- > a
^ J
   > b
html
<ul>
  <li>
    <blockquote><p>a
^ J
b</p></blockquote>
  </li>
</ul>
carve
:: t
: > a
^ J
   > b
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote><p>a
^ J
b</p></blockquote>
  </dd>
</dl>

A line below an unclosed fence in a described item keeps its lazy line ​

4 conformance fixtures

A line in the description below the item's column ends the fence, and the column-0 line then folds into its paragraph, at every depth (carve#4162).

carve
:: t
: - ~~~
  x
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    <p>x
tail</p>
  </dd>
</dl>
carve
:: t
: - - ~~~
  x
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
      </li>
    </ul>
    <p>x
tail</p>
  </dd>
</dl>
carve
- :: t
  : - ~~~
    x
tail
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
        <p>x
tail</p>
      </dd>
    </dl>
  </li>
</ul>

Without a line in the description the column-0 line stays outside: the fence is no paragraph.

carve
:: t
: - ~~~
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<p>tail</p>

A plus after a table with an indented row attaches ​

1 conformance fixture

A table's rows stay its rows at any indent, so the attached block ends where they do and the next + reaches the item (CARVE-P9-067).

carve
- a
+
|x|
 |y|
+
H
html
<ul>
  <li>a
    <table>
      <tbody>
        <tr><td>x</td></tr>
        <tr><td>y</td></tr>
      </tbody>
    </table>
    H
  </li>
</ul>

A refused plus after an attached block ends nothing ​

2 conformance fixtures

Only a + at the host's marker column reaches the host again. Any other + is a letter and ends nothing (CARVE-P9-067).

carve
- o
+
> q
  +
  > r
html
<ul>
  <li>o
    <blockquote><p>q
+
r</p></blockquote>
  </li>
</ul>
carve
- a
  - b
  +
  ```
```
+
 ```
html
<ul>
  <li>a
    <ul>
      <li>b
        <pre><code></code></pre>
      </li>
    </ul>
  </li>
</ul>
<pre><code>+
 ```
</code></pre>

Invisible lines after a plus are skipped and the first visible line decides ​

6 conformance fixtures

A %% line and one-line link or abbreviation definition are erased before the CARVE-P9-067 test (carve#5012). A %%% span, note definition or attribute line remains block-level; the gates apply after it (carve#4449). A blank line, the end of input or a sibling refuses the +, which is then a plain letter.

carve
- +
%% c

text
html
<ul>
  <li></li>
</ul>
<p>text</p>

The fenced comment spelling reads the same.

carve
- +
%%%
c
%%%

text
html
<ul>
  <li></li>
</ul>
<p>text</p>

A sibling after the comment refuses the + too.

carve
- +
%% c
- b
html
<ul>
  <li></li>
  <li>b</li>
</ul>

The erased comment supplies no boundary. The content-column line becomes the next candidate and attaches under CARVE-P9-067.

carve
- +
%% c
  text
html
<ul>
  <li>text</li>
</ul>

A line at the marker column attaches, in both comment spellings.

carve
- +
%% c
text
html
<ul>
  <li>text</li>
</ul>
carve
- +
%%%
c
%%%
text
html
<ul>
  <li>text</li>
</ul>

A child on a note's marker line is measured from its source column ​

4 conformance fixtures

The content column is the visual column where the body starts (CARVE-P9-083, carve#4496), so a line below it belongs to the note. A marker at or left of the item's marker column is a sibling, and a line at the source content column is the item's.

carve
[^f]

[^f]: - a
    # H
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>a</li>
      </ul>
      <h1 id="H">H</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f] [^g]

[^f]: [^g]: a
    # H
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <h1 id="H">H</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>a<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f]

[^f]: - - a
        # H
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>
          <ul>
            <li>a</li>
          </ul>
          <h1 id="H">H</h1>
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f]

[^f]: - a
  - b
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>a</li>
        <li>b</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A line at a description's body column in a div in an item stays in the description ​

2 conformance fixtures

CARVE-P9-083 and carve#4497: the item does not rebase it, so the div reads as it does at top level, and a fence in the body leaves the closer to the div.

carve
- :::
  :: t
  : a
    > q

```html
<ul>
  <li>
    <div>
      <dl>
        <dt>t</dt>
        <dd>
          <p>a</p>
          <blockquote><p>q</p></blockquote>
        </dd>
      </dl>
    </div>
  </li>
</ul>
```

:::

::: compare

````carve
- :::
  :: t
  : a

    ~~~
    x
  :::
html
<ul>
  <li>
    <div>
      <dl>
        <dt>t</dt>
        <dd>
          <p>a</p>
          <pre><code>x
</code></pre>
        </dd>
      </dl>
    </div>
  </li>
</ul>

:::

A line below the column after a note-hosted description leaves the note ​

2 conformance fixtures

A description marker line that holds no paragraph gives the line no lazy host (CARVE-P9-083, CARVE-P0-024, carve#4498).

carve
[^f]: :: t
  : | a |
 ^ cap

[^f]
html
<p>^ cap</p>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <dl>
        <dt>t</dt>
        <dd>
          <table>
            <tbody>
              <tr><td>a</td></tr>
            </tbody>
          </table>
        </dd>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f]: :: t
  : # h
b

[^f]
html
<p>b</p>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <dl>
        <dt>t</dt>
        <dd>
          <h1 id="h">h</h1>
        </dd>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A quote at the content column stays in the item after a refused separator ​

1 conformance fixture

The separator stays text in the item, and the next line reaches its column (CARVE-P9-083, carve#4501).

carve
- > :: t
: a
  > q
html
<ul>
  <li>
    <blockquote>
      <dl>
        <dt>t</dt>
      </dl>
    </blockquote>
  </li>
</ul>
<p>: a</p>
<blockquote><p>q</p></blockquote>

A separator below a term after an item paragraph leaves its quote ​

1 conformance fixture

The same reading with a paragraph before the term as without one: the line misses the quote and the term holds no fold (carve#4861).

carve
> - ::
>   :: t
   : a
html
<blockquote>
  <ul>
    <li>::
      <dl>
        <dt>t</dt>
      </dl>
    </li>
  </ul>
</blockquote>
<p>: a</p>

A wide gap before a task box leaves the lazy frame out of a term ​

1 conformance fixture

The line misses the note and the item, and a term holds no fold (carve#4861), so it is read outside them.

carve
-  [ ] - [^f]: :: t
          c

[^f]
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <ul>
      <li>c</li>
    </ul>
  </li>
</ul>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <dl>
        <dt>t</dt>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Every folded caret line loses its leading whitespace in a deep term ​

1 conformance fixture

PART 0 S4 and carve#4502.

carve
- [ ] - [ ] :: t
      ^ ap
     ^ cap
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <dl>
          <dt>t</dt>
        </dl>
      </li>
    </ul>
    ^ ap
^ cap
  </li>
</ul>

A fence on a note line in an item holds no paragraph ​

2 conformance fixtures

A note whose first line opens a code fence holds a code block, so a column-0 line after it has no paragraph to fold into and leaves the item (CARVE-P0-005, CARVE-P0-013).

carve
- a
  [^f]: ```
c
html
<ul>
  <li>a</li>
</ul>
<p>c</p>
carve
- a
  [^f]: ~~~
c
html
<ul>
  <li>a</li>
</ul>
<p>c</p>

A line folded into a child's paragraph is not the item's text ​

4 conformance fixtures

An invalid opener that folds into a child item's or a quote's paragraph belongs to that paragraph. The item's own paragraph has not absorbed it, so a bare run at the item's column opens a div, and a column-0 line leaves the item (CARVE-P0-024, CARVE-P9-084).

carve
- a
  - m
  :::e
  :::
l
html
<ul>
  <li>a
    <ul>
      <li>m
:::e</li>
    </ul>
    <div>

    </div>
  </li>
</ul>
<p>l</p>
carve
- a
  - m
   :::e
  :::
l
html
<ul>
  <li>a
    <ul>
      <li>m
:::e</li>
    </ul>
    <div>

    </div>
  </li>
</ul>
<p>l</p>
carve
- a
  > m
   :::e
  :::
 l
html
<ul>
  <li>a
    <blockquote><p>m
:::e</p></blockquote>
    <div>

    </div>
  </li>
</ul>
<p>l</p>
carve
- x
  - a
    > m
    ::::e
    :::
    :::
l
html
<ul>
  <li>x
    <ul>
      <li>a
        <blockquote><p>m
::::e</p></blockquote>
        <div>

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>l</p>

A bullet line after a hostless caption line leaves later indented blocks out of the paragraph ​

1 conformance fixture

PART 0 S3 and S4 (carve#4283). ^ p with no host is paragraph text, the bullet line folds into it, and the indented quote marker opens a quote.

carve
^ p
- x
  > q
html
<p>^ p
- x</p>
<blockquote><p>q</p></blockquote>

A comment fence on a nested marker line closes at the first exact-width closer ​

1 conformance fixture

CARVE-P0-005 and PART 0 S1 (carve#4116). A matched %%% span ends at its first exact-width closer wherever it sits, so the line after it is a paragraph and the last %%% opens a new comment.

carve
. - %%%
%%%
x
%%%
html
<ol>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ol>
<p>x</p>

A leading content tab sets the item's content column where the content starts ​

1 conformance fixture

CARVE-P2-010 (carve#4610). A tab after the marker's separator is content and does not move the content column, which stays at 2. After the blank, f at column 2 reaches it and continues the item. The section title names the reading carve#4610 replaced and stays as the corpus name.

carve
- 	e

  f
html
<ul>
  <li><p>	e</p>
    <p>f</p>
  </li>
</ul>

A line below a bare run a paragraph absorbed in a div folds into it ​

2 conformance fixtures

PART 0 S4. The invalid opener is text, and the bare run of another width opens a div inside the open one, so the line below leaves the list (carve#4415, carve#4863).

carve
- :::
  :::e
  ::::
l
html
<ul>
  <li>
    <div>
      <p>:::e</p>
      <div>

      </div>
    </div>
  </li>
</ul>
<p>l</p>

One level deeper, after a paragraph.

carve
- o

  :::
  :::e
  ::::
l
html
<ul>
  <li><p>o</p>
    <div>
      <p>:::e</p>
      <div>

      </div>
    </div>
  </li>
</ul>
<p>l</p>

A longer bare colon run does not end a line block ​

1 conformance fixture

PART 0 S4 (carve#4113). Only an exact-width run closes the line block; a longer one is its text, and the line below continues it.

carve
- m
  ::: |
  ::::
l
html
<ul>
  <li>m
    <div class="line-block">
      <p>::::<br>
l</p>
    </div>
  </li>
</ul>

A paragraph after a closed third-level item takes a lazy line ​

1 conformance fixture

PART 0 S4 (carve#4162). x opens a paragraph in the second-level item after the fence item closes, and tail folds into it.

carve
- - - ~~~
    x
tail
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
        x
tail
      </li>
    </ul>
  </li>
</ul>

A task marker at a nested task item's content column nests in that item ​

2 conformance fixtures

PART 0 S3 and rule A (carve#4011). A list marker at a task item's content column opens a child list in that item; the marker-line children of the outer task items take no part.

carve
- [ ] - a
  - [ ] - b
    - [ ] c
      - [ ] d
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <ul>
      <li>a</li>
    </ul>
    <ul class="task-list">
      <li><input type="checkbox" disabled> 
        <ul>
          <li>b</li>
        </ul>
        <ul class="task-list">
          <li><input type="checkbox" disabled aria-label="c"> c
            <ul class="task-list">
              <li><input type="checkbox" disabled aria-label="d"> d</li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

Without the outer level the line nests the same way.

carve
- [ ] - b
  - [ ] c
    - [ ] d
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <ul>
      <li>b</li>
    </ul>
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="c"> c
        <ul class="task-list">
          <li><input type="checkbox" disabled aria-label="d"> d</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

An item hands its blank run to a description or note child's open fence ​

3 conformance fixtures

PART 0 S1 and S2 (carve#4047). The blank run before the line that ends the item stays in the child's open fence, as it does for a sublist's fence.

carve
- :: t
  : ```
    code

after
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd>
        <pre><code>code

</code></pre>
      </dd>
    </dl>
  </li>
</ul>
<p>after</p>

A footnote body on an item line keeps it too.

carve
x[^1]

- [^1]: ```
    code

after
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<ul>
  <li></li>
</ul>
<p>after</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <pre><code>code

</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The sublist twin.

carve
- - ```
    code

after
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code>code

</code></pre>
      </li>
    </ul>
  </li>
</ul>
<p>after</p>

A list marker inside an item ends a caption like a paragraph ​

3 conformance fixtures

CARVE-P2-021 (carve#4060). A caption ends the same way an open paragraph does, and its item 3 defers list markers to PART 9 §10 I2: inside a list item a marker interrupts the paragraph, so it ends the caption and opens a sublist.

carve
- > q
  ^ p
  - b
html
<ul>
  <li>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>p</figcaption>
    </figure>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

A table caption ends the same way.

carve
- | a |
  ^ p
  - b
html
<ul>
  <li>
    <table>
      <caption>p</caption>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

A marker one column past the item's content column ends a quote's caption too, as it ends the item's paragraph and a table's caption.

carve
- > q
  ^ p
   - b
html
<ul>
  <li>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>p</figcaption>
    </figure>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
6 conformance fixtures

CARVE-P9-067, CARVE-P9-013 (carve#4449). An abbreviation definition is an invisible line like a link or note definition, so a + skips it and the first visible line decides.

An unquoted abbreviation definition after a + is skipped like a link or note definition: the item takes text and A is defined in the document.

carve
- +
*[A]: b
text

A
html
<ul>
  <li>text</li>
</ul>
<p><abbr title="b">A</abbr></p>

A definition-body host and a quote host read it the same way.

carve
:: t
: +
*[A]: b
text

A
html
<dl>
  <dt>t</dt>
  <dd>text</dd>
</dl>
<p><abbr title="b">A</abbr></p>
carve
> +
*[A]: b
text

A
html
<blockquote><p>text</p></blockquote>
<p><abbr title="b">A</abbr></p>

Under a host in a quote or an item it reads the same way (carve#4865).

carve
> - +
> *[A]: b
> text

A
html
<blockquote>
  <ul>
    <li>text</li>
  </ul>
</blockquote>
<p><abbr title="b">A</abbr></p>
carve
- x
  - +
  *[A]: b
  text

A
html
<ul>
  <li>x
    <ul>
      <li>text</li>
    </ul>
  </li>
</ul>
<p><abbr title="b">A</abbr></p>

The off-column definition is erased before the + tests its follower (PART 0 S1, carve#5012). It still defines A document-wide.

carve
- +
 *[A]: b
text

A
html
<ul>
  <li>text</li>
</ul>
<p><abbr title="b">A</abbr></p>

A blank before a plus in a stacked sublist does not loosen the outer item ​

1 conformance fixture

PART 9 §17 L1 and L3 (carve#322, carve#4398). A blank inside a sublist does not loosen an ancestor, and the blank before a + does not loosen.

carve
- a
  - - x

    +
    y
html
<ul>
  <li>a
    <ul>
      <li>
        <ul>
          <li>x
            y
          </li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

A line at a body's column after a plus-attached quote holding an empty div stays in the body ​

2 conformance fixtures

PART 0 S4 and CARVE-P9-067 (carve#4385). The div holds no paragraph, so the unprefixed line cannot fold lazily and cannot reach a host inside the quote; the quote ends and the line stays with the item or description at its content column.

carve
- +
> :::
  x
html
<ul>
  <li>
    <blockquote>
      <div>

      </div>
    </blockquote>
    x
  </li>
</ul>
carve
:: t
: +
> :::
  x
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote>
      <div>

      </div>
    </blockquote>
    <p>x</p>
  </dd>
</dl>

A list marker between an item's columns is a sibling only on every axis ​

8 conformance fixtures

PART 0 S3 and S4, §11 N1 (carve#4545, superseding ruling). The section name predates that ruling and is append-only. Between an item's marker column and its content column a list marker reads as it would at the marker column: a sibling when it matches the open list on every axis (bullet character, ordered type, delimiter, plain or task), otherwise a new list.

A marker that differs from the open list only in plain or task opens a new list.

carve
- a
 - [ ] b
html
<ul>
  <li>a</li>
</ul>
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="b"> b</li>
</ul>
carve
- [ ] a
 - b
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="a"> a</li>
</ul>
<ul>
  <li>b</li>
</ul>

A different ordered type opens a new list too: decimal, alphabetic and roman are three lists.

carve
1. a
 a.  b
html
<ol>
  <li>a</li>
</ol>
<ol type="a">
  <li>b</li>
</ol>
carve
1. a
 i.  b
html
<ol>
  <li>a</li>
</ol>
<ol type="i">
  <li>b</li>
</ol>
carve
a.  a
 1. b
html
<ol type="a">
  <li>a</li>
</ol>
<ol>
  <li>b</li>
</ol>

Nested items read the same way.

carve
- x
  - a
   - [ ] b
html
<ul>
  <li>x
    <ul>
      <li>a</li>
    </ul>
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="b"> b</li>
    </ul>
  </li>
</ul>

A marker that matches on every axis is still a sibling.

carve
- [ ] a
 - [x] b
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="a"> a</li>
  <li data-task-state="x"><input type="checkbox" checked disabled aria-label="b"> b</li>
</ul>

At the list's marker column every such marker opens a new list.

carve
- a
- [ ] b
html
<ul>
  <li>a</li>
</ul>
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="b"> b</li>
</ul>

A paragraph a lone plus attaches stays the item's open paragraph ​

2 conformance fixtures

PART 9 §17 L3 and PART 0 S4 (carve#4208). The paragraph a + at the item's marker column attaches is the item's open paragraph: a sibling marker interrupts it, and a block at the content column opens in the item.

carve
- a
+
q
 - c
html
<ul>
  <li>a
    q
  </li>
  <li>c</li>
</ul>
carve
- a
+
q
  # h
html
<ul>
  <li>a
    q
    <h1 id="h">h</h1>
  </li>
</ul>

A plus at the column of a container opened on another marker line attaches the next block ​

3 conformance fixtures

PART 9 §17 L3 and CARVE-P0-024 S3 (carve#4359). A lone + at the marker column of an item or note opened on a description's, item's or note's marker line gives that container its next block. An item on a note's marker line stands at its authored marker column (carve#4623).

carve
:: t
: - a
  +
  p
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a
        p
      </li>
    </ul>
  </dd>
</dl>
carve
[^n]: - a
      +
      p

r[^n]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>a
          p
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- [^m]: x
  +
  > q

r[^m]
html
<ul>
  <li></li>
</ul>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x</p>
      <blockquote><p>q</p></blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A braced comment line after a plus is the attached paragraph ​

1 conformance fixture

PART 9 §17 L3 and CARVE-P9-042 (carve#4544, carve#4799). The section name predates the superseding ruling on carve#4799 and is append-only. A paragraph of only braced comments renders nothing, so the + skips it as it skips %% c and attaches the heading.

carve
- +
{% c %}
# H
html
<ul>
  <li>
    <h1 id="H">H</h1>
  </li>
</ul>

A first-block plus whose next line misses the opener's marker column is a letter ​

3 conformance fixtures

PART 9 §17 L3 and CARVE-P9-067 (carve#4409, carve#4396; carve#4400, carve#4332, carve#4239). A first-block + attaches only a block at its innermost opener's marker column. A follower at another column is not pulled in: the + is a letter and the line is read as if the + were text.

carve
- - +
```
  - y

w
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<pre><code>  - y

w
</code></pre>
carve
:: s
: a

  * +
> q
html
<dl>
  <dt>s</dt>
  <dd>
    <p>a</p>
    <ul>
      <li></li>
    </ul>
  </dd>
</dl>
<blockquote><p>q</p></blockquote>
carve
- a
  - +
   + y
    - z
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
    + y
    <ul>
      <li>z</li>
    </ul>
  </li>
</ul>

Every list item measures its content against its own content column ​

6 conformance fixtures

PART 0 S4, PART 9 §11 N1 (carve#4369). A list marker of another kind at column 0 opens a new list, and a later block is owned by the item whose content column it reaches. The list before it does not change that reading. Between an item's marker and content columns a marker of another kind still folds.

carve
- y
1. c

   # h
html
<ul>
  <li>y</li>
</ul>
<ol>
  <li><p>c</p>
    <h1 id="h">h</h1>
  </li>
</ol>
carve
- x

  10. y
  9. c

     # h
html
<ul>
  <li><p>x</p>
    <ol start="10">
      <li><p>y</p></li>
      <li><p>c</p>
        <h1 id="h">h</h1>
      </li>
    </ol>
  </li>
</ul>
carve
- y
1. c
   [r]: /u

[x][r]
html
<ul>
  <li>y</li>
</ul>
<ol>
  <li>c</li>
</ol>
<p><a href="/u">x</a></p>
carve
- x

  1. y
  - [ ] c
    # h
html
<ul>
  <li><p>x</p>
    <ol>
      <li>y</li>
    </ol>
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="c"> c
        <h1 id="h">h</h1>
      </li>
    </ul>
  </li>
</ul>
carve
- a
1. w
   - deep
html
<ul>
  <li>a</li>
</ul>
<ol>
  <li>w
    <ul>
      <li>deep</li>
    </ul>
  </li>
</ol>
carve
- a
  * w
  1. v
    - u
html
<ul>
  <li>a
    <ul>
      <li>w</li>
    </ul>
    <ol>
      <li>v</li>
    </ol>
    <ul>
      <li>u</li>
    </ul>
  </li>
</ul>

An invisible item lead and a caption line after an accepted plus ​

3 conformance fixtures

PART 9 §4 and CARVE-P9-013 (carve#4639). A line an accepted + reads inside its host never captions the host itself. A blank after an invisible item lead separates nothing visible, so the list stays tight, as it does with the lead removed.

carve
> q
+
^ c
html
<blockquote>
  <p>q</p>
  <p>^ c</p>
</blockquote>
carve
- %% c

  Body.
- x
html
<ul>
  <li>Body.</li>
  <li>x</li>
</ul>
carve
- [r]: /u

  Body.
- x
html
<ul>
  <li>Body.</li>
  <li>x</li>
</ul>

An item on a note marker line takes its plus at its own marker column ​

2 conformance fixtures

PART 9 §17 L3 (CARVE-P9-067) and CARVE-P9-083 (carve#4623). An own-line + under an item opened on a note's marker line is measured at the item's authored marker column, as the marker-line form is. At the note's body column it is refused and stays a letter.

carve
[^a]: - i
      +
      x

[^a]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>i
          x
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^n]: - a
  +
  p

r[^n]
html
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>a
+
p</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A folded marker keeps a note item measured from its source column ​

3 conformance fixtures

CARVE-P9-083 and PART 0 S4 (carve#4631, carve#4545). The section name predates the superseding ruling on carve#4545 and is append-only. A marker of another list kind below a note item's column opens a new list, and each list's items measure their content from their own columns.

carve
[^3]: - a
   * z
    ~~~
q

[^3]
html
<p>q</p>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>a</li>
      </ul>
      <ul>
        <li>z</li>
      </ul>
      <pre><code></code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^3]: - - a
   * z
        # H
q

[^3]
html
<p>q</p>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>
          <ul>
            <li>a</li>
          </ul>
        </li>
      </ul>
      <ul>
        <li>z
          <h1 id="H">H</h1>
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> - - a
>  * z
>   ~~~
q
html
<blockquote>
  <ul>
    <li>
      <ul>
        <li>a</li>
      </ul>
    </li>
  </ul>
  <ul>
    <li>z</li>
  </ul>
  <pre><code></code></pre>
</blockquote>
<p>q</p>

A shifted line block keeps a lazy follower at its reader column ​

1 conformance fixture

PART 0 S4 (carve#4678). A lazy line below the authored content column keeps no indentation in the line block's frame after that frame is moved to the reader's column.

carve
[^f]: :: t
    - ::: |
      a
     b

[^f]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <dl>
        <dt>t</dt>
      </dl>
      <ul>
        <li>
          <div class="line-block">
            <p>a<br>
b</p>
          </div>
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Attributed bracket spans share the inline cap ​

1 conformance fixture

PART 9 §22 (carve#4681). The top run is level 1. The 200th complete attributed bracket span stays literal while the 199 outer spans form.

carve
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[x]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}]{.a}
html
<p><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a"><span class="a">[x]{.a}</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>

A line-block opener in a quote leaves no paragraph for a lazy line ​

2 conformance fixtures

CARVE-P9-083 and PART 0 S4 (carve#4740). An empty line block holds no stanza, so a line after the quote is the item's paragraph and a later lazy line continues it.

carve
- > ::: |
  a
b
html
<ul>
  <li>
    <blockquote>
      <div class="line-block">

      </div>
    </blockquote>
    a
b
  </li>
</ul>
carve
> - > ::: |
>   a
b
html
<blockquote>
  <ul>
    <li>
      <blockquote>
        <div class="line-block">

        </div>
      </blockquote>
      a
b
    </li>
  </ul>
</blockquote>

Paragraphs after a closed marker-line child loosen the item ​

3 conformance fixtures

PART 9 §17 L1 (carve#4734). A line below a marker-line child that its open paragraph cannot take ends the child, so two blank-separated paragraphs after it belong to the outer item and make it loose.

carve
- - :::
  p

    q
html
<ul>
  <li>
    <ul>
      <li>
        <div>

        </div>
      </li>
    </ul>
    <p>p</p>
    <p>q</p>
  </li>
</ul>
carve
- - # h
  p

    q
html
<ul>
  <li>
    <ul>
      <li>
        <h1 id="h">h</h1>
      </li>
    </ul>
    <p>p</p>
    <p>q</p>
  </li>
</ul>
carve
- - ```
  p

    q
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    <p>p</p>
    <p>q</p>
  </li>
</ul>

An invisible line between list or description siblings is skipped ​

4 conformance fixtures

PART 9 §10 CARVE-P9-013 (carve#4716). Every invisible line is skipped between two list items: a link definition leaves the list open, as a comment does, and still registers.

carve
- a
[r]: /u
- b [x][r]
html
<ul>
  <li>a</li>
  <li>b <a href="/u">x</a></li>
</ul>

A document-level abbreviation definition between two items is skipped the same way.

carve
- a
*[A]: x
- b A
html
<ul>
  <li>a</li>
  <li>b <abbr title="x">A</abbr></li>
</ul>

A comment between a term and its description leaves the description list open.

carve
:: t
%% c
: d
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
</dl>

A link definition between two entries, inside a quote, leaves that description list open too.

carve
> :: t
> : x
> [r]: /u
> :: u
> : v [y][r]
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>x</dd>
    <dt>u</dt>
    <dd>v <a href="/u">y</a></dd>
  </dl>
</blockquote>

A comment does not split a nested list boundary ​

2 conformance fixtures

PART 9 §11 N1a and PART 0 S1 (carve#4760). A nested list reads the full blank run after a comment is erased. Three or more blanks before the next marker start a new sibling list at that level.

carve
- o
  - a



  %% c

  - b
html
<ul>
  <li><p>o</p>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

The same boundary holds when the comment divides the run after two blanks.

carve
- o
  - a


  %% c

  - b
html
<ul>
  <li><p>o</p>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

A plus-attached div in a list item ends at the next sibling marker ​

2 conformance fixtures

CARVE-P9-084 (carve#4717). A frame does not look ahead for its closer. A div a + attaches in a list item ends where its host's next sibling marker stands, whether or not a later ::: exists, so - b is a sibling item and the last ::: opens a new div after the list.

carve
- +
:::
- b
:::
html
<ul>
  <li>
    <div>

    </div>
  </li>
  <li>b</li>
</ul>
<div>

</div>

An admonition with body text under an ordered item reads the same.

carve
1. +
::: note
x
2. b
:::
html
<ol>
  <li>
    <aside class="admonition note" aria-label="Note">
      <p>x</p>
    </aside>
  </li>
  <li>b</li>
</ol>
<div>

</div>

A wrapped attribute lead is invisible to list looseness ​

2 conformance fixtures

PART 9 §17 L1 and CARVE-P9-013 (carve#4758) treat a valid wrapped attribute as one invisible lead. A run whose continuation fails CARVE-P2-035 is visible paragraph text instead. The examples below retain that historical input and show the new reading.

carve
- {x
  y}

  b
- a
html
<ul>
  <li><p>{x
y}</p>
    <p>b</p>
  </li>
  <li><p>a</p></li>
</ul>

The same rule applies to an ordered list with a wider content column.

carve
1. {x
   y}

   b
2. a
html
<ol>
  <li><p>{x
y}</p>
    <p>b</p>
  </li>
  <li><p>a</p></li>
</ol>

A note frame ends before a second item paragraph ​

1 conformance fixture

PART 9 §17 L1 and CARVE-P9-013 (carve#4785). Invisible definitions before the first paragraph do not make it loose. Once that first visible paragraph ends, its blank-separated successor loosens the item, even when the successor is overindented.

carve
- [r]: /u
  [^f]: a

  x

    y
html
<ul>
  <li><p>x</p>
    <p>y</p>
  </li>
</ul>

A single capital with a dot needs two spaces ​

13 conformance fixtures

A letter or roman marker followed by . opens an ordered item only when two or more spaces separate it from the content (carve#4811, superseding ruling; the section name is append-only). Initials and abbreviations at the start of a line stay paragraph text. Digits and ) markers are unchanged.

The reproduction from carve#4811. With one space after each . none of the three letters is a marker:

carve
J. R. R. Tolkien wrote it
html
<p>J. R. R. Tolkien wrote it</p>

A lone capital at the start of a paragraph is text:

carve
A. Smith said so
html
<p>A. Smith said so</p>

After a blank line too:

carve
para

P. S. see below
html
<p>para</p>
<p>P. S. see below</p>

Two spaces make the marker:

carve
A.  first
B.  second
html
<ol type="A">
  <li>first</li>
  <li>second</li>
</ol>

Each item is judged on its own line, so a one-space sibling continues the item above:

carve
A.  first
B. second
html
<ol type="A">
  <li>first
B. second</li>
</ol>

A roman numeral of any length needs the two spaces too:

carve
I. one
II. two
html
<p>I. one
II. two</p>

The ) delimiter is unchanged, and a lowercase letter needs the two spaces:

carve
A) one
B) two
html
<ol type="A" data-delim=")">
  <li>one</li>
  <li>two</li>
</ol>
carve
a. one
b. two
html
<p>a. one
b. two</p>

Attributes sit before the required spaces:

carve
A.{.c}  x
html
<ol type="A">
  <li class="c">x</li>
</ol>
carve
A.{.c} x
html
<p>A.{.c} x</p>

An abbreviation is text:

carve
e. g. foo
html
<p>e. g. foo</p>

Two spaces after a lowercase letter make the marker:

carve
a.  one
b.  two
html
<ol type="a">
  <li>one</li>
  <li>two</li>
</ol>

A digit keeps the single space:

carve
1. one
2. two
html
<ol>
  <li>one</li>
  <li>two</li>
</ol>

A multi-line paragraph of only braced comments is an invisible line ​

3 conformance fixtures

CARVE-P9-042, CARVE-P9-013 and PART 9 §17 L3 (carve#4799) applies when the braced comment run forms. Its block-position continuations must pass the opening { column (CARVE-P2-035). A refused run is visible paragraph text, so the historical unindented example below no longer behaves as an invisible lead.

carve
- +
{% c %}

# H
html
<ul>
  <li></li>
</ul>
<section id="H">
  <h1>H</h1>
</section>
carve
- {% c
  d %}

  Body.
html
<ul>
  <li><p>{% c
d %}</p>
    <p>Body.</p>
  </li>
</ul>
carve
- a

{% c
d %}

- b
html
<ul>
  <li>a</li>
</ul>
<p>{% c
d %}</p>
<ul>
  <li>b</li>
</ul>

A line that misses the host ends it when a comment closer lies ahead ​

4 conformance fixtures

Since markup-carve/carve#4907 a %%% opener opens its span with no closer lookahead: without a closer it hides everything up to a line that misses its owner or the end of its container (PART 9 §28). The rows below follow that reading; where the prose describes a closerless opener as a %% line or a closer ahead as deciding the span, it records the reading the ruling replaced.

PART 0 S1 and the RECOVERY DECISION TABLE, PART 9 §28 (CARVE-P0-005, CARVE-P9-060, carve#4770). When a %%% opener's exact-width closer comes after a line that misses the host, that line still ends the host and is read in its own owner. The opener is then a %% line within the shortened host, so the lines between stay visible. With no closer ahead the same line folds into the paragraph, as it does after %%.

carve
. a
  . %%%
    n
>>
%%%
html
<ol>
  <li>a
    <ol>
      <li></li>
    </ol>
  </li>
</ol>
<p>&gt;&gt;</p>
carve
. a
  . %%%
    n
>>
html
<ol>
  <li>a
    <ol>
      <li></li>
    </ol>
  </li>
</ol>
<p>&gt;&gt;</p>
carve
- a
  %%%
  n
zz
%%%
html
<ul>
  <li>a</li>
</ul>
<p>zz</p>
carve
- a
  %%%
  n
zz
html
<ul>
  <li>a</li>
</ul>
<p>zz</p>

A refused plus is escaped when the block below would attach ​

5 conformance fixtures

CARVE-P11-042 and CARVE-P9-067 (carve#4868). The blank refuses the + in each source, so the inner item holds the letter and the block belongs to the outer item. The .fmt beside each row spells the letter \+ and writes the block at the outer item's content column with no blank line.

carve
- - +

  > q
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>
carve
- - +

  ```
  x
  ```
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
    <pre><code>x
</code></pre>
  </li>
</ul>
carve
- - +

  # H
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
    <h1 id="H">H</h1>
  </li>
</ul>
carve
- - +

  {.c}
  > q
html
<ul>
  <li>
    <ul>
      <li></li>
    </ul>
    <blockquote class="c"><p>q</p></blockquote>
  </li>
</ul>
carve
- foo
  1. +
   > b
html
<ul>
  <li>foo
    <ol>
      <li></li>
    </ol>
    <blockquote><p>b</p></blockquote>
  </li>
</ul>

A line that misses a nested host ends it when a comment closer lies ahead ​

6 conformance fixtures

Since markup-carve/carve#4907 a %%% opener opens its span with no closer lookahead: without a closer it hides everything up to a line that misses its owner or the end of its container (PART 9 §28). The rows below follow that reading; where the prose describes a closerless opener as a %% line or a closer ahead as deciding the span, it records the reading the ruling replaced.

PART 0 S1 and the RECOVERY DECISION TABLE (CARVE-P0-005, carve#4770). The closer search reaches past every enclosing host, so a line that misses only a nested item, quote, description or note ends that host when an exact-width closer comes later in the document, and the line lands in the enclosing container. The opener is then a %% line within the shortened host. Without a closer the line folds into the paragraph, and a quote's search still stops at a blank line.

carve
. a
  . %%%
    n
  zz
%%%
html
<ol>
  <li>a
    <ol>
      <li></li>
    </ol>
    zz
  </li>
</ol>
carve
. a
  . %%%
    n
  zz
html
<ol>
  <li>a
    <ol>
      <li></li>
    </ol>
    zz
  </li>
</ol>
carve
- a
  > %%%
  > n
  zz
%%%
html
<ul>
  <li>a
    <blockquote>

    </blockquote>
    zz
  </li>
</ul>
carve
- a
  > %%%
  > n
  zz

%%%
html
<ul>
  <li>a
    <blockquote>

    </blockquote>
    zz
  </li>
</ul>
carve
- a
  :: u
  : %%%
    n
  zz
%%%
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd></dd>
    </dl>
    zz
  </li>
</ul>
carve
- a

  [^g]: %%%
    n
  zz
%%%

x[^g]
html
<ul>
  <li><p>a</p>
    <p>zz</p>
  </li>
</ul>

A list marker opens a list in every marker body ​

12 conformance fixtures

PART 0 S3 and S4, PART 9 §10 I2 and §24 C3 (markup-carve/carve#4860). In a list item, description body or footnote body a list marker at or past the content column opens a list and ends the open paragraph, a deeper paragraph included. One that misses a body closes it with every frame it missed. Paragraphs of the document and of quotes keep the marker as text.

carve
:: t
: d
  - x
  - y
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <ul>
      <li>x</li>
      <li>y</li>
    </ul>
  </dd>
</dl>
carve
[^a]: n
  - x

q[^a]
html
<p>q<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n</p>
      <ul>
        <li>x</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- [^q]: note
  * child

r[^q]
html
<ul>
  <li>
    <ul>
      <li>child</li>
    </ul>
  </li>
</ul>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^a]: n
- x

q[^a]
html
<ul>
  <li>x</li>
</ul>
<p>q<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
: d
- x
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
</dl>
<ul>
  <li>x</li>
</ul>
carve
> p
> - x
html
<blockquote><p>p
- x</p></blockquote>
carve
- > p
  - x
html
<ul>
  <li>
    <blockquote><p>p</p></blockquote>
    <ul>
      <li>x</li>
    </ul>
  </li>
</ul>
carve
> [^a]: n
- x

q[^a]
html
<blockquote>

</blockquote>
<ul>
  <li>x</li>
</ul>
<p>q<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> > :: t
> > : d
- x
html
<blockquote>
  <blockquote>
    <dl>
      <dt>t</dt>
      <dd>d</dd>
    </dl>
  </blockquote>
</blockquote>
<ul>
  <li>x</li>
</ul>
carve
:: t
: d
  1. x
  2. y
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <ol>
      <li>x</li>
      <li>y</li>
    </ol>
  </dd>
</dl>
carve
:: t
: > p
  - x
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote><p>p</p></blockquote>
    <ul>
      <li>x</li>
    </ul>
  </dd>
</dl>
carve
> p
- x
html
<blockquote><p>p
- x</p></blockquote>

A trailing comment in a comment-only paragraph ends at its line ​

3 conformance fixtures

PART 9 §28 and the comment-only paragraph rule (carve#4799, carve#4883). A %% tail ends at its line, so the line after it is read on its own: text there keeps the paragraph visible, and only a paragraph whose every line is comments renders nothing.

carve
{% c %} %% t
b
html
<p>
b</p>
carve
- a

{% c %} %% t
- b
html
<ul>
  <li>a</li>
</ul>
<p>
- b</p>
carve
{% c %} %% t
{% d %} %% u

z
html
<p>z</p>

A comment closer ahead is read from the span's raw lines ​

7 conformance fixtures

Since markup-carve/carve#4907 a %%% opener opens its span with no closer lookahead: without a closer it hides everything up to a line that misses its owner or the end of its container (PART 9 §28). The rows below follow that reading; where the prose describes a closerless opener as a %% line or a closer ahead as deciding the span, it records the reading the ruling replaced.

PART 0 S1 and the RECOVERY DECISION TABLE (CARVE-P0-005, carve#4895). The search for a %%% closer reads the candidate span's body, where a fence line opens nothing, so an exact-width line inside what later reads as a code block is a closer ahead: the line that misses the host still ends it. A wider line is not a closer, so there the line folds as it does after a %% line. With no miss the span closes at that line. A blank line stops only a quote's search, so past a nested item the line still ends the host.

carve
- a
  %%%
  n
zz
```
%%%
```
html
<ul>
  <li>a</li>
</ul>
<p>zz</p>
<pre><code>%%%
</code></pre>
carve
- a
  %%%
  n
zz
```
%%%%
```
html
<ul>
  <li>a</li>
</ul>
<p>zz</p>
<pre><code>%%%%
</code></pre>
carve
:: t
: %%%
  n
zz
```
%%%
```
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>zz</p>
<pre><code>%%%
</code></pre>
carve
. a
  . %%%
    n
>>
```
%%%
```
html
<ol>
  <li>a
    <ol>
      <li></li>
    </ol>
  </li>
</ol>
<p>&gt;&gt;</p>
<pre><code>%%%
</code></pre>
carve
> %%%
> n
zz
```
%%%
```
html
<blockquote>

</blockquote>
<p>zz</p>
<pre><code>%%%
</code></pre>
carve
%%%
n
```
%%%
```
z
html
<pre><code>z
</code></pre>
carve
- a
  - %%%
    n
  zz

%%%
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
    zz
  </li>
</ul>

A list marker in an item ends a comment-only paragraph ​

5 conformance fixtures

PART 9 §21a, CARVE-P9-013, §24 C3 and PART 0 S3 (carve#4890, carve#4799). A paragraph holding only braced comments reads as a %% line, and in an item a list marker ends it, so it neither loosens the item nor splits the list. Where a blank line separates the lead from the sub-list, that blank loosens the item (§17 L1). In a quote, a div or a colon body the marker stays paragraph text and keeps the paragraph visible.

carve
- p

  - a

  {% c %}
  - b
html
<ul>
  <li><p>p</p>
    <ul>
      <li><p>a</p></li>
      <li><p>b</p></li>
    </ul>
  </li>
</ul>
carve
- p

  - a

  {% c %}
  * b
html
<ul>
  <li><p>p</p>
    <ul>
      <li>a</li>
    </ul>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
carve
- p

  {% c %}
  - b
html
<ul>
  <li><p>p</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>
carve
- +
{% c %}
- b
html
<ul>
  <li></li>
</ul>
<p>
- b</p>
carve
> - a
>
> {% c %}
> - b
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
  <p>
- b</p>
</blockquote>

A spaced thematic break is tested before a list marker on every line ​

7 conformance fixtures

CARVE-P9 thematic break clause in 03-blocks-core.ebnf (carve#4814, carve#4880): "the thematic break is tested before a list marker". No line is exempt for following a list item or a description body.

A spaced run under a same-bullet item is a break, and the list ends.

carve
- x
- - -
html
<ul>
  <li>x</li>
</ul>
<hr>

Under another bullet it opens no sibling list.

carve
- x
* * *
html
<ul>
  <li>x</li>
</ul>
<hr>

A longer run is the same break.

carve
- x
* * * *
html
<ul>
  <li>x</li>
</ul>
<hr>

A blank line changes nothing.

carve
- x

- - -
html
<ul>
  <li>x</li>
</ul>
<hr>

Inside an item the break belongs to the item.

carve
- - x
  - - -
html
<ul>
  <li>
    <ul>
      <li>x</li>
    </ul>
    <hr>
  </li>
</ul>

Below a description note it ends the description, as *** does.

carve
:: t
: ::: note
  para
* * *
html
<dl>
  <dt>t</dt>
  <dd>
    <aside class="admonition note" aria-label="Note">
      <p>para</p>
    </aside>
  </dd>
</dl>
<hr>

A marker with text after it stays an item.

carve
- x
- - y
html
<ul>
  <li>x</li>
  <li>
    <ul>
      <li>y</li>
    </ul>
  </li>
</ul>

A comment in a blank run keeps the run for a nested description list ​

3 conformance fixtures

PART 9 §11 N1a (CARVE-P9-014, carve#4892, carve#4759). The run is counted after comments are erased, at every depth: three blank lines end a description list in an item whether or not a comment sits in the run, and a : line after it has no term above it and is read as a paragraph.

carve
- o
  :: t
  : x



  %% c
  : d
html
<ul>
  <li><p>o</p>
    <dl>
      <dt>t</dt>
      <dd>x</dd>
    </dl>
    <p>: d</p>
  </li>
</ul>

An item inside an item hands the whole run to its description list too.

carve
- o
  - p
    :: t
    : x



    : d
html
<ul>
  <li>o
    <ul>
      <li><p>p</p>
        <dl>
          <dt>t</dt>
          <dd>x</dd>
        </dl>
        <p>: d</p>
      </li>
    </ul>
  </li>
</ul>

The same run with a comment, before a new term.

carve
- o
  - p
    :: t
    : x


    %% c

    :: u
    : v
html
<ul>
  <li>o
    <ul>
      <li><p>p</p>
        <dl>
          <dt>t</dt>
          <dd>x</dd>
        </dl>
        <dl>
          <dt>u</dt>
          <dd>v</dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>

An invisible line keeps a description entry open ​

5 conformance fixtures

PART 9 §10 I5 (CARVE-P9-013 property 3, carve#4862). A %% line, a matched %%% span, a link reference definition and an abbreviation definition after a term or a description close neither. The next visible line is read as if they were absent, so a : line below stays a description and its body keeps its continuation lines.

carve
:: t
:  d
*[A]: x
:  > a
   > b
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
  <dd>
    <blockquote><p>a
b</p></blockquote>
  </dd>
</dl>
carve
- :: term
  : payload
%% c
   : d2
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>payload</dd>
      <dd>d2</dd>
    </dl>
  </li>
</ul>
carve
:: term
: payload
[r]: /u
 : d2
html
<dl>
  <dt>term</dt>
  <dd>payload</dd>
  <dd>d2</dd>
</dl>
carve
:: t
: d
%%%
c
%%%
 : d2
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
  <dd>d2</dd>
</dl>
carve
- :: t
  :: t2
  %%%
  c
  %%%
  :  > a
     > b
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dt>t2</dt>
      <dd>
        <blockquote><p>a
b</p></blockquote>
      </dd>
    </dl>
  </li>
</ul>

A blank before only invisible lines loosens the list ​

5 conformance fixtures

PART 9 §17 L1c with CARVE-P9-013 property 3. A blank line followed only by comments or definitions still stands between an item and the next sibling marker, wherever those lines sit inside the item: in a description body or in a nested list. Removing them must not change the output. A visible line after them keeps the blank inside the item, as the last row shows.

carve
- :: term
  : payload

    %% c
- sub
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>payload</dd>
    </dl>
  </li>
  <li><p>sub</p></li>
</ul>
carve
- a
  - b

    %% c
- sub
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
  <li><p>sub</p></li>
</ul>
carve
- :: term
  : payload

    [r]: /u
- sub
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>payload</dd>
    </dl>
  </li>
  <li><p>sub</p></li>
</ul>
carve
- a
  - b

    %%%
    c
    %%%
- sub
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
  <li><p>sub</p></li>
</ul>
carve
- :: term
  : payload

    %% c
    more
- sub
html
<ul>
  <li>
    <dl>
      <dt>term</dt>
      <dd>
        <p>payload</p>
        <p>more</p>
      </dd>
    </dl>
  </li>
  <li>sub</li>
</ul>

A comment span on a description or note marker line closes below its column ​

8 conformance fixtures

PART 9 §28 and PART 0 S1 (carve-php#4508). A %%% span opened after a : description lead or a [^n]: note lead belongs to that body, and an exact-width closer written below the body's column still closes it, at any nesting depth, as it does for a list item and at top level. A blank line inside the open span is payload, so a closer after it still closes the span. The line after the closer is read in the owner its column reaches.

carve
- a
  :: u
  : %%%
%%%
c
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd></dd>
    </dl>
  </li>
</ul>
<p>c</p>
carve
- a

  [^n]: %%%
%%%
c
html
<ul>
  <li>a</li>
</ul>
<p>c</p>
carve
- a
  :: u
  : x
    %%%
%%%
:: c
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd>x</dd>
    </dl>
  </li>
</ul>
<dl>
  <dt>c</dt>
</dl>
carve
:: u
: %%%
    n

%%%
c
html
<dl>
  <dt>u</dt>
  <dd></dd>
</dl>
<p>c</p>
carve
x[^n]

[^n]: %%%
    n

%%%
c
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p>c</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- a
  - %%%
    n

%%%
c
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
</ul>
<p>c</p>
carve
- a
  :: u
  : %%%

%%%
  c
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd></dd>
    </dl>
    c
  </li>
</ul>
carve
- a
  :: u
  : %%%
    n
    %%%
  zz

%%%
c
%%%
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd></dd>
    </dl>
    zz
  </li>
</ul>

A marked blank inside a quoted verse span leaves the stanza open ​

3 conformance fixtures

PART 9 §23 (CARVE-P9-047, carve#4956) and PART 0 S1. A marked blank line inside a %%% span is span payload, so it does not end the line block's stanza: after the span the next line reads the stanza as it stood before it and folds as verse. This holds for a line block in a quoted description, in a quote nested in a quote and in a quoted item alike.

carve
> :: t
> : ::: |
>   x
>   %%%
>
>   %%%
b
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>
      <div class="line-block">
        <p>x<br>
b</p>
      </div>
    </dd>
  </dl>
</blockquote>
carve
> > :: t
> > : ::: |
> >   x
> >   %%%
> >
> >   %%%
b
html
<blockquote>
  <blockquote>
    <dl>
      <dt>t</dt>
      <dd>
        <div class="line-block">
          <p>x<br>
b</p>
        </div>
      </dd>
    </dl>
  </blockquote>
</blockquote>
carve
> - ::: |
>   x
>   %%%
>
>   %%%
b
html
<blockquote>
  <ul>
    <li>
      <div class="line-block">
        <p>x<br>
b</p>
      </div>
    </li>
  </ul>
</blockquote>

A descendant comment span closes between its own column and its item's ​

4 conformance fixtures

A closer written at the item's column but below a note's or a sublist's column still closes the span that note or sublist holds (PART 9 §28), and a blank inside that span is payload (PART 0 S1): it neither ends the note nor separates the item's paragraphs. The line after the closer is read in the owner its column reaches (carve#4996). The last case, a description in a sublist, is the control.

carve
- a

  [^n]: %%%
  %%%
  c
html
<ul>
  <li><p>a</p>
    <p>c</p>
  </li>
</ul>
carve
- a

  [^n]: %%%
%%%
    c
html
<ul>
  <li>a</li>
</ul>
carve
- a
  - %%%

  %%%
  c
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
    c
  </li>
</ul>
carve
- a
  - b
    :: u
    : %%%

  %%%
  c
html
<ul>
  <li>a
    <ul>
      <li>b
        <dl>
          <dt>u</dt>
          <dd></dd>
        </dl>
      </li>
    </ul>
    c
  </li>
</ul>

A comment line below a nested line block's column stays in its span ​

7 conformance fixtures

A comment-shaped line inside an open %%% span is span payload at any column, and an exact-width run there closes the span (PART 0 S1, PART 9 §28, carve#4994). That holds for a line block in a nested item or in a description inside an item exactly as at depth one, whether the line sits at column 0 or between the item's column and the block's. The line after the span then reads the stanza as it stood before it (carve#4956): with no verse it is a document paragraph, with verse it folds. The last case is the control: a line that is not comment-shaped ends the span and the items.

carve
- - ::: |
    %%%
%%%%
    %%%
z
html
<ul>
  <li>
    <ul>
      <li>
        <div class="line-block">

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>z</p>
carve
- x
  - ::: |
    %%%
%% c
    %%%
z
html
<ul>
  <li>x
    <ul>
      <li>
        <div class="line-block">

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>z</p>
carve
- - ::: |
    %%%
   %%%%
    %%%
    b
z
html
<ul>
  <li>
    <ul>
      <li>
        <div class="line-block">
          <p>b<br>
z</p>
        </div>
      </li>
    </ul>
  </li>
</ul>
carve
- - ::: |
    %%%
  %%%%
    %%%
    b
z
html
<ul>
  <li>
    <ul>
      <li>
        <div class="line-block">
          <p>b<br>
z</p>
        </div>
      </li>
    </ul>
  </li>
</ul>
carve
- - ::: |
    a
    %%%
%%%%
z
html
<ul>
  <li>
    <ul>
      <li>
        <div class="line-block">
          <p>a<br>
z</p>
        </div>
      </li>
    </ul>
  </li>
</ul>
carve
- :: t
  : ::: |
    %%%
%%%%
    %%%
z
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd>
        <div class="line-block">

        </div>
      </dd>
    </dl>
  </li>
</ul>
<p>z</p>
carve
- - ::: |
    %%%
x
    %%%
z
html
<ul>
  <li>
    <ul>
      <li>
        <div class="line-block">

        </div>
      </li>
    </ul>
  </li>
</ul>
<p>x</p>

An empty comment span is written as adjacent delimiters ​

3 conformance fixtures

A %%% span with no payload is written as its opener directly followed by its closer. An empty payload line between them would be a blank inside the list item, and before a sibling marker that blank loosens the list on the next read (§17 L1c), so the writer could not keep the document the same or settle (PART 11 §1, §1a; carve#5022). Each case carries a .fmt fixture. The first is a description lead in a list item, the second a span on a list marker line, the third a span inside an item.

carve
- a
  :: u
  : %%%
  %%%
- c
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd></dd>
    </dl>
  </li>
  <li>c</li>
</ul>
carve
- %%%
  %%%
- c
html
<ul>
  <li></li>
  <li>c</li>
</ul>
carve
- a
  %%%
  %%%
- c
html
<ul>
  <li>a</li>
  <li>c</li>
</ul>

A quoted span after a hosted span's closer leaves the follower outside ​

6 conformance fixtures

A %%% span opened on a quoted item's or description's marker line closes at an exact-width run below the host's column (PART 9 §28, carve#4994). The next %%% at the quote's column opens a span in the quote. A follower that supplies no > misses the quote, so it ends that span (PART 0 S1) and, with no paragraph open, is read outside the quote at every quote depth (carve#5026). The last case is the control: a third run closes the quote's span, so its next line is a quote paragraph and the follower folds into it.

carve
> > - %%%
> > %%%
> > %%%
> > x
t
html
<blockquote>
  <blockquote>
    <ul>
      <li></li>
    </ul>
  </blockquote>
</blockquote>
<p>t</p>
carve
> - %%%
> %%%
> %%%
> x
t
html
<blockquote>
  <ul>
    <li></li>
  </ul>
</blockquote>
<p>t</p>
carve
> > > 1. %%%%
> > > %%%%
> > > %%%%
> > > x
- t
html
<blockquote>
  <blockquote>
    <blockquote>
      <ol>
        <li></li>
      </ol>
    </blockquote>
  </blockquote>
</blockquote>
<ul>
  <li>t</li>
</ul>
carve
> :: d
> : %%%
> %%%
> %%%
> x
: t
html
<blockquote>
  <dl>
    <dt>d</dt>
    <dd></dd>
  </dl>
</blockquote>
<p>: t</p>
carve
> > - - %%%
> >  %%%
> > %%%
> > x
> - t
html
<blockquote>
  <blockquote>
    <ul>
      <li>
        <ul>
          <li></li>
        </ul>
      </li>
    </ul>
  </blockquote>
  <ul>
    <li>t</li>
  </ul>
</blockquote>
carve
> > - %%%
> > %%%
> > %%%
> > %%%
> > x
t
html
<blockquote>
  <blockquote>
    <ul>
      <li></li>
    </ul>
    <p>x
t</p>
  </blockquote>
</blockquote>

A column-0 comment before a sibling keeps the blank that loosens the list ​

4 conformance fixtures

PART 9 §17 L1c with CARVE-P9-013 property 3. A blank inside an item, followed only by invisible lines, still stands between the item and the next sibling marker when a comment or definition at column 0 comes between them. Removing the column-0 line must not change the output; each document renders as it does without that line.

carve
- a

  %% y
%% z
- c
html
<ul>
  <li><p>a</p></li>
  <li><p>c</p></li>
</ul>
carve
- %%%

%%%
%% z
- c
html
<ul>
  <li></li>
  <li>c</li>
</ul>
carve
- a

  {.c}
[s]: /v
- c
html
<ul>
  <li><p>a</p></li>
  <li><p>c</p></li>
</ul>
carve
> - a
>
>   %% y
> %% z
> - c
html
<blockquote>
  <ul>
    <li><p>a</p></li>
    <li><p>c</p></li>
  </ul>
</blockquote>

A termless colon line a quote attaches opens no fence ​

3 conformance fixtures

A quote's + attaches the next block, and that block's grant ends at its boundary (PART 9 §17 L3, carve#5040). A : line with no term above it is a paragraph, not a description, so a backtick run on it opens a code span, not a fence. That span ends with the block, and the next quote line starts a paragraph.

carve
> +
: ``` js
> q
html
<blockquote>
  <p>: <code> js</code></p>
  <p>q</p>
</blockquote>

The run may stand alone,

carve
> +
: ```
> q
html
<blockquote>
  <p>: <code></code></p>
  <p>q</p>
</blockquote>

and a run on the next quote line opens a span of its own.

carve
> +
: ````
> q```
html
<blockquote>
  <p>: <code></code></p>
  <p>q<code></code></p>
</blockquote>

A nested quote after a quoted list leaves a marker line lazy ​

4 conformance fixtures

PART 0 S4 and the block-quote row (carve#5044). A quote interrupts the item's paragraph, so > c ends the item and the deepest open paragraph is the nested quote's. A list marker that misses nothing but quotes folds into it.

carve
> - a
> > c
- tail
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
  <blockquote><p>c
- tail</p></blockquote>
</blockquote>

An ordered item and an ordered tail read the same,

carve
> 1. a
> > c
1. tail
html
<blockquote>
  <ol>
    <li>a</li>
  </ol>
  <blockquote><p>c
1. tail</p></blockquote>
</blockquote>

and so does a nested quote one column past the item's marker.

carve
> - a
>  > c
- tail
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
  <blockquote><p>c
- tail</p></blockquote>
</blockquote>

A tail that keeps the outer quote's marker folds into the deepest quote too.

carve
> > - a
> > > c
> - tail
html
<blockquote>
  <blockquote>
    <ul>
      <li>a</li>
    </ul>
    <blockquote><p>c
- tail</p></blockquote>
  </blockquote>
</blockquote>

A span's closer after a blank keeps the list tight ​

6 conformance fixtures

A blank inside a list item's %%% span is payload, and the span's closer is the item's (PART 0 S1, PART 9 §28). When only that closer stands between the blank and the next sibling marker, something of the item follows the blank, so the blank is interior, like a code fence's (PART 9 §17 L1c, carve#5030). The list stays tight wherever the span opens: on the marker line, on its own line, in a nested item, after a nested marker, or on a description lead. The last case is the control: with no closer, the sibling marker ends the span (PART 0 S1), nothing of the item follows the blank, and the list is loose.

carve
- %%%

  %%%
- d
html
<ul>
  <li></li>
  <li>d</li>
</ul>
carve
- a
  %%%

  %%%
- d
html
<ul>
  <li>a</li>
  <li>d</li>
</ul>
carve
- a
  - b
    %%%

    %%%
- c
html
<ul>
  <li>a
    <ul>
      <li>b</li>
    </ul>
  </li>
  <li>c</li>
</ul>
carve
- a
  :: u
  : %%%

    %%%
- c
html
<ul>
  <li>a
    <dl>
      <dt>u</dt>
      <dd></dd>
    </dl>
  </li>
  <li>c</li>
</ul>
carve
- a
  - %%%

    %%%
- c
html
<ul>
  <li>a
    <ul>
      <li></li>
    </ul>
  </li>
  <li>c</li>
</ul>
carve
- a
  %%%

- d
html
<ul>
  <li><p>a</p></li>
  <li><p>d</p></li>
</ul>

A quote's next + is not payload of an item fence the last block left open ​

4 conformance fixtures

A + is a marker, consumed when it attaches (PART 9 §17 L3). When the block the quote's previous + attached ends in an item's open code fence, the next + at column 0 misses the fence's owner, which ends the fence before it (PART 0 S1), so it adds no payload line. The item fence ends where a flush-left fence in the same place ends (carve#5046). The last case is an item fence with no payload line, which stays empty.

carve
> a
+
- ``` js
  x
+
- y
html
<blockquote>
  <p>a</p>
  <ul>
    <li>
      <pre><code class="language-js">x
</code></pre>
    </li>
    <li><p>y</p></li>
  </ul>
</blockquote>
carve
> a
+
1. ```
   x
+
y
html
<blockquote>
  <p>a</p>
  <ol>
    <li>
      <pre><code>x
</code></pre>
    </li>
  </ol>
  <p>y</p>
</blockquote>
carve
> a
+
- b
  - ~~~
    x
+
- y
html
<blockquote>
  <p>a</p>
  <ul>
    <li><p>b</p>
      <ul>
        <li>
          <pre><code>x
</code></pre>
        </li>
      </ul>
    </li>
    <li><p>y</p></li>
  </ul>
</blockquote>
carve
> a
+
- ``` js
+
- y
html
<blockquote>
  <p>a</p>
  <ul>
    <li>
      <pre><code class="language-js"></code></pre>
    </li>
    <li><p>y</p></li>
  </ul>
</blockquote>

A blank inside a +-attached description keeps the list tight ​

4 conformance fixtures

A + changes where a block is written, not how it is read (CARVE-P9-067). A blank between a description's paragraphs is the description's, so it loosens the enclosing list no more than it does when the description list is indented into the item (PART 9 §17 L1, carve#5056). The line after the blank stands at the description's body column, which a + puts at the item's content column. The rows cover the reproduction, a second description followed by a sibling marker, and a nested item. The last row is the control: a blank ends a quote, so the line after it is the item's own second paragraph and the list is loose.

carve
- a
+
:: term
: d

  x
html
<ul>
  <li>a
    <dl>
      <dt>term</dt>
      <dd>
        <p>d</p>
        <p>x</p>
      </dd>
    </dl>
  </li>
</ul>
carve
- a
+
:: t
: d
: e

  x
- b
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
      <dd>d</dd>
      <dd>
        <p>e</p>
        <p>x</p>
      </dd>
    </dl>
  </li>
  <li>b</li>
</ul>
carve
- a
  - b
  +
  :: t
  : d

    x
html
<ul>
  <li>a
    <ul>
      <li>b
        <dl>
          <dt>t</dt>
          <dd>
            <p>d</p>
            <p>x</p>
          </dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>
carve
- a
+
> q

  x
html
<ul>
  <li><p>a</p>
    <blockquote><p>q</p></blockquote>
    <p>x</p>
  </li>
</ul>

A fence a quote's attached block opens ends with its container ​

4 conformance fixtures

A quote's + attaches the next block, and that block's grant ends at its boundary (PART 9 §17 L3, carve#5045). A fence the block leaves open ends there too, so the quote's next line starts a paragraph and no empty payload line is added. A description's body may open a list, and the fence behind its marker is found the same way,

carve
> :: t
+
: - ``` js
> q
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>
      <ul>
        <li>
          <pre><code class="language-js"></code></pre>
        </li>
      </ul>
    </dd>
  </dl>
  <p>q</p>
</blockquote>

and a line left of the fence's column leaves its item, which ends the fence before the block does.

carve
> :: t
+
: - ``` js
  - x
> q
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>
      <ul>
        <li>
          <pre><code class="language-js"></code></pre>
        </li>
        <li>x</li>
      </ul>
    </dd>
  </dl>
  <p>q</p>
</blockquote>

The same holds for a sibling item after a first-block +

carve
> +
- ``` js
- x
> q
html
<blockquote>
  <ul>
    <li>
      <pre><code class="language-js"></code></pre>
    </li>
    <li>x</li>
  </ul>
  <p>q</p>
</blockquote>

and after a separate-line +.

carve
> a
+
- ``` js
- x
> q
html
<blockquote>
  <p>a</p>
  <ul>
    <li>
      <pre><code class="language-js"></code></pre>
    </li>
    <li>x</li>
  </ul>
  <p>q</p>
</blockquote>

A task box gap keeps a nested description at its content column ​

2 conformance fixtures

The space after the task box moves the marker-line child one column right. Its description at that child's content column joins the term (PART 0 S2 and S3, CARVE-P9-083, carve#5061).

carve
- [?]  - :: t
         : a
html
<ul class="task-list">
  <li data-task-state="?"><input type="checkbox" disabled> 
    <ul>
      <li>
        <dl>
          <dt>t</dt>
          <dd>a</dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>

A wider gap and a second term keep both descriptions in the child.

carve
- [x]   - :: term
           : desc
           :: next
           : body
html
<ul class="task-list">
  <li data-task-state="x"><input type="checkbox" checked disabled> 
    <ul>
      <li>
        <dl>
          <dt>term</dt>
          <dd>desc</dd>
          <dt>next</dt>
          <dd>body</dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>

An unclosed fence in a marker-line note cannot retain the following line ​

2 conformance fixtures

The fence body has no open paragraph (CARVE-P0-013). It ends when the column-zero line misses its note owner (PART 0 S1 and S2), so the final line is a document paragraph (carve#5065).

carve
- [^n]: t
  %%

    ~~~
    e
]
html
<ul>
  <li></li>
</ul>
<p>]</p>

The same boundary applies after a closed %%% comment span, which remains a block-level construct under carve#5012.

carve
- [^n]: t
  %%%
  %%%

    ~~~
    e
]
html
<ul>
  <li></li>
</ul>
<p>]</p>

A plus skips every invisible line its host keeps ​

5 conformance fixtures

CARVE-P9-067 (carve#5130). Between a + and its block, an invisible line the host keeps is skipped wherever it stands: at the marker column or at or past the host's content column. One the host's invisible field closes the host at still closes it and refuses the +.

A %%% span at the item's content column is a line the item keeps, so the + skips it and the first visible line decides, as it does after a %% line:

carve
- +
  %%%
  c
  %%%
text
html
<ul>
  <li>text</li>
</ul>

An attribute line there labels the attached block:

carve
- +
  {x}
text
html
<ul>
  <li><p x="">text</p></li>
</ul>

A footnote definition the item keeps is skipped the same way, so a fence at the marker column attaches:

carve
- +
  [^n]: x
```
z
```

r[^n]
html
<ul>
  <li>
    <pre><code>z
</code></pre>
  </li>
</ul>
<p>r<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The first visible line still decides. At the content column it is refused, as - + / text is:

carve
- +
  %%%
  c
  %%%
  text
html
<ul>
  <li>text</li>
</ul>

Below the content column an attribute line closes the item, so the + is refused and {x} labels the paragraph after the list:

carve
- +
 {x}
text
html
<ul>
  <li></li>
</ul>
<p x="">text</p>

A quote plus after a quote-attached paragraph is a letter ​

3 conformance fixtures

CARVE-P9-067 (carve#5132). A quote's + attaches a paragraph written outside the quote prefix, and that paragraph is the quote's. A following > + continues the same quote, so its + stands at the quote's content column and is a letter, as in > a / > +.

At the end of input the + stays a letter in its own paragraph:

carve
> +
q
> +
html
<blockquote>
  <p>q</p>
  <p>+</p>
</blockquote>

A following line does not make it a marker; an unmarked line folds into its paragraph:

carve
> +
q
> +
r
html
<blockquote>
  <p>q</p>
  <p>+
r</p>
</blockquote>

A heading after it stands after the quote:

carve
> +
q
> +
# h
html
<blockquote>
  <p>q</p>
  <p>+</p>
</blockquote>
<section id="h">
  <h1>h</h1>
</section>

A comment between a term and its description is the description's first block ​

5 conformance fixtures

PART 0 FAMILY GUARDS and CARVE-P12-027 decide this case (carve#5167). A %%% span or %% line written after a term is the first block of the description that follows, after any further terms. The term still ends with its line ([B-term-end]), the list stays one list, and the comment renders nothing. The .fmt beside each row writes the comment on the description's marker line, at its body column.

A span at the term's content column, its payload indented past it:

carve
:: t
  %%%
      a
  %%%
:  body
html
<dl>
  <dt>t</dt>
  <dd>body</dd>
</dl>

The same span at column 0:

carve
:: t
%%%
a
%%%
: body
html
<dl>
  <dt>t</dt>
  <dd>body</dd>
</dl>

With a second term between, the span belongs to the description after :: u:

carve
:: t
%%%
a
%%%
:: u
: body
html
<dl>
  <dt>t</dt>
  <dt>u</dt>
  <dd>body</dd>
</dl>

A %% line is placed the same way:

carve
:: t
%% c
: body
html
<dl>
  <dt>t</dt>
  <dd>body</dd>
</dl>

And with a second term between:

carve
:: t
%% c
:: u
: body
html
<dl>
  <dt>t</dt>
  <dt>u</dt>
  <dd>body</dd>
</dl>

A container-owned comment run is one writer block ​

3 conformance fixtures

CARVE-P11-079 (b) writes consecutive container-owned %% lines as one run. A loose host has one blank boundary on either side of the run, while a tight host keeps it without surrounding blanks. There is no blank within the run. Each spelling below reads back to the same HTML (PART 11 §1).

A loose description body.

carve
:: t
: a

  %% c
  %% d

  b
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <p>b</p>
  </dd>
</dl>

Between two items of a loose list.

carve
- a

  %% y
  %% z
- c
html
<ul>
  <li><p>a</p></li>
  <li><p>c</p></li>
</ul>

A tight list keeps its run directly below its item.

carve
- a
  %% y
  %% z
- c
html
<ul>
  <li>a</li>
  <li>c</li>
</ul>

A document-owned comment run stays between list items ​

1 conformance fixture

CARVE-P11-079 (b) keeps each document-owned %% line between the list items it separates. The lines form one comment block even when the run crosses an ownership boundary, as in row 945. The canonical spelling below preserves the one loose list under PART 11 §1.

carve
- a
%% c1

- b
%% c2

- c
%% c3
html
<ul>
  <li><p>a</p></li>
  <li><p>b</p></li>
  <li><p>c</p></li>
</ul>

A multi-line braced comment keeps the nested list open ​

4 conformance fixtures

The comment run's continuation misses the nested item's body column, so the run takes no lazy line and is refused (carve#5830 rule B). Its opener is literal paragraph text in the nested item, and the later marker reaches the deepest surviving container under CARVE-P0-024.

carve
- a
  - b
{% c
  d %}
  - c
html
<ul>
  <li>a
    <ul>
      <li>b
{% c
d %}</li>
      <li>c</li>
    </ul>
  </li>
</ul>

A blank after the refused run loosens the nested list without closing it.

carve
- a
  - b
{% c
  d %}

  - c
html
<ul>
  <li>a
    <ul>
      <li><p>b
{% c
d %}</p></li>
      <li><p>c</p></li>
    </ul>
  </li>
</ul>

A lazy line after the refused run remains in the deepest item before the next marker.

carve
- a
  - b
{% c
  d %}
 x
  - c
html
<ul>
  <li>a
    <ul>
      <li>b
{% c
d %}
x</li>
      <li>c</li>
    </ul>
  </li>
</ul>

A later marker can also open a deeper child under the surviving nested item.

carve
- a
  - b
{% c
  d %}
    - c
html
<ul>
  <li>a
    <ul>
      <li>b
{% c
d %}
        <ul>
          <li>c</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

A lazy line after a comment keeps the deepest list open ​

2 conformance fixtures

The lazy {% run's continuation misses the nested item's body column, so the run is refused (carve#5830 rule B) and its opener is literal. A later line does not change that (rule A). PART 0 S4 folds the run and the next plain line into the deepest open paragraph even when they miss that item's content column. The later blank separates the nested list's siblings under PART 9 §17 L1.

carve
- a
  - b
{% c
 d %}
 tail

  - z
html
<ul>
  <li>a
    <ul>
      <li><p>b
{% c
d %}
tail</p></li>
      <li><p>z</p></li>
    </ul>
  </li>
</ul>

A line at the ancestor's content column still continues the innermost paragraph when that paragraph is open.

carve
- a
  - mid
    - b
 {% c
   d %}
  tail

    - z
html
<ul>
  <li>a
    <ul>
      <li>mid
        <ul>
          <li><p>b
{% c
d %}
tail</p></li>
          <li><p>z</p></li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

Text ending a nested span opens a paragraph in the surviving item ​

1 conformance fixture

PART 0 S1 ends a comment span when a text line misses its owner's column. The line is then read in the surviving item and opens its paragraph. PART 0 S4 folds the next line into that paragraph, even if it misses every item column.

carve
- a
  - - %%%
    n
zz
html
<ul>
  <li>a
    <ul>
      <li>
        <ul>
          <li></li>
        </ul>
        n
zz
      </li>
    </ul>
  </li>
</ul>

A block at a pulled description column opens in the description ​

4 conformance fixtures

PART 0 CARVE-P0-011 ends a pulled paragraph when a block reaches the description's content column. A later column-zero line leaves the description after the heading closes its paragraph.

carve
:: t
: +
h
  # H
html
<dl>
  <dt>t</dt>
  <dd>
    <p>h</p>
    <h1 id="H">H</h1>
  </dd>
</dl>
carve
:: t
: +
h
  # H
z
html
<dl>
  <dt>t</dt>
  <dd>
    <p>h</p>
    <h1 id="H">H</h1>
  </dd>
</dl>
<p>z</p>
carve
- item

  :: t
  : +
  h
    # H
z
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>t</dt>
      <dd>
        <p>h</p>
        <h1 id="H">H</h1>
      </dd>
    </dl>
  </li>
</ul>
<p>z</p>
carve
- item
  - item

    :: t
    : +
    h
      # H
z
html
<ul>
  <li>item
    <ul>
      <li><p>item</p>
        <dl>
          <dt>t</dt>
          <dd>
            <p>h</p>
            <h1 id="H">H</h1>
          </dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>
<p>z</p>

An outer item's paragraph after a nested attached fence loosens it ​

1 conformance fixture

PART 9 §17 L1. The nested list is a visible block of the outer item. The blank after its attached fence separates it from the outer item's paragraph, so the outer item is loose.

carve
- - +
  ```

  tail
    ```
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    <p>tail
<code></code></p>
  </li>
</ul>

An attribute at an attached task quote column applies to its paragraph ​

1 conformance fixture

After > + in a task item, the quote's marker column reads an attribute line at the same column as a heading.

carve
- [ ] > +
      {.c}
      p
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <blockquote><p class="c">p</p></blockquote>
  </li>
</ul>

A definition marker after a block and paragraph ends the item ​

1 conformance fixture

PART 0 S4 (definition-body markers). A later block ends a term-only definition list. A description-shaped line on the item's marker column then folds into the open paragraph.

carve
- a
  :: t
  # H
  w
: z
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
    </dl>
    <h1 id="H">H</h1>
    w
: z
  </li>
</ul>

An ended definition list releases its marker boundary ​

7 conformance fixtures

A paragraph ends an unquoted term-only list (carve#5368) ​

carve
- a
  :: t
  x
: d
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
    </dl>
    x
: d
  </li>
</ul>

A paragraph ends a quoted term-only list (carve#5368) ​

carve
- a
  > +
  :: t
  x
: d
html
<ul>
  <li>a
    <blockquote>
      <dl>
        <dt>t</dt>
      </dl>
    </blockquote>
    x
: d
  </li>
</ul>

A released description-shaped paragraph stays a paragraph (carve#5373) ​

carve
- a
  :: m
  : d

  p

  : x
: l
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>m</dt>
      <dd>d</dd>
    </dl>
    <p>p</p>
    <p>: x
: l</p>
  </li>
</ul>

A child list ends a term-only list (carve#5373) ​

carve
- a
  :: t

  - n
  - n

  : u
: z
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>t</dt>
    </dl>
    <ul>
      <li>n</li>
      <li>n</li>
    </ul>
    <p>: u
: z</p>
  </li>
</ul>

A sublist takes the deepest lazy paragraph (carve#5379) ​

carve
- a
  :: m
  - i
: l
html
<ul>
  <li>a
    <dl>
      <dt>m</dt>
    </dl>
    <ul>
      <li>i
: l</li>
    </ul>
  </li>
</ul>

A quote ends a term-only list (carve#5365) ​

carve
- a
  :: t
  > q

  w
: z
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>t</dt>
    </dl>
    <blockquote><p>q</p></blockquote>
    <p>w
: z</p>
  </li>
</ul>

A quote with definitions releases its later paragraph (carve#5365) ​

carve
- a
  > +
  :: t
    : d

    q
: d
html
<ul>
  <li><p>a</p>
    <blockquote>
      <dl>
        <dt>t</dt>
        <dd>d</dd>
      </dl>
    </blockquote>
    <p>q
: d</p>
  </li>
</ul>

An unclosed attached colon ends at its first blank ​

5 conformance fixtures

The item takes the line after the note (carve#5359) ​

carve
- +
::: note

  tail
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">

    </aside>
    <p>tail</p>
  </li>
</ul>

A nested item takes the block after the note (carve#5359) ​

carve
- a
  * +
  ::: note

    - q
html
<ul>
  <li>a
    <ul>
      <li>
        <aside class="admonition note" aria-label="Note">

        </aside>
        <ul>
          <li>q</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

A blank inside an attached note loosens ordered siblings (carve#5356) ​

carve
1. a
  1. +
  :::: note

     p
html
<ol>
  <li><p>a</p></li>
  <li>
    <aside class="admonition note" aria-label="Note">

    </aside>
    <p>p</p>
  </li>
</ol>

A closer in the host keeps an attached line block open past its blank (carve#5405) ​

carve
- +
::: |

  ::: x
  :::
html
<ul>
  <li>
    <div class="line-block">
      <p>::: x</p>
    </div>
  </li>
</ul>

A closer in the host keeps an attached div open past its blank (carve#5405) ​

carve
- +
::: x

  a
  :::
html
<ul>
  <li>
    <div class="x">
      <p>a</p>
    </div>
  </li>
</ul>

An outer item loosens after a nested attached colon ends ​

1 conformance fixture

A quote after the note belongs to the outer item (carve#5393) ​

carve
- a
  * +
  ::: note

  > q
html
<ul>
  <li><p>a</p>
    <ul>
      <li>
        <aside class="admonition note" aria-label="Note">

        </aside>
      </li>
    </ul>
    <blockquote><p>q</p></blockquote>
  </li>
</ul>

Open-state lifetime boundaries ​

34 conformance fixtures

term description ​

carve
:: t
: d
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
</dl>

term nonmember ​

carve
- a
  :: t
  # H
  x
: d
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
    </dl>
    <h1 id="H">H</h1>
    x
: d
  </li>
</ul>

term blank nonmember ​

carve
- a
  :: t

  p
: d
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>t</dt>
    </dl>
    <p>p
: d</p>
  </li>
</ul>

description sibling ​

carve
:: t
: a
: b
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
  <dd>b</dd>
</dl>

description next term ​

carve
:: t
: a
:: u
: b
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
  <dt>u</dt>
  <dd>b</dd>
</dl>

description marker column ​

carve
- a
  :: t
  : d
: x
html
<ul>
  <li>a
    <dl>
      <dt>t</dt>
      <dd>d</dd>
    </dl>
  </li>
</ul>
<p>: x</p>

description after closure ​

carve
- a
  :: t
  : d

  p
: x
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>t</dt>
      <dd>d</dd>
    </dl>
    <p>p
: x</p>
  </li>
</ul>

item blank keep ​

carve
- a

  b
html
<ul>
  <li><p>a</p>
    <p>b</p>
  </li>
</ul>

item missed line ​

carve
- a
  # H
b
html
<ul>
  <li>a
    <h1 id="H">H</h1>
  </li>
</ul>
<p>b</p>

item sibling ​

carve
- a
- b
html
<ul>
  <li>a</li>
  <li>b</li>
</ul>

stanza blank ​

carve
::: |
alpha

beta
:::
html
<div class="line-block">
  <p>alpha</p>
  <p>beta</p>
</div>

stanza closer ​

carve
::: |
alpha
:::
tail
html
<div class="line-block">
  <p>alpha</p>
</div>
<p>tail</p>

stanza host end ​

carve
- +
::: |
alpha
: z
html
<ul>
  <li>
    <div class="line-block">
      <p>alpha<br>
: z</p>
    </div>
  </li>
</ul>

comment closer ​

carve
%%%
hidden
%%%
shown
html
<p>shown</p>

comment owner miss ​

carve
- a
  %%%
  hidden
outside
html
<ul>
  <li>a</li>
</ul>
<p>outside</p>

comment input end ​

carve
%%%
hidden
html

attached code closer ​

carve
- +
```
a
```
tail
html
<ul>
  <li>
    <pre><code>a
</code></pre>
  </li>
</ul>
<p>tail</p>

attached code blank ​

carve
- +
```
a

  tail
html
<ul>
  <li>
    <pre><code>a
</code></pre>
    <p>tail</p>
  </li>
</ul>

attached colon closer ​

carve
- +
::: note
inside
:::
tail
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <p>inside</p>
    </aside>
  </li>
</ul>
<p>tail</p>

attached colon blank ​

carve
- +
::: note
inside

  tail
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <p>inside</p>
    </aside>
    <p>tail</p>
  </li>
</ul>

attached other boundary ​

carve
> +
# H
tail
html
<blockquote>
  <h1 id="H">H</h1>
</blockquote>
<p>tail</p>

pulled paragraph interrupt ​

carve
:: t
: +
p
  # H
html
<dl>
  <dt>t</dt>
  <dd>
    <p>p</p>
    <h1 id="H">H</h1>
  </dd>
</dl>

pulled paragraph lazy ​

carve
- +
p
q
html
<ul>
  <li>p
q</li>
</ul>

quote marked blank ​

carve
> a
>
> b
html
<blockquote>
  <p>a</p>
  <p>b</p>
</blockquote>

quote unmarked blank ​

carve
> a

> b
html
<blockquote><p>a</p></blockquote>
<blockquote><p>b</p></blockquote>

quote nonmember ​

carve
> a
> # H
> b
html
<blockquote>
  <p>a</p>
  <h1 id="H">H</h1>
  <p>b</p>
</blockquote>

term needs content ​

carve
::
html
<p>::</p>

description needs content ​

carve
:: t
:
html
<dl>
  <dt>t</dt>
</dl>
<p>:</p>

item host ends at blank ​

carve
> - a

  b
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
</blockquote>
<p>b</p>

item own line plus ​

carve
- a
+
# H
html
<ul>
  <li>a
    <h1 id="H">H</h1>
  </li>
</ul>

pulled paragraph blank ​

carve
- +
p

  q
html
<ul>
  <li><p>p</p>
    <p>q</p>
  </li>
</ul>

quote description sibling ​

carve
:: t
: > q
: b
html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote><p>q</p></blockquote>
  </dd>
  <dd>b</dd>
</dl>

comment marker line closer ​

carve
- %%%
  hidden
  %%%
- b
html
<ul>
  <li></li>
  <li>b</li>
</ul>

comment marker line owner miss ​

carve
- %%%
  hidden
outside
html
<ul>
  <li></li>
</ul>
<p>outside</p>

An attached fence closes only at its host column (carve#5410) ​

3 conformance fixtures

The indented fence line is outside the closer column of the fence opened by the marker-line +. Its first blank ends that fence. The indented line then opens a second fence in each host.

List item ​

carve
- +
```
a

  ```
  c
html
<ul>
  <li>
    <pre><code>a
</code></pre>
    <pre><code>c
</code></pre>
  </li>
</ul>

Definition body ​

carve
:: t
: +
```
a

  ```
  c
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code>a
</code></pre>
    <pre><code>c
</code></pre>
  </dd>
</dl>

Footnote body ​

carve
[^1]: +
```
a

  ```
  c
[^1]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <pre><code>a
</code></pre>
      <pre><code>c
</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A block at a pulled footnote column opens in the note ​

2 conformance fixtures

PART 0 CARVE-P0-011 ends a pulled paragraph when a block reaches the note's content column, as in a description (PART 9 §17 L3). A fence or attribute line there opens in the note; a later column-zero line leaves it.

carve
[^1]

[^1]: +
h
  ```
z
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p>z</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>h</p>
      <pre><code></code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^1]

[^1]: +
h
  {.c}
  k
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>h</p>
      <p class="c">k<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A skipped note definition cannot claim an earlier plus ​

1 conformance fixture

A footnote definition at the host's marker column stays in that host. Its own + cannot claim the block already offered to an earlier + (CARVE-P9-067 L3).

carve
[^a]: +
[^a]: +
- b

[^a]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>b</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A block at the host column after a plus-attached quote stays in the host ​

4 conformance fixtures

A line without > that cannot fold into the quote's paragraph ends the quote (PART 0 S4). At the host's content column it belongs to the item, note or description (CARVE-P0-024).

carve
- +
> q
  # g
html
<ul>
  <li>
    <blockquote><p>q</p></blockquote>
    <h1 id="g">g</h1>
  </li>
</ul>
carve
- +
> q
  ::: w

```html
<ul>
  <li>
    <blockquote><p>q</p></blockquote>
    <div class="w">

    </div>
  </li>
</ul>

:::

carve
[^1]: +
> q
  # g

[^1]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <blockquote><p>q</p></blockquote>
      <h1 id="g">g</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
: +
> q
  ::: w

```html
<dl>
  <dt>t</dt>
  <dd>
    <blockquote><p>q</p></blockquote>
    <div class="w">

    </div>
  </dd>
</dl>

:::

A nested item resumes after its attached fence with an empty line ​

2 conformance fixtures

A fence a marker-line + takes runs through its closer, empty lines included (PART 9 §17 L3). After it the nested item resumes at its content column (CARVE-P0-024).

carve
- a
  - +
  ```
  x

  y
  ```

    # g
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code>x

y
</code></pre>
        <h1 id="g">g</h1>
      </li>
    </ul>
  </li>
</ul>
carve
- a
  - +
  ::: w
  x

  y
# g

```html
<ul>
  <li>a
    <ul>
      <li>
        <div class="w">
          <p>x</p>
          <p>y</p>
        </div>
        <h1 id="g">g</h1>
      </li>
    </ul>
  </li>
</ul>

:::

An outer plus host resumes after a quote holding a plus host ​

2 conformance fixtures

The quote is the outer host's one attached block, and the + inside it does not replace that attachment. After the quote ends, the outer host resumes at its content column (CARVE-P0-024).

carve
- +
> - +
> ```
> ```

  # outer
html
<ul>
  <li>
    <blockquote>
      <ul>
        <li>
          <pre><code></code></pre>
        </li>
      </ul>
    </blockquote>
    <h1 id="outer">outer</h1>
  </li>
</ul>
carve
[^1]: +
> - +
> ```
> ```

  # outer

[^1]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <blockquote>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
      </blockquote>
      <h1 id="outer">outer</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A caption at the host column captions a plus-attached quote ​

3 conformance fixtures

A caption line is no lazy continuation (PART 0 S4). At the host's content column it follows the attached quote in the host and captions it.

carve
- +
> q
  ^ cap
html
<ul>
  <li>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </li>
</ul>
carve
[^1]: +
> q
  ^ cap

[^1]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <figure>
        <blockquote><p>q</p></blockquote>
        <figcaption>cap</figcaption>
      </figure>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
: +
> q
  ^ cap
html
<dl>
  <dt>t</dt>
  <dd>
    <figure>
      <blockquote><p>q</p></blockquote>
      <figcaption>cap</figcaption>
    </figure>
  </dd>
</dl>

An attribute line between two sub-lists of an item makes the second a different list ​

4 conformance fixtures

PART 9 §17 L1: a blank before a different list stands between two of the item's own blocks, so it loosens the item. An attribute line below a sub-list belongs to the next block, so the list after it is a new list even when its marker matches; a blank between the attribute line and that list loosens the item. A comment or a link definition in the same place keeps the sub-list open, so its blank loosens only the sub-list.

The reproduction: {x} opens the second list, and the blank loosens the item.

carve
- a
  - b
  {x}

  - c
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
    <ul x="">
      <li>c</li>
    </ul>
  </li>
</ul>

With the blank above the attribute line instead.

carve
- a
  - b

  {x}
  - c
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
    <ul x="">
      <li>c</li>
    </ul>
  </li>
</ul>

An ordered sub-list, inside a block quote host.

carve
> 1. a
>    1. b
>    {#i .k}
>
>    2. c
html
<blockquote>
  <ol>
    <li><p>a</p>
      <ol>
        <li>b</li>
      </ol>
      <ol start="2" id="i" class="k">
        <li>c</li>
      </ol>
    </li>
  </ol>
</blockquote>

Control: a comment line keeps the sub-list open, so the blank loosens the sub-list and not the item.

carve
- a
  - b
  %%

  - c
html
<ul>
  <li>a
    <ul>
      <li><p>b</p></li>
      <li><p>c</p></li>
    </ul>
  </li>
</ul>

A shallower line ends a descendant comment span and opens a paragraph ​

1 conformance fixture

PART 0 S1 ends an open comment span when a non-comment line misses its owner's column. Under PART 0 S4, that line opens a paragraph in the surviving item, and the next plain line continues it. The depth of the marker stack does not change that decision.

carve
- - - x
      %%%%
    b
z
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>x</li>
        </ul>
        b
z
      </li>
    </ul>
  </li>
</ul>

Invisible note definitions do not loosen a list item ​

6 conformance fixtures

PART 9 §17 L1 and CARVE-P9-013 point 3: a footnote definition renders nothing in the item, and neither does its body: the line a + takes, a lazy line, or an indented continuation. A lead of only such lines is no first block, so a blank line after it does not make the item loose.

The reproduction: two note definitions lead the item, and the second one's + takes the next line. Both are invisible, so y is the item's first block and the blank before it does not loosen the list.

carve
- [^a]: seed
  [^b]: +
   x

  y[^a][^b]
html
<ul>
  <li>y<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a><a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>seed<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>x<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Shape A: the note on the marker line takes the next line with +.

carve
- [^a]: +
  flush

  see[^a]
html
<ul>
  <li>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>flush<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Shape B: two notes split by a blank, the second with a lazy line.

carve
- [^a]: x

  [^b]: d2
  flush

  see[^a]
html
<ul>
  <li>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A + line indented past the note's body column, in an item with a sibling.

carve
- [^a]: x

  [^b]: +
      indented

  see[^a][^b]
- next
html
<ul>
  <li>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a><a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></li>
  <li>next</li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>indented<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An ordered item whose note takes a line one column in with +.

carve
1. [^a]: x
   [^b]: +
    one

   see[^a][^b]
2. next
html
<ol>
  <li>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a><a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a></li>
  <li>next</li>
</ol>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>x<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>one<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A visible paragraph before the note still makes see a second block, so this item is loose.

carve
- first

  [^a]: +
  flush

  see[^a]
html
<ul>
  <li><p>first</p>
    <p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
  </li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>flush<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A footnote definition between sub-lists separates them ​

1 conformance fixture

PART 9 §17 L1 says a blank before a different list stands between two of the item's own blocks and loosens the item. CARVE-P9-013 makes a footnote definition invisible where it stands. At the child list's marker column, the definition ends that list, so the marker after the blank starts a second child list.

carve
- a
  - b
  [^n]: t

  - c
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
    <ul>
      <li>c</li>
    </ul>
  </li>
</ul>

A plus at a quoted fence's content column stays payload ​

1 conformance fixture

PART 9 §17 L3 keeps a + at an open fence's content column as payload. The attached quote's marker column does not claim that line.

carve
> +
>  ```
>  +
html
<blockquote>
  <blockquote>
    <pre><code>+
</code></pre>
  </blockquote>
</blockquote>

A sibling marker in an unclosed attached fence is payload ​

1 conformance fixture

PART 0 S1 keeps a sibling marker inside an unclosed attached fence until the first blank. A later blank does not change how the marker line is read (carve#5499).

carve
- - +
  ```
  - z

q
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code>- z
</code></pre>
      </li>
    </ul>
  </li>
</ul>
<p>q</p>

A top-level sibling marker in an unclosed attached fence is payload ​

1 conformance fixture

The #5499 reading holds at the top level too: a sibling marker inside an unclosed fence that a marker-line + attached is code, whether or not a blank follows later (carve#5531).

carve
- +
```
- z

q
html
<ul>
  <li>
    <pre><code>- z
</code></pre>
  </li>
</ul>
<p>q</p>

A marker-line note resumes after its plus block ​

1 conformance fixture

When a note on a list item's marker line takes a block with +, the note resumes at its body column after that block, so the unclosed fence below p is the note's (carve#5512).

carve
- [^a]: +
  p
    ``` x
    [^z]: code

see[^a]
html
<ul>
  <li></li>
</ul>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>p</p>
      <pre><code class="language-x">[^z]: code

</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A note-attached list keeps its child fence payload ​

1 conformance fixture

A quote-shaped line at the note's attachment column is still payload of an open code fence in the attached list item (PART 0 S1, carve#5550).

carve
- [^a]: +
  - li
    ```
    > quoted
    ```

see[^a]
html
<ul>
  <li></li>
</ul>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>li
          <pre><code>&gt; quoted
</code></pre>
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A nested attached fence keeps list looseness at the owning item ​

2 conformance fixtures

A blank between child lists loosens the parent item. A blank inside a child item stays with that child under PART 9 §17 L1 (carve#5534).

carve
- a
  - +
    ```
  * z

  - q
html
<ul>
  <li><p>a</p>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
    <ul>
      <li>z</li>
    </ul>
    <ul>
      <li>q</li>
    </ul>
  </li>
</ul>
carve
- a
  - +
  ```
  - z

    q
html
<ul>
  <li>a
    <ul>
      <li>
        <pre><code>- z
</code></pre>
        <p>q</p>
      </li>
    </ul>
  </li>
</ul>

A refused brace run keeps its follower in an attached note ​

1 conformance fixture

The continuation fails the brace-column test. The attached note keeps the literal opener; the following heading is read normally (CARVE-P2-035, carve#5830).

carve
[^a]: +
{.x
.y}
# h

see[^a]
html
<section id="h">
  <h1>h</h1>
  <p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
</section>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>{.x
.y}<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An unclosed backtick follower stays in a note paragraph ​

1 conformance fixture

The brace opener is literal. The following backtick fence opens as a separate block and keeps its own payload (CARVE-P2-035, carve#5830).

carve
see[^a]

[^a]: +
{.x
.y}
```
wa


tail
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<pre><code>wa


tail
</code></pre>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>{.x
.y}<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A later fence opener ends a description after a refused run ​

1 conformance fixture

The refused brace opener is literal. Both following fence openers are read by ordinary fence and attachment rules (CARVE-P2-035, carve#5830).

carve
:: t
: +
{.x
.y}
```
wa
```
```
html
<dl>
  <dt>t</dt>
  <dd>{.x
.y}</dd>
</dl>
<pre><code>wa
</code></pre>
<pre><code></code></pre>

A note-attached fence blank ends lazy claim ​

1 conformance fixture

The blank remains payload of the attached list item's unclosed fence. A later line below the note body column stays in the document (PART 0 S1 and S4, carve#5581).

carve
x[^a]

[^a]: +
- ```
  - nest

y
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p>y</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <ul>
        <li>
          <pre><code>- nest

</code></pre>
        </li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A refused plus before a description list sibling keeps it tight ​

1 conformance fixture

The + offers a sibling of the list item. It is refused and adds no blank between the items (PART 9 §17 L1 and L3, CARVE-P9-067, carve#5616).

carve
:: t
: +
1. li
+
1. sib
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>li</li>
      <li>sib</li>
    </ol>
  </dd>
</dl>

A quoted attribute run after a refused note plus closes the quote ​

1 conformance fixture

The brace opener misses the note marker column, so the + refuses it. The valid attribute run leaves no paragraph open for the unmarked line (CARVE-P9-067, CARVE-P2-035, PART 9 §15 A5; carve#5622).

carve
> [^a]: +
>   {#i
>    .y}
next

see[^a]
html
<blockquote>

</blockquote>
<p>next</p>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A stacked host reads its shifted closer past a payload line ​

4 conformance fixtures

A host reads a closer at its column whatever stands between the blank and the closer, under a stacked host as under a column-0 one (PART 0 S1, PART 9 §17 L3, carve#5587).

carve
- - +
  ```

  x
   ```
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code>
x
</code></pre>
      </li>
    </ul>
  </li>
</ul>
carve
- 1. +
  ```

  tail
    ```
html
<ul>
  <li>
    <ol>
      <li>
        <pre><code>
tail
</code></pre>
      </li>
    </ol>
  </li>
</ul>
carve
> - 1. +
>   ```
>
>   tail
>     ```
html
<blockquote>
  <ul>
    <li>
      <ol>
        <li>
          <pre><code>
tail
</code></pre>
        </li>
      </ol>
    </li>
  </ul>
</blockquote>
carve
1. +
```

 ```
  # h
html
<ol>
  <li>
    <pre><code>
</code></pre>
  </li>
</ol>
<section id="h">
  <h1>h</h1>
</section>

An indented closer protects a refused run's fence follower ​

1 conformance fixture

The brace opener is literal and the following fence opens separately. Its indented closer is payload because it misses the fence closer column (CARVE-P2-035, carve#5830).

carve
{.x
.y}
```
wa
> q
  ```
html
<p>{.x
.y}</p>
<pre><code>wa
&gt; q
  ```
</code></pre>

A description's own-line plus fence keeps its trailing blank ​

2 conformance fixtures

PART 0 S1 step 3 ends an unclosed fence at its first blank only after a marker-line +. A fence an own-line + attached in a description reads like any fence in the description's body, so its trailing blank is payload, as in a note (PART 9 §17 L4, carve#5560).

carve
:: t
: p
+
```
code

  tail

x
html
<dl>
  <dt>t</dt>
  <dd>
    <p>p</p>
    <pre><code>code

  tail

</code></pre>
  </dd>
</dl>
<p>x</p>
carve
:: t
: n
+
```
a
  b

see
html
<dl>
  <dt>t</dt>
  <dd>
    <p>n</p>
    <pre><code>a
  b

</code></pre>
  </dd>
</dl>
<p>see</p>

An unpaired fence folds in an outer item ​

1 conformance fixture

After the unclosed fence attached by the stacked marker-line + ends at its blank, the later unpaired fence line stays in the paragraph of the surviving outer item (PART 9 §17 L3, carve#5606).

carve
- - - +
    ```

  tail
     ~~~
html
<ul>
  <li>
    <ul>
      <li>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
      </li>
    </ul>
    <p>tail
~~~</p>
  </li>
</ul>

A description that refuses a plus reads the next line in its body ​

2 conformance fixtures

A refused + renders nothing, and the description that refused it stays open: the next line is read in its body, where a marker at its body column opens a block (CARVE-P9-067, carve#5608).

carve
:: t
: +
1. li
+
  - sib
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>li</li>
    </ol>
    <ul>
      <li>sib</li>
    </ul>
  </dd>
</dl>
carve
:: t
: +
1. li
+
- sib
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>li</li>
    </ol>
    <ul>
      <li>sib</li>
    </ul>
  </dd>
</dl>

An attribute line left of a note's body column is the plus host's ​

3 conformance fixtures

A note between a first-block + and its block keeps only what reaches its body column. An attribute line left of it is the host's, closes the note's paragraph, and labels the attached block (CARVE-P9-067, CARVE-P9-013, carve#5576).

carve
- +
[^m]: n
{.x
 .y}
p
html
<ul>
  <li><p class="x y">p</p></li>
</ul>
carve
- +
[^m]: n
{.x .y}
p
html
<ul>
  <li><p class="x y">p</p></li>
</ul>
carve
- +
[^m]: n
{.x .y}
p

y[^m]
html
<ul>
  <li><p class="x y">p</p></li>
</ul>
<p>y<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A line inside an open inline code span starts no brace run ​

3 conformance fixtures

A brace line inside a still-open inline code span of its paragraph is span text, not a block-position run, whatever its column, so the fence after it opens (CARVE-P2-035, carve#5618).

carve
p
 `open
 {.x
 .y}
 ```
 z
html
<p>p
<code>open
{.x
.y}</code></p>
<pre><code>z
</code></pre>
carve
p
`open
{.x
.y}
```
z
html
<p>p
<code>open
{.x
.y}</code></p>
<pre><code>z
</code></pre>
carve
> p
>  `open
>  {%
>  c %}
>  ```
>  z
html
<blockquote>
  <p>p
<code>open
{%
c %}</code></p>
  <pre><code>z
</code></pre>
</blockquote>

A nested quoted attribute run closes the outer lazy claim ​

1 conformance fixture

The valid wrapped attribute run misses the note marker column and leaves no paragraph open at either quote depth. The unmarked line opens after the outer quote (CARVE-P9-067, CARVE-P2-035, PART 9 §15 A5; carve#5629).

carve
> > [^a]: +
> >   {#i
> >    .y}
next

see[^a]
html
<blockquote>
  <blockquote>

  </blockquote>
</blockquote>
<p>next</p>
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A description sibling in an unclosed attached fence is payload ​

1 conformance fixture

PART 0 S1 gives the unclosed attached code fence every nonblank line at its content column, including a line shaped like a sibling description (carve#5640).

carve
:: t
: +
```
a
: dd
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code>a
: dd
</code></pre>
  </dd>
</dl>

A one-line attribute inside an open code span is code ​

1 conformance fixture

A block-shaped brace line inside the paragraph's open inline code span stays code text, at any column (CARVE-P2-035, carve#5638).

carve
p
`open
{.x}
close`
z
html
<p>p
<code>open
{.x}
close</code>
z</p>

A fence after an attached description blank opens in the description ​

1 conformance fixture

The blank ends the fence attached by the marker-line + (PART 0 S1 step 3). A later fence at or past the description's content column opens a new block in that description (PART 0 S3, CARVE-P0-024; carve#5640). Its authored extra indentation does not turn the opener into inline text.

carve
:: t
: +
```
a

   ```
zz
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code>a
</code></pre>
    <pre><code></code></pre>
  </dd>
</dl>
<p>zz</p>

A cross-reference ID is atomic inside a forced span ​

1 conformance fixture

Pass P1 takes a cross-reference before pass P2 pairs the forced superscript (PART 9 §9, carve#5669). Its ID punctuation cannot consume the superscript closer.

carve
{^</#{^>^}
html
<p><sup>&lt;/#{^&gt;</sup></p>

An item own line plus fence keeps its trailing blank ​

1 conformance fixture

An item reads a fence an own-line + attached like a body fence. It keeps the interior and trailing blanks until a nonblank line misses the item (PART 0 S1, carve#5560 and carve#5635).

carve
- p
+
```
code

  tail

see
html
<ul>
  <li>p
    <pre><code>code

  tail

</code></pre>
  </li>
</ul>
<p>see</p>

A description plus after a blank reaches its host ​

1 conformance fixture

A lone + at a description's marker column reaches it after a blank and attaches the next block (PART 9 §17 L3/L4, carve#5639).

carve
:: t
: h

+
pp
html
<dl>
  <dt>t</dt>
  <dd>
    <p>h</p>
    <p>pp</p>
  </dd>
</dl>

A region marker between items splits the list ​

1 conformance fixture

PART 11 CARVE-P11-073(a) makes a region marker at the list's column a sibling of that list. PART 9 §11 N1 cannot join items across that sibling.

carve
- a
%% #region x
- b
html
<ul>
  <li>a</li>
</ul>
<ul>
  <li>b</li>
</ul>

A refused brace run keeps a following plus literal ​

1 conformance fixture

The refused opener claims no later line. The following + is read by the ordinary attachment rule (CARVE-P2-035, carve#5830).

carve
- +
{.x
.y}
+
  zq
html
<ul>
  <li>{.x
.y}
    zq
  </li>
</ul>

An own line plus fence ends before a shifted run ​

1 conformance fixture

A shifted fence line after an own-line attachment's retained blank misses the host, ends its fence and opens a parent fence (PART 0 S1 step 2, carve#5658 F06 ruling).

carve
- p
+
```
a

 ```
  zq
html
<ul>
  <li>p
    <pre><code>a

</code></pre>
  </li>
</ul>
<pre><code> zq
</code></pre>

An item-attached colon keeps a later plus ​

1 conformance fixture

An unclosed colon body attached by a marker-line + keeps a later + at the item's marker column as paragraph text (PART 0 P1 and P8, PART 9 §17 L5, carve#5658 ruling A).

carve
- +
::: note
x
+
zq
html
<ul>
  <li>
    <aside class="admonition note" aria-label="Note">
      <p>x
+
zq</p>
    </aside>
  </li>
</ul>

A nested refused plus keeps its item ​

1 conformance fixture

A refused marker after a nested item's open fence changes no owner. The following line reaches the same inner item (CARVE-P9-067, carve#5637 ruling).

carve
- - ```
  +

    x
html
<ul>
  <li>
    <ul>
      <li>
        <pre><code></code></pre>
        <p>x</p>
      </li>
    </ul>
  </li>
</ul>

A refused attribute run keeps its marker follower ​

1 conformance fixture

The closer fails the brace-column test. The following marker opens a nested list under ordinary item ownership (CARVE-P2-035, carve#5830).

carve
- {.x
 }
  - q
html
<ul>
  <li>{.x
}
    <ul>
      <li>q</li>
    </ul>
  </li>
</ul>

A description keeps lazy text after a refused fence ​

1 conformance fixture

The refused brace opener is literal. Its fence-shaped follower opens a separate code block, and the later column-zero line is read normally (CARVE-P2-035, carve#5830).

carve
:: t
: {.x
  }
  ```
plain
html
<dl>
  <dt>t</dt>
  <dd>
    <p>{.x
}</p>
    <pre><code></code></pre>
  </dd>
</dl>
<p>plain</p>

A quoted marker comment keeps source columns ​

1 conformance fixture

A quote that begins on an item's marker line does not reset the written columns of a block comment run. Both continuation lines pass the opening brace's source column, so the run is invisible (CARVE-P2-035, carve#5787).

carve
- > {% a
  >  b
  >  z %}
html
<ul>
  <li>
    <blockquote>

    </blockquote>
  </li>
</ul>

A lazy refused comment keeps its note definition follower ​

1 conformance fixture

The comment continuation fails the brace-column test. The following note definition is read normally because the refused opener claims no follower (CARVE-P2-035, carve#5830).

carve
[^n]: p
{% a
%}
[^m]: q

x[^n]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>p
{% a
%}<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A note marker comment run uses its body column ​

1 conformance fixture

The comment run opens the note on its marker line. Its continuation is past the note body column, so the run is invisible and the following attribute line remains a block attribute (CARVE-P2-035, carve#5804).

carve
x[^n]

[^n]: {% a
     b
     z %}
    {.x}
plain
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p>plain</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An item marker-line brace run measures from its written brace ​

4 conformance fixtures

On an item's marker line, an attribute or comment run measures its opening brace where it is written: extra separator spaces and a task box before it keep their width, so a continuation must stand past the written brace (CARVE-P2-035, carve#5805).

carve
-   {.x
   }
   z
html
<ul>
  <li>{.x
}
z</li>
</ul>
carve
-   {.x
     }
     z
html
<ul>
  <li><p class="x">z</p></li>
</ul>
carve
- [ ] {.x
   }
   z
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="{.x } z"> {.x
}
z</li>
</ul>
carve
- [ ] {.x
       }
       z
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="z"> <p class="x">z</p></li>
</ul>

A comment continuation past the brace after an outer quote prefix is hidden ​

1 conformance fixture

With the outer indentation reversed, the continuation stands past the opening brace after its quote prefix, so the run is a comment (CARVE-P2-035, carve#5787).

carve
  > - {% a
>    b %}
html
<blockquote>
  <ul>
    <li></li>
  </ul>
</blockquote>

A quote prefix on a comment continuation counts at its marker ​

1 conformance fixture

A continuation of an item's comment run that carries a quote prefix at the opening brace's column refuses the run (CARVE-P2-035, carve#5787).

carve
- {% a
  >  b %}
html
<ul>
  <li>{% a
    <blockquote><p>b %}</p></blockquote>
  </li>
</ul>

A quoted marker comment at the opener column stays text ​

1 conformance fixture

A quote that opens on an item's marker line measures the comment opener and each continuation after its quote prefix. A continuation at the opening brace's column refuses the run (CARVE-P2-035, carve#5787).

carve
 - > {% a
   > b
   > z %}
html
<ul>
  <li>
    <blockquote><p>{% a
b
z %}</p></blockquote>
  </li>
</ul>

An outer quote prefix width does not move a comment continuation ​

1 conformance fixture

The opener and the continuation are measured after the outer quote prefix of their own line. The continuation stands left of the opening brace there, so the run is text (CARVE-P2-035, carve#5787).

carve
> - {% a
  >  b %}
html
<blockquote>
  <ul>
    <li>{% a
b %}</li>
  </ul>
</blockquote>

A block-shaped line inside a comment run keeps the item tight ​

3 conformance fixtures

A line inside an open {% run is comment payload, even when it is shaped like a list marker or a block opener, so a blank-separated comment-only run is invisible and does not loosen the item (CARVE-P2-035, CARVE-P9-013, carve#5844).

carve
- p

  {% a
   - m
   z %}
html
<ul>
  <li>p</li>
</ul>
carve
1. p

   {% a
    # m
    %}
html
<ol>
  <li>p</li>
</ol>
carve
> - p
>
>   {% a
>    ---
>    z %}
html
<blockquote>
  <ul>
    <li>p</li>
  </ul>
</blockquote>

A braced comment paragraph with text misses the item ​

3 conformance fixtures

A line holding only a braced comment is a paragraph, not an erased line. When its continuation shows text, that paragraph is visible and S2 places it by its own column: below the item it closes the item, and a list marker under it stays paragraph text (CARVE-P9-042, CARVE-P0-005, carve#5837).

carve
- a

{%%}
  z
html
<ul>
  <li>a</li>
</ul>
<p>
z</p>
carve
> - a
>
> {% c %}
>   z
html
<blockquote>
  <ul>
    <li>a</li>
  </ul>
  <p>
z</p>
</blockquote>
carve
- a

{%%}
  - b
html
<ul>
  <li>a</li>
</ul>
<p>
- b</p>

A comment-only braced paragraph after a blank closes the item it misses ​

3 conformance fixtures

A paragraph holding only braced comments renders nothing, but it is still a paragraph, not an erased line. After a blank, S2 places it by its column, so below the item's content column it closes the item (CARVE-P9-042, CARVE-P0-005, carve#5850).

carve
- a

{%%}

  z
html
<ul>
  <li>a</li>
</ul>
<p>z</p>

Between two content columns it closes only the deeper item. The next marker then joins the nested list, because the comment paragraph separates nothing in a list (CARVE-P9-013).

carve
- a
  - b

   {%%}
    - b
html
<ul>
  <li>a
    <ul>
      <li><p>b</p></li>
      <li><p>b</p></li>
    </ul>
  </li>
</ul>

At the item's content column it stays in the item.

carve
- a

  {%%}

  z
html
<ul>
  <li><p>a</p>
    <p>z</p>
  </li>
</ul>

A comment fence line inside a braced comment run is run text ​

3 conformance fixtures

While a block {% run is open, each continuation past its { is text of the run, so a %%% line there opens no comment span. The run reads like its twin with a plain middle line, and a lazy line after its closer continues the item paragraph (CARVE-P2-035, PART 9 §28, carve#5853).

carve
- {% a
   %%%
   z %}
plain
html
<ul>
  <li>
plain</li>
</ul>
carve
1. {% a
    %%% x
    z %}
plain
html
<ol>
  <li>
plain</li>
</ol>
carve
- p
  {% a
   %%%
   z %}
plain
html
<ul>
  <li>p

plain</li>
</ul>

A comment-only paragraph loosens a list as a comment line does ​

3 conformance fixtures

A paragraph holding only braced comments has the ownership effect of a %% line, so the blank before it loosens a list only where the blank before a %% line would. A code or colon fence line ends the paragraph as it ends a visible one (§10 I4), and a sibling marker after a nested item meets the blank behind it (PART 9 §17 L1, CARVE-P9-013, carve#5854).

carve
- x

  {% a z %}
```
html
<ul>
  <li>x</li>
</ul>
<pre><code></code></pre>
carve
- x

  {% a
   z %}
::: x
html
<ul>
  <li>x</li>
</ul>
<div class="x">

</div>
carve
- a
  - x

    {% a z %}
- s
html
<ul>
  <li><p>a</p>
    <ul>
      <li>x</li>
    </ul>
  </li>
  <li><p>s</p></li>
</ul>

A comment run after a glued attribute keeps its written column ​

3 conformance fixtures

A marker-glued attribute does not move a later brace on the marker line (carve#5788), and a {% run is measured from its written { as an attribute run is. A continuation at or left of that column refuses the run, so it stays paragraph text (CARVE-P2-035, carve#5830, carve#5863).

carve
-{.g} {% b
   b %}
html
<ul>
  <li class="g">{% b
b %}</li>
</ul>
carve
> 1.{#i} {% b
>    b %}
html
<blockquote>
  <ol>
    <li id="i">{% b
b %}</li>
  </ol>
</blockquote>
carve
-{.g} {% b
       b %}
html
<ul>
  <li class="g"></li>
</ul>

A lazy comment opener is measured where its brace is written ​

4 conformance fixtures

A {% opener indented short of its host's body column is a lazy line, and its { is measured where it is written. A continuation that carries the host's indentation, reaches its body column and passes that { keeps the run valid, so it renders nothing (CARVE-P2-035, carve#5830, carve#5874). A leading tab is measured in each frame's coordinates (carve#5755): in the last case the opener reaches the description body at column 6 and the closer at column 5 misses it, so the run is refused.

carve
- b
 {% x
  %}
html
<ul>
  <li>b
</li>
</ul>
carve
- a
  - b
 {% x
    %}
html
<ul>
  <li>a
    <ul>
      <li>b
</li>
    </ul>
  </li>
</ul>
carve
[^n]: p
 {% x
  %}

x[^n]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>p
<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^n]: p
    :: t
    : pre
  	{% x
     %}

x[^n]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>p</p>
      <dl>
        <dt>t</dt>
        <dd>pre
{% x
%}</dd>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A tabbed verse line keeps the lead its frames leave ​

4 conformance fixtures

Each container strips its own columns from a verse line, and the rest of the line walks from that container's content column (carve#5755). Under an opener at the item's content column, two spaces and a tab therefore keep four lead columns, as the per-frame space spelling does (PART 9 §23, §24 C5, carve#5881).

carve
- a
  ::: |
  	x

```html
<ul>
  <li>a
    <div class="line-block">
      <p>&nbsp;&nbsp;&nbsp;&nbsp;x</p>
    </div>
  </li>
</ul>

:::

carve
- a
  ::: |
      x

```html
<ul>
  <li>a
    <div class="line-block">
      <p>&nbsp;&nbsp;&nbsp;&nbsp;x</p>
    </div>
  </li>
</ul>

:::

carve
:: t
: d
  ::: |
  	x

```html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <div class="line-block">
      <p>&nbsp;&nbsp;&nbsp;&nbsp;x</p>
    </div>
  </dd>
</dl>

:::

carve
> - a
>   ::: |
>   	x
>   :::
html
<blockquote>
  <ul>
    <li>a
      <div class="line-block">
        <p>&nbsp;&nbsp;&nbsp;&nbsp;x</p>
      </div>
    </li>
  </ul>
</blockquote>

A comment span under a marker-line note leaves no paragraph ​

4 conformance fixtures

A comment fence at an item's content column, below the body of a note written on the item's marker line, opens its span in the item: the comment closes no frame, so its span belongs to the deepest frame the line reaches. Its payload line opens no paragraph, and an unmarked line after it does not continue the quote lazily (PART 0 S1, S4, carve#5878). One quote level deeper, a text line left of a nested span's fence ends that span as it does at the quote's own level, so a lazy line continues the paragraph it opens.

carve
> - [^n]: {% a
>   %%%
>   z %}
plain

x[^n]
html
<blockquote>
  <ul>
    <li></li>
  </ul>
</blockquote>
<p>plain</p>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>{% a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> - [^n]: a
>   %%%
>   z
plain

x[^n]
html
<blockquote>
  <ul>
    <li></li>
  </ul>
</blockquote>
<p>plain</p>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> :: t
> : [^n]: a
>   %%%
>   z
plain

x[^n]
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd></dd>
  </dl>
</blockquote>
<p>plain</p>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> > - [^n]: a
> >   %%%
> > z
plain

x[^n]
html
<blockquote>
  <blockquote>
    <ul>
      <li></li>
    </ul>
    <p>z
plain</p>
  </blockquote>
</blockquote>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A verse lead under an indented opener is measured per frame ​

4 conformance fixtures

A line-block opener's own indentation is no frame. A tabbed verse line keeps the columns its containers leave it, less the opener's column in the same frame, so a tab spelling and its per-frame space spelling keep the same lead (PART 9 §23, §24 C5, carve#5755, carve#5885).

carve
- a
   ::: |
  	x

```html
<ul>
  <li>a
    <div class="line-block">
      <p>&nbsp;&nbsp;&nbsp;x</p>
    </div>
  </li>
</ul>

:::

carve
- a
   ::: |
    	x

```html
<ul>
  <li>a
    <div class="line-block">
      <p>&nbsp;&nbsp;&nbsp;x</p>
    </div>
  </li>
</ul>

:::

carve
- a
  	::: |
    	x
  	:::
html
<ul>
  <li>a
    <div class="line-block">
      <p>x</p>
    </div>
  </li>
</ul>
carve
> - a
>    ::: |
>   	x
>    :::
html
<blockquote>
  <ul>
    <li>a
      <div class="line-block">
        <p>&nbsp;&nbsp;&nbsp;x</p>
      </div>
    </li>
  </ul>
</blockquote>

An attribute line in a note's body stays the note's under a plus ​

1 conformance fixture

A note definition between a + and its block keeps every line at or past its body column, an attribute line included. The attribute line ends the note's paragraph and is dropped at the note's end, so it labels nothing outside the note, however far it is indented (PART 9 §15 A1, A4, CARVE-P9-067, carve#5957).

carve
- +
[^m]: n
	{y}

[^m]
html
<ul>
  <li></li>
</ul>
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A tab-led attribute line in a note a nested plus passes stays the note's ​

1 conformance fixture

A tab in a leading run restarts its stop at every frame column (PART 9 §24 C5). After the outer item's three columns, the tab reaches column 7, past the note's body column, so the attribute line is the note's: it labels nothing outside the note, and the plus attaches q, the next visible line at its marker column (PART 9 §15 A4, CARVE-P9-067, carve#5963).

carve
1. x
   1. +
   [^m]: n
   	{#i}
   q

p[^m]
html
<ol>
  <li>x
    <ol>
      <li>q</li>
    </ol>
  </li>
</ol>
<p>p<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>n<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A line that ends a span in an item's description leaves the item's paragraph open ​

6 conformance fixtures

A term on an item's marker line opens its entry at the item's content column, so a : line there is its description and a fence in that description is owned at the description's body column. A text line at the item's column misses that column, so it ends the span or code block and the description, and opens a paragraph in the item. An unmarked line after it continues that paragraph lazily, at any quote depth and behind any number of markers (PART 0 S1, S3, S4, carve#5969). Without the item the paragraph is the quote's own, as carve#5886 decides.

carve
> > - :: t
> >   : [^n]: a
> >     %%%
> >   z
plain

x[^n]
html
<blockquote>
  <blockquote>
    <ul>
      <li>
        <dl>
          <dt>t</dt>
          <dd></dd>
        </dl>
        z
plain
      </li>
    </ul>
  </blockquote>
</blockquote>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> - :: t
>   : [^n]: a
>     %%%
>   z
plain

x[^n]
html
<blockquote>
  <ul>
    <li>
      <dl>
        <dt>t</dt>
        <dd></dd>
      </dl>
      z
plain
    </li>
  </ul>
</blockquote>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
> > - :: t
> >   : d
> >     %%%
> >   z
plain
html
<blockquote>
  <blockquote>
    <ul>
      <li>
        <dl>
          <dt>t</dt>
          <dd>d</dd>
        </dl>
        z
plain
      </li>
    </ul>
  </blockquote>
</blockquote>
carve
> - - :: t
>     : d
>       %%%
>     z
plain
html
<blockquote>
  <ul>
    <li>
      <ul>
        <li>
          <dl>
            <dt>t</dt>
            <dd>d</dd>
          </dl>
          z
plain
        </li>
      </ul>
    </li>
  </ul>
</blockquote>
carve
> > - :: t
> >   : d
> >     ```
> >   z
plain
html
<blockquote>
  <blockquote>
    <ul>
      <li>
        <dl>
          <dt>t</dt>
          <dd>
            <p>d</p>
            <pre><code></code></pre>
          </dd>
        </dl>
        z
plain
      </li>
    </ul>
  </blockquote>
</blockquote>
carve
> > :: t
> > : [^n]: a
> >   %%%
> > z
plain

x[^n]
html
<blockquote>
  <blockquote>
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
    <p>z
plain</p>
  </blockquote>
</blockquote>
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

Released under the MIT License.