Skip to content

Definition lists and abbreviations ​

Terms and descriptions, abbreviation definitions and the document levels that may declare them.

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.

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

1 conformance fixture

A pipe line with text after its closing pipe stays paragraph text, so a flush-left plus line continues that item.

carve
:: term
: - a
    | x | y | Ω
+ c
html
<dl>
  <dt>term</dt>
  <dd>
    <ul>
      <li>a
| x | y | Ω
+ c</li>
    </ul>
  </dd>
</dl>

A below-column fence stays in a definition paragraph ​

1 conformance fixture

A closer left of the authored fence cannot turn that fence into a block.

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

A definition opens a sibling block after a list ​

1 conformance fixture

The quote reaches the description content column after its nested item.

carve
:: term
: - a

   > c
html
<dl>
  <dt>term</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
    <blockquote><p>c</p></blockquote>
  </dd>
</dl>

Nested term after a list in a description ​

1 conformance fixture

A term at the description's content column starts a nested definition list after the list item.

carve
:: term
: - a
   :: sub
: def
html
<dl>
  <dt>term</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
    <dl>
      <dt>sub</dt>
    </dl>
  </dd>
  <dd>def</dd>
</dl>

A marker-line sublist stays open in a description body ​

1 conformance fixture

The second inner marker joins the list opened on the description's marker line.

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

A below-item marker continues the list in a description ​

1 conformance fixture

In a description body, a marker after a blank line at the residual column of the first item is a sibling item of the same list. The blank makes the list loose.

carve
:: term
: - a

   - c
html
<dl>
  <dt>term</dt>
  <dd>
    <ul>
      <li><p>a</p></li>
      <li><p>c</p></li>
    </ul>
  </dd>
</dl>

A flush-left description leaves a nested term's host ​

1 conformance fixture

A description opener below a list item's content column cannot bind to a term inside its unclosed div.

carve
- a
  ::: box
  :: sub
: def
html
<ul>
  <li>a
    <div class="box">
      <dl>
        <dt>sub</dt>
      </dl>
    </div>
  </li>
</ul>
<p>: def</p>

A flush-left description leaves a deeper host ​

1 conformance fixture

The same boundary applies when the div sits in a nested list item.

carve
- a
  - b
    ::: box
    :: sub
: def
html
<ul>
  <li>a
    <ul>
      <li>b
        <div class="box">
          <dl>
            <dt>sub</dt>
          </dl>
        </div>
      </li>
    </ul>
  </li>
</ul>
<p>: def</p>

Indented term ends with its unclosed host ​

1 conformance fixture

A term past the div opener still opens a definition list. The flush-left description ends the list item after the term.

carve
- a
  ::: box
   :: sub
: def
html
<ul>
  <li>a
    <div class="box">
      <dl>
        <dt>sub</dt>
      </dl>
    </div>
  </li>
</ul>
<p>: def</p>

Abbreviation matches on word boundaries only ​

1 conformance fixture

A defined abbreviation is expanded only as a whole word — it is not substituted inside a longer word.

carve
*[HTML]: HyperText Markup Language

HTML and XHTMLish.
html
<p><abbr title="HyperText Markup Language">HTML</abbr> and XHTMLish.</p>

Abbreviation definition interrupts a paragraph ​

1 conformance fixture

An abbreviation definition is an invisible construct (§10): on the line directly after prose it is consumed and applied, with no blank line needed.

carve
The HTML spec is long.
*[HTML]: HyperText Markup Language
html
<p>The <abbr title="HyperText Markup Language">HTML</abbr> spec is long.</p>

Abbreviation definition separator must be a space ​

1 conformance fixture

Abbreviation definitions follow the rule too: *[label]: must be followed by a literal space. A tab keeps the line as a paragraph and no abbreviation is registered.

carve
*[HTML]:	Hyper

The HTML
html
<p>*[HTML]:	Hyper</p>
<p>The HTML</p>

Definition list as a first-class block opener ​

4 conformance fixtures

A :: term definition-list opener is a block opener like every other (quote, heading, fence, table) under the content-column rule (PART 9 §24 C3): it interrupts an open list item at column 0, and nests at the item's content column. The two-line :: /: marker is recognized by look-ahead; only the :: term line opens the block.

At the content column, the definition list nests inside the item.

carve
- one
  :: term
  :  def
html
<ul>
  <li>one
    <dl>
      <dt>term</dt>
      <dd>def</dd>
    </dl>
  </li>
</ul>

At column 0 (below the content column), it interrupts: the list ends and the definition list parses at document level.

carve
- one
:: term
:  def
html
<ul>
  <li>one</li>
</ul>
<dl>
  <dt>term</dt>
  <dd>def</dd>
</dl>

Below the content column but not at column 0, it folds in as lazy item text.

carve
- one
 :: term
 :  def
html
<ul>
  <li>one</li>
</ul>
<dl>
  <dt>term</dt>
  <dd>def</dd>
</dl>

A blank line before a nested definition list loosens the outer item (§17 L1), like any other block after the lead.

carve
- one

  :: t
  :  d
html
<ul>
  <li><p>one</p>
    <dl>
      <dt>t</dt>
      <dd>d</dd>
    </dl>
  </li>
</ul>

Abbreviation title escapes its markup characters ​

1 conformance fixture

An abbreviation's expansion becomes the title attribute, so &, <, > and " in it are entity-escaped like any attribute value.

carve
*[HTML]: Hyper & Text < Markup > "quoted"

The HTML spec.
html
<p>The <abbr title="Hyper &amp; Text &lt; Markup &gt; &quot;quoted&quot;">HTML</abbr> spec.</p>

An over-indented definition attaches, an under-indented one folds ​

3 conformance fixtures

The accepted wider-separator spelling : def attaches to :: term at the definition list's column. Below that column, the surviving host classifies it. At the item's marker column the item ends, and one column in it ends too, because a term holds no fold (carve#4861). The canonical spelling is : def; these cases retain the wider separator to test its authored column (carve#3451).

One column in, the line ends the item.

carve
- one
  :: term
 :  def
html
<ul>
  <li>one
    <dl>
      <dt>term</dt>
    </dl>
  </li>
</ul>
<p>:  def</p>

At column 0, the item ends and the separator begins a document paragraph.

carve
- one
  :: term
:  def
html
<ul>
  <li>one
    <dl>
      <dt>term</dt>
    </dl>
  </li>
</ul>
<p>:  def</p>

Over-indented (past the term's column): the line attaches as the definition.

carve
- one
  :: term
   :  def
html
<ul>
  <li>one
    <dl>
      <dt>term</dt>
      <dd>def</dd>
    </dl>
  </li>
</ul>

Wrapped definition term continuation below the content column strips leading whitespace ​

2 conformance fixtures

A term is one line (carve#4861). A line below the item content column that follows a :: term line misses the item, finds no open paragraph, and ends the item. Its leading whitespace is stripped as any paragraph's is.

At column 1, one below the content column 2:

carve
- one
  :: term
 wrapped
html
<ul>
  <li>one
    <dl>
      <dt>term</dt>
    </dl>
  </li>
</ul>
<p>wrapped</p>

At column 0, flush left, the same document:

carve
- one
  :: term
wrapped
html
<ul>
  <li>one
    <dl>
      <dt>term</dt>
    </dl>
  </li>
</ul>
<p>wrapped</p>

Two abbreviation definitions ​

1 conformance fixture

Nothing about the second definition is special - it is here because a document with TWO of them is what tells the engines apart. The HTML says nothing about how the definitions were spelled, so a formatter that joined them differently stayed invisible until the canonical-Carve target was compared across engines (carve-php#682).

carve
*[HTML]: HyperText Markup Language
*[CSS]: Cascading Style Sheets

HTML and CSS.
html
<p><abbr title="HyperText Markup Language">HTML</abbr> and <abbr title="Cascading Style Sheets">CSS</abbr>.</p>

An abbreviation definition is recognized only at document level ​

2 conformance fixtures

*[TERM]: expansion defines an abbreviation in every container, with document scope (CARVE-P12-026, carve#4865). Escape the line to show it. The section title names the reading carve#4865 replaced and stays as the corpus id.

carve
> *[HTML]: Hyper Text

The HTML spec.
html
<blockquote>

</blockquote>
<p>The <abbr title="Hyper Text">HTML</abbr> spec.</p>

Escape the line to show it.

carve
> \*[HTML]: Hyper Text

The HTML spec.
html
<blockquote><p>*[HTML]: Hyper Text</p></blockquote>
<p>The HTML spec.</p>

A list item does not define an abbreviation either ​

1 conformance fixture

The same rule holds for every container: the line is invisible and defines. The section title names the reading carve#4865 replaced and stays as the corpus id.

carve
- *[HTML]: Hyper Text

The HTML spec.
html
<ul>
  <li></li>
</ul>
<p>The <abbr title="Hyper Text">HTML</abbr> spec.</p>

A div does not define an abbreviation either ​

1 conformance fixture

A div reads the line as a block quote and a list item do: it defines, and the use below it gets an <abbr>. The section title names the reading carve#4865 replaced and stays as the corpus id.

carve
:::
*[HTML]: Hyper Text

The HTML spec.
:::
html
<div>
  <p>The <abbr title="Hyper Text">HTML</abbr> spec.</p>
</div>

A definition below every content column ends the item and registers ​

1 conformance fixture

A definition below every open content column ends the open items and registers (PART 0 S3). It leaves no text in the item, and with no reference to it the definition renders nothing.

carve
- - a
 [^f]: x
html
<ul>
  <li>
    <ul>
      <li>a</li>
    </ul>
  </li>
</ul>

An abbreviation at a list item's content column is still not a definition ​

2 conformance fixtures

At an item's content column, on a continuation line, the line is a definition like the other definition kinds (carve#4865). The section title names the reading carve#4865 replaced and stays as the corpus id.

carve
- a
  *[HTML]: Hyper Text

The HTML spec.
html
<ul>
  <li>a</li>
</ul>
<p>The <abbr title="Hyper Text">HTML</abbr> spec.</p>

A reference definition at that same column reads the same way.

carve
- a
  [r]: /u

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

An abbreviation definition in an item body is paragraph text ​

5 conformance fixtures

An abbreviation definition in an item body is a definition (PART 12 §7, carve#4865), so it adds no paragraph and on its own leaves the list tight. The section title names the reading carve#4865 replaced and stays as the corpus id.

carve
- a

  *[A]: a
html
<ul>
  <li>a</li>
</ul>

A sublist after it is a block after the blank, so the item is loose (PART 9 §17 L1, CARVE-P9-013 property 3):

carve
- a

  *[A]: a
  - b
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
</ul>

A sibling item reads the same way:

carve
- a

  *[A]: a
  - b
- c
html
<ul>
  <li><p>a</p>
    <ul>
      <li>b</li>
    </ul>
  </li>
  <li><p>c</p></li>
</ul>

A link reference definition inside the item reads the same way.

carve
- a

  [r]: /u

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

At document level the abbreviation is collected, renders nothing of its own, and expands its term - the behavior the container position does not get:

carve
*[A]: alpha

A here
html
<p><abbr title="alpha">A</abbr> here</p>

A : description line needs a term above it ​

1 conformance fixture

A definition list is a term plus its descriptions, so a : line with no term above it opens nothing - the line is ordinary paragraph text, and anything on it stays text too.

carve
:  [r]: /u

see [t][r]
html
<p>:  [r]: /u</p>
<p>see [t][r]</p>

A tab as the first character of a definition term ​

1 conformance fixture

A tab right after the marker's separator space is a different question from the previous one: the separator itself is a literal space, and it is present, so the marker is satisfied and a term forms. The tab is the first character of the term's content, not part of the separator, and it stays in the term (CARVE-P2-010, carve#4610). The separator is spaces only (CARVE-P7-002), so the tab is the first content character, as a tab after a heading's separator is (CARVE-P2-002).

carve
:: 	x
html
<dl>
  <dt>	x</dt>
</dl>

An abbreviation term is one ASCII alphanumeric word ​

2 conformance fixtures

abbreviation_term = (letter | digit)+, and letter is enumerated as a..z plus A..Z. So the term is case-blind, may start with a digit, and may be a digit alone - every corpus abbreviation before this one was an uppercase multi-letter word, which is the one shape that hides all of those.

carve
*[dl]: definition list
*[3D]: three dimensional
*[9]: nine

A dl, a 3D one, and 9.
html
<p>A <abbr title="definition list">dl</abbr>, a <abbr title="three dimensional">3D</abbr> one, and <abbr title="nine">9</abbr>.</p>

A term outside that alphabet is not a definition, and the line stays as written rather than being dropped. An abbreviation has no marker at the use site, so a definition swallowed here would take its whole line of prose with it and leave nothing behind to explain the loss.

carve
*[ß]: sharp s
*[e.g.]: for example
*[HTTP API]: an interface

Text about ss and eg below.
html
<p>*[ß]: sharp s
*[e.g.]: for example
*[HTTP API]: an interface</p>
<p>Text about ss and eg below.</p>

A definition inside a definition-list dd is collected, and the entry keeps no trace ​

2 conformance fixtures

A <dd> continues like a list item (§17, definition_body) and is one of the block-level contexts CARVE-P9-013 names: a definition written as its content is collected into the document-wide table and the entry renders empty, exactly as a list item or block quote does. This holds the same way for both definition kinds a <dd> can hold - a link reference definition and a footnote definition - so a fix for one is not a fix for only one (carve#666).

carve
:: term
:  [r]: /u

see [t][r]
html
<dl>
  <dt>term</dt>
  <dd></dd>
</dl>
<p>see <a href="/u">t</a></p>
carve
:: term
:  [^f]: x

see[^f]
html
<dl>
  <dt>term</dt>
  <dd></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>x<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An empty abbreviation term is not a definition ​

1 conformance fixture

abbreviation_term = (letter | digit)+ needs at least one character, so *[]: opens nothing and the line stays paragraph text.

carve
*[]: expansion

Text.
html
<p>*[]: expansion</p>
<p>Text.</p>

A definition body opener at or past its column stays structural ​

3 conformance fixtures

definition_indent reaches the body's minimum column. A recognized block opener at or beyond that column establishes its authored position as a local block base, matching list items and footnote bodies. The > here therefore opens a quote. Ordinary over-indented text still continues the paragraph.

The two documents after it are CONTROLS. They pin the columns on either side of the boundary, which do not change and are not what was ruled: at the body's own column a block opener still opens a block, and flush left the body ends and the quote is its sibling. Without them the rule above reads as "an indented > is never a quote", which is not what it says.

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

CONTROL, at the body's column. Three spaces reach column 3, so the line is the body's own block content and the quote opens.

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

CONTROL, flush left. Column 0 does not reach the body's column at all, so the body ends and the quote is a sibling of the list.

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

An abbreviation expands inside an inline container ​

5 conformance fixtures

PART 9R R3 matches a term in RENDERED TEXT at word boundaries. The container the text sits in does not change that: an ordinary span, a compact semantic span and the :name[…] extension form all expand, exactly as emphasis and a link do.

The corpus had one case here - the explicit-abbr row, which every engine agreed on - so every neighbouring row was unpinned, and two engines kept opposite defects for months with no red test: carve-rs dropped the expansion inside a span, carve-js dropped it inside :name[…] (markup-carve/carve#1151).

carve
*[HTML]: Long Form

The [HTML]{.x} key.
html
<p>The <span class="x"><abbr title="Long Form">HTML</abbr></span> key.</p>

A compact semantic span is the same question, and PART 9 §10 made this spelling a documented feature - so a dropped expansion here is silent loss inside a construct the docs teach.

carve
*[HTML]: Long Form

The [HTML]{kbd} key.
html
<p>The <kbd><abbr title="Long Form">HTML</abbr></kbd> key.</p>

The :name[…] form takes the generic fallback in a core render, and the term still expands inside it.

carve
*[HTML]: Long Form

The :kbd[HTML] key.
html
<p>The <span class="ext-kbd"><abbr title="Long Form">HTML</abbr></span> key.</p>

The controls: emphasis and a link already agreed across engines, and they pin that the containers above are not special-cased in one direction.

carve
*[HTML]: Long Form

Both *HTML* and [HTML](/u) expand.
html
<p>Both <strong><abbr title="Long Form">HTML</abbr></strong> and <a href="/u"><abbr title="Long Form">HTML</abbr></a> expand.</p>

An explicit abbr attribute is the one exception (markup-carve/carve#1127): the authored expansion wins and the definition does not apply on top of it.

carve
*[HTML]: Long Form

The [HTML]{abbr="Custom"} key.
html
<p>The <abbr title="Custom">HTML</abbr> key.</p>

Definition lists ​

1 conformance fixture

A definition list also does not interrupt a paragraph - a :: line directly under prose folds into that paragraph, so a list needs a blank line before it.

A blank line may separate a term from its definition (or one definition from the next) for readability - a following : line still attaches to the entry:

carve
:: term

: the definition
html
<dl>
  <dt>term</dt>
  <dd>the definition</dd>
</dl>

A definition (<dd>) ends at a blank line that is followed by neither an indented continuation nor a : definition, at a new :: term, or at a block opener.

Attributes attach to the whole <dl> via a preceding block-attribute line ({.class} on the line before the first :: term). There is deliberately no per-<dt> / per-<dd> attribute form: unlike a list item (-{.c}) or a table row (| … |{.c}), a term or definition takes no glued marker attributes. Style individual terms/definitions with CSS descendant selectors (dl.gloss dt), or put the attributes on the <dl>.

One consumed boolean spells the looseness no blank line can ​

1 conformance fixture
carve
{loose}
:: Term
:  Definition.
html
<dl>
  <dt>Term</dt>
  <dd><p>Definition.</p></dd>
</dl>

A definition body's separator width sets its content column ​

7 conformance fixtures

The separator after : is a run of one or more spaces, and the body's content column is 1 + separator width - the rule a bullet already follows. One space is canonical; a wider run is accepted and the formatter narrows it, carrying the body's continuations down with it.

carve
:: term
: definition
html
<dl>
  <dt>term</dt>
  <dd>definition</dd>
</dl>

A one-space body establishes column 2, so a continuation reaching column 2 folds into the dd.

carve
:: term
: first

  second
html
<dl>
  <dt>term</dt>
  <dd>
    <p>first</p>
    <p>second</p>
  </dd>
</dl>

Column 1 does not reach it, and the block after the blank is the document's own.

carve
:: term
: first

 second
html
<dl>
  <dt>term</dt>
  <dd>first</dd>
</dl>
<p>second</p>

The two-space spelling keeps column 3, so the same column-2 continuation does not reach ITS body. The two spellings differ in how far a continuation indents, never in what they mean.

carve
:: term
:  first

  second
html
<dl>
  <dt>term</dt>
  <dd>first</dd>
</dl>
<p>second</p>

Both spellings may appear in one list, each carrying its own column.

carve
:: term
: one
:  two
html
<dl>
  <dt>term</dt>
  <dd>one</dd>
  <dd>two</dd>
</dl>

The first-block + form reads the same on either width.

carve
:: term
: +
flush block
html
<dl>
  <dt>term</dt>
  <dd>flush block</dd>
</dl>

A colon line directly after a term is the body. A line that is not one ends the term (carve#4861), so the body below it is a paragraph line.

carve
:: term
wrapped on
: definition
html
<dl>
  <dt>term</dt>
</dl>
<p>wrapped on
: definition</p>

An ordered item's separator width sets its content column ​

13 conformance fixtures

An ordered marker's content column is where its content actually starts - marker width plus the authored separator run (PART 9 §24 C3). One space puts 1. x at column 3, two put 1. x at 4, three put 1. x at 5, and a continuation belongs to the item only by reaching its own item's column. This is the rule the bullet already follows and the one carve#1757 gave the definition body; the ordered marker was the last construct measuring its separator against a fixed width.

The one-space control: column 3, and a continuation at 3 reaches it.

carve
1. first

   second
html
<ol>
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>

Two spaces move the column to 4, so the same column-3 continuation no longer reaches it and the block after the blank is the document's own.

carve
1.  first

   second
html
<ol>
  <li>first</li>
</ol>
<p>second</p>

At column 4 it reaches.

carve
1.  first

    second
html
<ol>
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>

Three spaces move it to 5. A wider run is not a third column and not a fixed one: each spelling carries its own.

carve
1.   first

   second
html
<ol>
  <li>first</li>
</ol>
<p>second</p>
carve
1.   first

     second
html
<ol>
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>

A marker-attached attribute block is metadata and contributes zero columns (§15 A8), so it does not move the column the separator sets: 1.{.note} is still 4.

carve
1.{.note}  first

    second
html
<ol>
  <li class="note"><p>first</p>
    <p>second</p>
  </li>
</ol>

The bare decimal dot claims one marker column, so its separator run sets the column from 1 rather than from 2: . x is column 3.

carve
.  first

   second
html
<ol>
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>

The marker's own width is the other half of the sum, and it is a RUN: 11. claims two value columns, 111. three, and a roman iii. three. A two-space separator therefore puts 11. x at column 5 and 111. x at 6, and a continuation one column short of each reaches neither.

carve
11.  first

     second
html
<ol start="11">
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>
carve
11.  first

    second
html
<ol start="11">
  <li>first</li>
</ol>
<p>second</p>
carve
111.  first

      second
html
<ol start="111">
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>
carve
111.  first

     second
html
<ol start="111">
  <li>first</li>
</ol>
<p>second</p>

A roman numeral is a run too, so the same arithmetic reaches a dialect whose value is not a digit at all.

carve
iii.  first

      second
html
<ol type="i" start="3">
  <li><p>first</p>
    <p>second</p>
  </li>
</ol>
carve
iii.  first

     second
html
<ol type="i" start="3">
  <li>first</li>
</ol>
<p>second</p>

Below a definition body's column the body ends ​

7 conformance fixtures

A definition body has three bands, and the boundary is its own content column (PART 9, BELOW THE BODY'S COLUMN THE BODY ENDS). Below the column the body ENDS and the line is classified in whatever context survives it. At the column the line is the body's own block content. Past it a recognized opener takes its authored column as that block's local base.

Column 0 is not a special case of the first band, it is the ordinary case: the dd closes and the quote is the document's own.

carve
:: term
:  definition
> quote
html
<dl>
  <dt>term</dt>
  <dd>definition</dd>
</dl>
<blockquote><p>quote</p></blockquote>

One and two columns in are the same band, and the surviving context here is the document, where an opener must be written at column 0. The indented > and # open nothing there, so the body does not end: they fold into its paragraph as text, exactly as under a list item (carve#3295).

carve
:: term
:  definition
 > quote
html
<dl>
  <dt>term</dt>
  <dd>definition</dd>
</dl>
<blockquote><p>quote</p></blockquote>
carve
:: term
:  definition
  # H
html
<dl>
  <dt>term</dt>
  <dd>definition</dd>
</dl>
<section id="H">
  <h1>H</h1>
</section>

The band is about OPENERS, not about indentation. A line that opens nothing is lazy paragraph text and folds into the body from any column, exactly as it does under a list item.

carve
:: term
:  definition
  more
html
<dl>
  <dt>term</dt>
  <dd>definition
more</dd>
</dl>

At the body's column the quote is the body's own block content, and past it the opener keeps its authored column as the block's base. Both nest.

carve
:: term
:  definition
   > quote
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <blockquote><p>quote</p></blockquote>
  </dd>
</dl>
carve
:: term
:  definition
    > quote
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <blockquote><p>quote</p></blockquote>
  </dd>
</dl>

"The surviving context" is not always the document. Inside a list item the body ends the same way, and the quote is then measured against the ITEM's content column, which it reaches - so it opens inside the item rather than inside the dd. The base a block establishes governs that block, never the next opener written below it.

carve
- intro

  :: term
  :  definition
   > quote
html
<ul>
  <li><p>intro</p>
    <dl>
      <dt>term</dt>
      <dd>definition</dd>
    </dl>
    <blockquote><p>quote</p></blockquote>
  </li>
</ul>

An opener at or past a description body's column closes its paragraph ​

15 conformance fixtures

BELOW THE BODY'S COLUMN THE BODY ENDS gives a description body three bands, and its first band - A NON-OPENER STILL FOLDS - is conditioned on an OPEN PARAGRAPH: a flush-left line that opens nothing folds in because §10 I2's lazy continuation still reaches it. The two upper bands decide whether there is one. An opener at the body's column and an opener past it are both the body's own block content, so §10 I1 closes the paragraph for a visible opener and §10 I5 closes it for a definition or an attribute block. With the paragraph closed the flush-left line has nothing left to reach and the body ENDS (markup-carve/carve#1911).

The reported document. : sets the body's content column at 3 and the definition is written at 4, one past it. It registers in the shared table, which closes the paragraph, so tail is a document paragraph rather than the body's second one.

carve
:: term
:  definition
    [r]: /url
tail
html
<dl>
  <dt>term</dt>
  <dd>definition
tail</dd>
</dl>

The same definition AT the column, which is the answer the row above has to match. A reader whose answer moves between column 3 and column 4 is reading indentation rather than the rule.

carve
:: term
:  definition
   [r]: /url
tail
html
<dl>
  <dt>term</dt>
  <dd>definition
tail</dd>
</dl>

A heading is the visible half of the same rule. It opens at its authored base inside the dd and closes the paragraph above it, so tail leaves the body here too.

carve
:: term
:  definition
    # H
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <h1 id="H">H</h1>
  </dd>
</dl>
<p>tail</p>

The heading at the column, the control the row above must equal.

carve
:: term
:  definition
   # H
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <h1 id="H">H</h1>
  </dd>
</dl>
<p>tail</p>

A thematic break is a visible opener with no content of its own, and answers the same.

carve
:: term
:  definition
    ***
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <hr>
  </dd>
</dl>
<p>tail</p>

So is a table row, which spans lines - the row below it would be the table's, and a flush-left line is neither that nor the closed paragraph's.

carve
:: term
:  definition
    | a |
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <table>
      <tbody>
        <tr><td>a</td></tr>
      </tbody>
    </table>
  </dd>
</dl>
<p>tail</p>

An attribute block past the column closes the paragraph the same way §10 I5 closes it at the column, and with the body ended there is no following block in it for the attribute to attach to (§15 A4).

carve
:: term
:  definition
    {.k}
tail
html
<dl>
  <dt>term</dt>
  <dd>definition</dd>
</dl>
<p>tail</p>

The same attribute block at the column, which every reader already answers this way.

carve
:: term
:  definition
   {.k}
tail
html
<dl>
  <dt>term</dt>
  <dd>definition</dd>
</dl>
<p>tail</p>

A comment past the column is the row this rule was read off: it closes the paragraph and ends the body at every column, and the definition row above had to answer alike.

carve
:: term
:  definition
    %% c
tail
html
<dl>
  <dt>term</dt>
  <dd>definition
tail</dd>
</dl>

The band still needs a NON-opener to fold. Over-indented ordinary text opens nothing, leaves the paragraph open, and both lines join the body - so a reader that ends the body at every line past the column is wrong in the other direction.

carve
:: term
:  definition
    more
tail
html
<dl>
  <dt>term</dt>
  <dd>definition
more
tail</dd>
</dl>

And an opener that leaves a paragraph OPEN keeps the follower. The quote opens inside the dd and its own paragraph is still open, so tail lazily continues THE QUOTE. What ends the body is a closed paragraph, never the presence of an opener.

carve
:: term
:  definition
    > q
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <blockquote><p>q
tail</p></blockquote>
  </dd>
</dl>

The band moves with the SEPARATOR WIDTH rather than sitting at column 4: a four-space separator sets the body's column at 5, and the heading one past it is at 6.

carve
:: term
:    definition
      # H
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <h1 id="H">H</h1>
  </dd>
</dl>
<p>tail</p>

THE SURVIVING CONTEXT IS WHATEVER HOLDS THE LIST. Inside a list item the body ends at the heading exactly as it does at the top level, and tail is then measured against the ITEM, whose content column it reaches - so it is the item's own text and not a document paragraph.

carve
- intro

  :: term
  :  definition
      # H
  tail
html
<ul>
  <li><p>intro</p>
    <dl>
      <dt>term</dt>
      <dd>
        <p>definition</p>
        <h1 id="H">H</h1>
      </dd>
    </dl>
    <p>tail</p>
  </li>
</ul>

The line BELOW the ended body is classified in the surviving context whatever its shape. A definition written one column in is not at the document's column 0, so it opens nothing there and is ordinary paragraph text - it does not fold back into the dd as the first band's lazy text, because the heading closed the paragraph that band folds into.

carve
:: term
:  definition
    # H
 [r]: /url
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <h1 id="H">H</h1>
  </dd>
</dl>

The same follower under a heading AT the column, the control the row above must equal.

carve
:: term
:  definition
   # H
 [r]: /url
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <h1 id="H">H</h1>
  </dd>
</dl>

The host does not change which column a definition reaches ​

24 conformance fixtures

PART 0's AT OR PAST MEANS THE DEEPEST COLUMN THE LINE REACHES is written about CONTAINERS, and the three indented-block collectors are containers alike - a description body and a footnote body select an owner by content column exactly as a list item does (§10 I5, DEFINITION BODIES FOLLOW THE SAME CONTAINER REACH RULE). So a definition written strictly between two open content columns registers in the outer one whatever pair of hosts opened them (markup-carve/carve#1918).

The band is pinned at both edges and in the middle, because the middle column is the only one the other reading answers differently: read as the deepest container still OPEN, one added space would remove a definition and a second would restore it. Section 441 pins that band for two list items; this section pins the same band for every other pair.

A two-space separator opens the description body at column 3 and the item inside it at column 5. Column 3 first - the body's own content column.

carve
:: t
:  - a
   [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>

Column 4, strictly between the two. This is the column that read as lazy text under a body while the identical shape under an item registered.

carve
:: t
:  - a
    [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>

Column 5, the item's own content column.

carve
:: t
:  - a
     [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>

The separator width moves the band and nothing else. A one-space separator puts the same middle column at 3, and a three-space separator at 5.

carve
:: t
: - a
   [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>
carve
:: t
:   - a
     [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>

The inner container is not a parameter either. A description body inside a description body answers the middle column the same way.

carve
:: t
:  :: u
   : d
    [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <dl>
      <dt>u</dt>
      <dd>d</dd>
    </dl>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>

Nor is the outer one. A footnote body opens at column 2, the list inside it at column 4, and the definition at column 3 is the note's.

carve
[^f]: b

  - a
   [r]: /url

See [r][] and [^f].
html
<p>See <a href="/url">r</a> and <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>b</p>
      <ul>
        <li>a</li>
      </ul>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The same note holding a description body.

carve
[^f]: b

  :: t
  : d
   [r]: /url

See [r][] and [^f].
html
<p>See <a href="/url">r</a> and <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>b</p>
      <dl>
        <dt>t</dt>
        <dd>d</dd>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A list item outside and a description body inside: the definition at column 3 reaches the ITEM, so the body ends above it and the item's paragraph closes (§10 I5).

carve
- x
  :: t
  : d
   [r]: /url

See [r][].
html
<ul>
  <li>x
    <dl>
      <dt>t</dt>
      <dd>d</dd>
    </dl>
  </li>
</ul>
<p>See <a href="/url">r</a>.</p>

A list item outside and a footnote body inside. The note's body column is two past the definition line's own, so column 3 is between them and the item owns it. A definition renders nothing where it is written, so the item holds only x.

carve
- x
  [^g]: b
   [r]: /url

See [r][] and [^g].
html
<ul>
  <li>x</li>
</ul>
<p>See <a href="/url">r</a> and <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>b<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The payload kind is not a parameter. A footnote definition in the same slot answers the same way.

carve
- x
  [^g]: b
   [^n]: note text

See [^n] and [^g].
html
<ul>
  <li>x</li>
</ul>
<p>See <a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> and <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>note text<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>b<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
:: t
:  - a
    [^n]: note text

See [^n].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </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 text<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A description body holding a footnote definition, and a footnote body holding another one, complete the pairs.

carve
:: t
: [^g]: b
   [r]: /url

See [r][] and [^g].
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>See <a href="/url">r</a> and <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>b<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f]: b

  [^g]: c
   [^n]: note text

See [^n] and [^f] and [^g].
html
<p>See <a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> and <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> and <a id="fnref3" href="#fn3" role="doc-noteref"><sup>3</sup></a>.</p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>note text<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>b<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn3">
      <p>c<a href="#fnref3" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A REPEATED label is the same question with the table as no evidence: the second spelling is a definition wherever it lands, so it registers rather than publishing its own characters.

carve
- - x
  [r]: /first
   [r]: /second

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

And the abbreviation control. An abbreviation definition registers in the same slot (PART 12 §7, carve#4865):

carve
:: t
:  - a
    *[HTML]: HyperText

HTML here.
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p><abbr title="HyperText">HTML</abbr> here.</p>

BELOW EVERY OPEN COLUMN IS UNCHANGED. A definition at a nonzero column below the OUTERMOST open content column reaches no opener column at all and stays lazy paragraph text of the body it fell below (§24 C3).

carve
:: t
: d
 [r]: /url

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
</dl>
<p>See <a href="/url">r</a>.</p>

A NON-OPENER at the middle column still folds. The band is about lines the surviving context can open a block with; ordinary prose is not one.

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

AN OPENER THAT LEAVES A PARAGRAPH OPEN IS NOT COVERED (carve#1917). A block quote past the body's column opens inside the dd, its own paragraph is still open, and the flush-left line lazily continues THE QUOTE.

carve
:: t
:  d
    > q
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <blockquote><p>q
tail</p></blockquote>
  </dd>
</dl>

A definition at the INNER container's own content column is that container's block content, so the extent does not end there and the line below it is still the item's text. The rule is what a container REACHES, not that a definition appeared.

carve
:: t
:  - a
     [r]: /url
     more

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a
more</li>
    </ul>
  </dd>
</dl>
<p>See <a href="/url">r</a>.</p>

AN OPAQUE PAYLOAD IS NOT SCANNED. A definition written inside a code, raw or comment fence is verbatim content and registers nothing, at any column, so the band's question is never asked of it - the fence runs to its own closer and [r][] stays literal.

carve
:: t
:  - a
     ```
     [r]: /url
     ```

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a
        <pre><code>[r]: /url
</code></pre>
      </li>
    </ul>
  </dd>
</dl>
<p>See [r][].</p>

The same control for a fence attached by a continuation marker, where the block being measured is the fence itself.

carve
- a
+
```
 [r]: /url
```

See [r][].
html
<ul>
  <li>a
    <pre><code> [r]: /url
</code></pre>
  </li>
</ul>
<p>See [r][].</p>

A COMMENT fence's payload is opaque the same way, and its closer is matched on EXACT length (§28), so the definition inside it registers nothing and the reference below stays literal.

carve
:: t
:  - a
     %%%
     [r]: /url
     %%%

See [r][].
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<p>See [r][].</p>

And a definition at the measured block's OWN column 0 is the block's by construction, however many of them there are: the second spelling of one label does not end the block it is written in, so the line under it is still the block's.

carve
- a
+
[r]: /a
[r]: /b
more

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

Below a definition body's column an invisible line folds as text ​

6 conformance fixtures

§10 I5 and AN INVISIBLE LINE FOLDS LIKE ANY OTHER both say the same thing about this band, in their own words: at a nonzero column below the container's content column an invisible line is lazy paragraph text of that container, and registers nothing. Corpus 426-4 already pins the plain-line control folding from this column. Every invisible kind gives the same answer, so the band has one answer and not one per construct.

A link reference definition folds as characters. The reference elsewhere in the document stays literal, which is what "registers nothing" costs - half-folding it, text on the page and a definition in the tables, is not on offer.

carve
:: t
:  d
  [r]: /u
tail

See [text][r].
html
<dl>
  <dt>t</dt>
  <dd>d
tail</dd>
</dl>
<p>See <a href="/u">text</a>.</p>

The footnote spelling is the same answer one construct over, and the same unresolved reference below it.

carve
:: t
:  d
  [^f]: n
tail

See[^f]
html
<dl>
  <dt>t</dt>
  <dd>d</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>n
tail<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A block-attribute line is on I5's interrupter list with the definitions and folds with them. It attaches nothing: the braces are characters in the description, and the following line folds in behind them exactly as it does above.

carve
:: t
:  d
  {.k}
tail
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
</dl>
<p class="k">tail</p>

An abbreviation definition below the body column misses every frame too, so it ends the description and stands in the document (carve#4412).

carve
:: t
:  d
  *[A]: a
tail
html
<dl>
  <dt>t</dt>
  <dd>d
tail</dd>
</dl>

A COMMENT IS THE ONE EXCEPTION and is invisible at any column, including this one. What the line AFTER a comment belongs to is a separate open question about the comment's own column, recorded in PART 9 §24 and pinned in the list-item host by corpus 189 and 192, so this row asks only what the comment itself renders.

carve
:: t
:  d
  %% c
html
<dl>
  <dt>t</dt>
  <dd>d</dd>
</dl>

The band is more than one column wide, and the answer does not move inside it. One column below the content column reads the same as two.

carve
:: t
:  d
 [r]: /u
tail
html
<dl>
  <dt>t</dt>
  <dd>d
tail</dd>
</dl>

A comment below a description body's column ends the body ​

13 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 matched %%% span opened at DOCUMENT column 0 below a description body ends the body. The opener is classified in the surviving context, where the matching run below it makes it a comment BLOCK, and the line between the two delimiters renders nothing (markup-carve/carve#1930). A list item answers the same way (CARVE-P0-005, corpus 214).

What ends the body there is the column-0 line after the span. A comment itself closes no description body at any column (carve#4862, which replaced the closing reading of carve#3885): the next visible line picks the owner, so a follower at the body's column stays in the body. That holds for the %% line form, a %%% with no closer ahead, and a matched span, as in a list item.

TERMINATED IS WHAT MAKES IT A BLOCK, and the degraded control below is why that has to be said: §28's degradation is total, so an opener with no exact-width closer ahead is one %% line comment for every question the layout asks, and it opens nothing here either.

The ticket's document.

carve
:: t
:  x
%%%
y
%%%
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>z</p>

The width is not a parameter -- a wider run answers the same way.

carve
:: t
:  x
%%%%
y
%%%%
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>z</p>

The closer is looked for AHEAD rather than on the next line, so a two-line body is the same block.

carve
:: t
:  x
%%%
y
w
%%%
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>z</p>

DEGRADED IS THE CONTROL. With no closer ahead the opener is one line comment, it opens nothing, and the lines below it are retained as a new paragraph of the body.

carve
:: t
:  x
%%%
y
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>

The %% LINE FORM is the other control. It is invisible at any column and opens no block; the body consumes it and keeps the following line as a new paragraph.

carve
:: t
:  x
%% c
z
html
<dl>
  <dt>t</dt>
  <dd>x
z</dd>
</dl>

AT THE BODY'S OWN COLUMN the fence is the body's content, its closer is not in the body, and both delimiters degrade to line comments. This row is what makes column 0 legible as the document's column rather than the body's.

carve
:: t
:  x
   %%%
y
   %%%
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>y</p>

THE ITEM HOST IS THE TWIN, pinned beside the description so the two cannot drift apart again.

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

A FOLLOWER AT THE BODY'S OWN COLUMN after a line comment below it stays in the body: a comment closes no description body, so the follower's column decides (carve#4862). The %% line form first.

carve
:: t
:  x
%% c
   more
html
<dl>
  <dt>t</dt>
  <dd>x
more</dd>
</dl>

The DEGRADED fence, same answer: with no closer ahead it is a line comment.

carve
:: t
:  x
%%%
   more
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>

The terminated fence at column 0 closes no body either, so the same follower stays in it.

carve
:: t
:  x
%%%
y
%%%
   more
html
<dl>
  <dt>t</dt>
  <dd>
    <p>x</p>
    <p>more</p>
  </dd>
</dl>

THE COLUMN DECIDES FOR A MATCHED SPAN. One column in it is no longer at the enclosing context's opener column, so the body consumes the span whole and keeps the line after it.

carve
:: t
:  x
 %%%
y
 %%%
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>z</p>

Two columns in, the last column below the body's own, answers the same.

carve
:: t
:  x
  %%%
y
  %%%
z
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<p>z</p>

And the line form one column in, with a follower back at the body's column, which the body keeps.

carve
:: t
:  x
 %% c
   more
html
<dl>
  <dt>t</dt>
  <dd>x
more</dd>
</dl>

A closed fence in a description body ends it ​

4 conformance fixtures

A FENCED BODY IS NOT A PARAGRAPH and FENCE KIND DOES NOT DETERMINE CONTAINER REACH say S4's lazy branch asks for an OPEN PARAGRAPH, and that a code fence body cannot hold one at all. So a body whose last block is a CLOSED fence has nothing for the flush-left line to continue, and the line is the document's. The list-item host pins the same answer at 270-a-real-div-in-a-container-and-the-flush-left-line-after-it-3 and 86-list-lazy-continuation-7; these rows pin the description-body host (markup-carve/carve#1930).

carve
:: term
:  definition
   ::: note
   body

tail


```html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <aside class="admonition note" aria-label="Note">
      <p>body</p>
    </aside>
  </dd>
</dl>
<p>tail</p>

:::

The CODE-fence spelling of the same rule, which is the one the normative clause names outright.

carve
:: term
:  definition

c

tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <pre><code>c
</code></pre>
  </dd>
</dl>
<p>tail</p>

CONTROL -- an UNTERMINATED fence gives the same answer: it interrupts the paragraph above it and opens a code block, so the flush-left line has no paragraph to continue and ends the body.

carve
:: term
:  definition

c tail


```html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <pre><code>c
</code></pre>
  </dd>
</dl>
<p>tail</p>

A ::: INSIDE A CODE FENCE is payload, not the container's closer. The rule reads the body's fence state, and a code fence's contents are opaque to it - mistaking the payload for the closer would make the real closer look like an opener and pull the flush-left line back in.

carve
:: term
:  definition
   ::: note
   ```
:::
tail
html
<dl>
  <dt>term</dt>
  <dd>
    <p>definition</p>
    <aside class="admonition note" aria-label="Note">
      <pre><code>:::
</code></pre>
    </aside>
  </dd>
</dl>
<p>tail</p>

:::

A container in a host body owns a line past its own content column ​

9 conformance fixtures

A QUOTE or a DIV opened inside a list item, definition body or footnote body, holding a line indented past its OWN content column, was covered by nothing here. The questions it settles are ruled elsewhere - whether the inner container owns the run, whether a definition written there is consumed - but no document pinned them together, so an engine could answer them either way and stay green. A right-to-wrong regression passed all 1623 documents on both sides before these rows existed (markup-carve/carve#1937).

[r][] sits at the end of each document so consumption is OBSERVABLE: a consumed definition resolves to a link, and one left as text shows its own source in the output. Without it the two answers render alike and the row pins nothing.

A definition past the container's content column opens on its authored base and is consumed, in a list item as under a definition or footnote body (CARVE-P0-024, CARVE-P0-011, CARVE-P9-083).

carve
- a
  ::: note
   [r]: /url
  :::

[r][]
html
<ul>
  <li>a
    <aside class="admonition note" aria-label="Note">

    </aside>
  </li>
</ul>
<p><a href="/url">r</a></p>

The same document under a DEFINITION BODY consumes it, and the reference below resolves.

carve
:: t
:  a
   ::: note
    [r]: /url
   :::

[r][]
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <aside class="admonition note" aria-label="Note">

    </aside>
  </dd>
</dl>
<p><a href="/url">r</a></p>

A FOOTNOTE BODY agrees with the definition body. Written with a QUOTE as the inner container deliberately: the div spelling under this host trips a separate defect where the closer is swallowed once its only line is consumed (markup-carve/carve#1948), and a row must not bake that in. It wants the div spelling too once that is settled.

carve
see[^f]

[^f]: a
    > q
     [r]: /url

[r][]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p><a href="/url">r</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 BLOCKQUOTE HOST keeps the definition as text. The note there opens at the quote's column 0, so the line past it has no authored base, as at top level.

carve
> a
> ::: note
>  [r]: /url
> :::

[r][]
html
<blockquote>
  <p>a</p>
  <aside class="admonition note" aria-label="Note">

  </aside>
</blockquote>
<p><a href="/url">r</a></p>

A QUOTE INSIDE THE LIST ITEM also consumes the definition past its content column.

carve
- a
  > q
   [r]: /url

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

A quote under a DEFINITION BODY consumes the definition the same way.

carve
:: t
:  a
   > q
    [r]: /url

[r][]
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <blockquote><p>q</p></blockquote>
  </dd>
</dl>
<p><a href="/url">r</a></p>

A DIV'S EXTENT IS ITS FENCES AND A QUOTE'S IS ITS LAZY RUN, the second distinction two engine fixes turned on. A div holds both paragraphs across the blank line.

carve
- a
  ::: note
   first

   second
  :::
html
<ul>
  <li>a
    <aside class="admonition note" aria-label="Note">
      <p>first</p>
      <p>second</p>
    </aside>
  </li>
</ul>

A quote's run ends at the blank, and the follower is a sibling in the item rather than in the quote.

carve
- a
  > q
   first

   second
html
<ul>
  <li><p>a</p>
    <blockquote><p>q
first</p></blockquote>
    <p>second</p>
  </li>
</ul>

THE NEGATIVE THAT BOUNDS THE REST. A blockquote host at the inner container's own indent does not open a container at all: ::: note is lazy paragraph text in the quote's paragraph, and the definition is not consumed because no container ever held it. Contrast the > ::: spelling four rows up, which does open one. Without this row the others read as "any host at any indent".

carve
> a
  ::: note
   [r]: /url
  :::

[r][]
html
<blockquote><p>a</p></blockquote>
<aside class="admonition note" aria-label="Note">

</aside>
<p><a href="/url">r</a></p>

A block opener past a nested footnote definition opens in the item ​

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 footnote definition is invisible at its authored location. Its body reaches two columns past the marker, while a below-column line may continue an open note paragraph under §24 C3. The fixture name preserves the former owner reading; the new output follows the shared marker-body rule.

carve
- body

  [^g]: n
   # h

after
html
<ul>
  <li><p>body</p>
    <h1 id="h">h</h1>
  </li>
</ul>
<p>after</p>

A quote marker opens its blockquote the same way.

carve
- body

  [^g]: n
   > z

after
html
<ul>
  <li><p>body</p>
    <blockquote><p>z</p></blockquote>
  </li>
</ul>
<p>after</p>

A line that opens nothing is the control. prose is below the note's body column, but its open paragraph claims the line lazily. It adds no second paragraph to the item, which stays tight.

carve
- body

  [^g]: n
   prose

after
html
<ul>
  <li>body</li>
</ul>
<p>after</p>

A list marker opens a sublist, which is what makes the rule about MARKERS and not about the column: the same column that carries a heading, a quote and a sublist carries plain text as a paragraph.

carve
- body

  [^g]: n
   - item

after
html
<ul>
  <li><p>body</p>
    <ul>
      <li>item</li>
    </ul>
  </li>
</ul>
<p>after</p>

An unterminated fence on a nested lead in a description body owns its body ​

4 conformance fixtures

A flush-left line leaves the description body and its nested fence. The trailing run then interrupts that document paragraph and opens an empty code block. CARVE-P0-013 and CARVE-P9-083 give both hosts the same boundary (markup-carve/carve#2973).

carve
:: t
: - ``` x
code
```
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code class="language-x"></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<p>code</p>
<pre><code></code></pre>

The tilde spelling has the same boundary.

carve
:: t
: - ~~~ x
code
~~~
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code class="language-x"></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<p>code</p>
<pre><code></code></pre>

A fence without an info string also leaves the flush-left lines outside.

carve
:: t
: - ```
code
```
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<p>code</p>
<pre><code></code></pre>

The flush-left paragraph also ends the first description list.

carve
:: t
: - ``` x
code

:: t2
: plain
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code class="language-x"></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<p>code</p>
<dl>
  <dt>t2</dt>
  <dd>plain</dd>
</dl>

A definition nested past a footnote body is a note, and a reference below it resolves ​

2 conformance fixtures

In a stack of nested footnote definitions, whether the innermost definition is a NOTE and whether a reference below it is CONSUMED are settled by the spec's current reading (markup-carve/carve#1946): the innermost [^h] is a third note, and [r] is consumed so [t][r] resolves. An earlier revision read [^h] as text inside [^f] and left [r] unresolved; those two facts are the ones an engine cannot straddle, and the spec's own answer is canonical.

carve
[^f]: outer

   [^g]: mid

    [^h]: inner

  [r]: /url
  TAILWORD

x[^f] [^g] [^h] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a id="fnref3" href="#fn3" role="doc-noteref"><sup>3</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer</p>
      <p>TAILWORD<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn3">
      <p>inner<a href="#fnref3" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The reference axis, isolated: the innermost definition is a note and the link below the stack resolves against a definition consumed inside it.

carve
[^f]: outer

  [^g]: mid

    [^h]: inner

   [r]: /url
   TAILWORD

x[^f] [^g] [^h] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a id="fnref3" href="#fn3" role="doc-noteref"><sup>3</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer</p>
      <p>TAILWORD<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn3">
      <p>inner<a href="#fnref3" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A container closer closes its container in a footnote body too ​

2 conformance fixtures

A colon-fence closer at its opener's column closes the container whatever the host. A container opened in a FOOTNOTE body, holding a definition one column past its content column, then closed: the definition is consumed and the closer leaves the container empty. The footnote-body host used to keep the closer as a ::: paragraph inside the container; it now closes it, exactly as the description-body host already does (markup-carve/carve#1948).

carve
see[^f]

[^f]: a
    ::: note
     [r]: /url
    :::

[r][]
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p><a href="/url">r</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>a</p>
      <aside class="admonition note" aria-label="Note">

      </aside>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The description-body host of the same geometry, unchanged - the control that shows the two hosts now agree.

carve
:: t
:  a
   ::: note
    [r]: /url
   :::

[r][]
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <aside class="admonition note" aria-label="Note">

    </aside>
  </dd>
</dl>
<p><a href="/url">r</a></p>

A wrapped attribute block ends at its quote and reaches no line below it ​

3 conformance fixtures

These historical continuations fail CARVE-P2-035, so the brace opener is literal and later lines follow ordinary quote ownership. A valid prefixed attribute still cannot attach outside its quote.

carve
> > q
> > {.k
> > #x}
tail
html
<blockquote>
  <blockquote><p>q
{.k
<span class="tag"><strong>#x</strong></span>}
tail</p></blockquote>
</blockquote>

The single-line spelling of the same block, the control it now matches.

carve
> > q
> > {.k #x}
tail
html
<blockquote>
  <blockquote><p>q</p></blockquote>
</blockquote>
<p>tail</p>

When the line below IS still in the quote, both spellings attach the block to it - the block reaches a line the quote covers, which is the case that stayed the same.

carve
> > q
> > {.k
> > #x}
> > after
html
<blockquote>
  <blockquote><p>q
{.k
<span class="tag"><strong>#x</strong></span>}
after</p></blockquote>
</blockquote>

A trailing line after a consumed definition is placed by column-reach ​

2 conformance fixtures

In the nested stack (markup-carve/carve#1946), a definition consumed below the notes and the line following it belong to the innermost note whose BODY CONTENT COLUMN - its own marker column plus two - the line's indentation reaches. The two rows of the section above pin the OUTER band; these pin the MID and INNER ones, so all three sinks are covered.

The MID band: the payload sits at column 4, past the mid note's body column (marker 2 plus two) but short of the inner note's (marker 6 plus two), so [r] is consumed inside [^g] and TAILWORD is its second paragraph.

carve
[^f]: outer

  [^g]: mid

      [^h]: inner

    [r]: /url
    TAILWORD

x[^f] [^g] [^h] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a id="fnref3" href="#fn3" role="doc-noteref"><sup>3</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid</p>
      <p>TAILWORD<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn3">
      <p>inner<a href="#fnref3" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The INNER band: the payload sits at column 7, past the inner note's own body column (marker 4 plus two), so [r] and TAILWORD land in [^h].

carve
[^f]: outer

  [^g]: mid

    [^h]: inner

       [r]: /url
       TAILWORD

x[^f] [^g] [^h] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a id="fnref3" href="#fn3" role="doc-noteref"><sup>3</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn3">
      <p>inner</p>
      <p>TAILWORD<a href="#fnref3" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A nested note's floor is two columns past its own marker ​

3 conformance fixtures

A footnote body starts two columns past the definition that opened it, and the definition's OWN column is what those two columns are counted from. Between a nested note's marker and its floor there is a band that belongs to no line of that note: PART 0's owner selection hands it to the nearest surviving ancestor, which is the note outside it (markup-carve/carve#1971).

Below the nested note's floor, a definition ends it. [r] sits at column 2 and [^g] at 3, so the note's floor is 5 and the definition is outside it - it is consumed by the outer note, and [t][r] resolves there.

carve
[^f]: outer

   [^g]: mid
  [r]: /url

x[^f] [^g] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The band above that floor, with the definition inside the note and a trailing line below it. [^g] stands at column 7, so its floor is 9: the definition at 9 is the note's own, and TAILWORD at 6 is not - it is at or past the OUTER note's floor of 2 and below the inner one's, so it belongs to the outer note.

carve
[^f]: outer

       [^g]: mid

         [r]: /url
      TAILWORD

x[^f] [^g] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer</p>
      <p>TAILWORD<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

The other side of the same floor, the control: move that trailing line to column 9 and it is the nested note's own.

carve
[^f]: outer

       [^g]: mid

         [r]: /url
         TAILWORD

x[^f] [^g] [t][r]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <a id="fnref2" href="#fn2" role="doc-noteref"><sup>2</sup></a> <a href="/url">t</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>outer<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
    <li id="fn2">
      <p>mid</p>
      <p>TAILWORD<a href="#fnref2" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A column-0 line after a description-hosted note is a document sibling ​

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 footnote definition written as a description body's content absorbs its opener the way it does anywhere: the note's floor is its marker column plus two (PART 9 §16), and a block opener there is the note's body. : sets the body's content column at 3, so the note stands at column 3 and its floor is 5. The nested list at 5 reaches it and is the note's; the note is unreferenced, so it renders nothing and the <dd> is empty.

tail at column 0 reaches neither the description nor the note, and the note's paragraph is the deepest one open, so tail folds into the note (PART 0 S4). A footnote body takes a lazy line like every container (markup-carve/carve#3885); the section keeps the title of the reading it used to pin. In the last pair the list marker at column 4 misses the note's floor; under the note's open paragraph it is text of the note, not a list in the description (markup-carve/carve#4160).

carve
:: t
:  [^f]: note
     - nested
tail
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>

Continuation TEXT at the floor answers the same - the opener and the plain line are one rule, not two - so the parity is pinned rather than assumed.

carve
:: t
:  [^f]: note
     cont
tail
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>

The column decides, and only column 0 goes to the document. Move tail to the body's own content column 3 and it is the description's, exactly as a plain line there always is.

carve
:: t
:  [^f]: note
     - nested
   tail
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>

One column shy of the floor the opener never reached the note, so nothing was absorbed: the list is the description's own, tail lazily continues its item, and the <dd> keeps both. This is the reach boundary the rows above turn on.

carve
:: t
:  [^f]: note
    - nested
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>nested
tail</li>
    </ul>
  </dd>
</dl>

An empty unterminated container ends at a flush-left line ​

5 conformance fixtures

A flush-left plain line folds into a host only as LAZY CONTINUATION of an open paragraph. An EMPTY unterminated container has no paragraph to continue, so the line is a new block at column 0 and closes what is above it. The list host answered that way already; the description host folded the line INTO the container instead, starting a fresh paragraph three columns to the left of it, on no clause at all (markup-carve/carve#1938).

The list host, which was the twin nothing pinned either.

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

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

The description host now agrees. This is the answer that moved.

carve
:: t
:  d
   ::: d
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <div class="d">

    </div>
  </dd>
</dl>
<p>tail</p>

The marker-line spelling of the same body moves with it, since the container it opens is equally empty.

A marker-line colon opener under a list host opens the same way: - ::: d opens an empty container whatever follows, which 161-below-content-column-div-body-in-a-list-item-stays-literal and 364-only-lazy-folding-demotes-a-marker-line-colon-opener pin.

carve
:: t
:  ::: d
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <div class="d">

    </div>
  </dd>
</dl>
<p>tail</p>

IT IS ABOUT COLUMN 0, NOT ABOUT EMPTINESS ALONE. A follower AT the container's own content column is inside it, and starts a paragraph there as it always did.

carve
:: t
:  d
   ::: d
   tail
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <div class="d">
      <p>tail</p>
    </div>
  </dd>
</dl>

AND IT IS ABOUT EMPTINESS, NOT ABOUT COLUMN 0 ALONE. Give the container a body and the flush-left line has an open paragraph to continue again, so it folds in as lazy continuation.

carve
:: t
:  d
   ::: d
   body
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <div class="d">
      <p>body
tail</p>
    </div>
  </dd>
</dl>

An abbreviation definition outside document level is not an invisible line ​

2 conformance fixtures

An abbreviation definition is an invisible line in every container (§10 I5, carve#4865): it renders nothing, and a use elsewhere in the document expands. The section title names the reading carve#4865 replaced and stays as the corpus id.

At a definition description's content column, where a link or footnote definition would be collected and would leave no trace:

carve
:: t
:  d
   *[A]: a
   tail

A
html
<dl>
  <dt>t</dt>
  <dd>d
tail</dd>
</dl>
<p><abbr title="a">A</abbr></p>

In a footnote body at its own minimum column, which is the other body with a collector of its own:

carve
[^a]: intro
  *[A]: a
  more

see[^a] A
html
<p>see<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a> <abbr title="a">A</abbr></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>

Document level reads the same way:

A block opener indented under a definition term ends the term at every depth ​

10 conformance fixtures

A term has no content column (CARVE-P0-024), so a line under an open term is read against the container that holds the list. A block opener there, at that column or past it, ends the term and opens (carve#4300).

carve
:: c
  # H
html
<dl>
  <dt>c</dt>
</dl>
<section id="H">
  <h1>H</h1>
</section>
carve
:: c
  ::: note
  body
  :::
html
<dl>
  <dt>c</dt>
</dl>
<aside class="admonition note" aria-label="Note">
  <p>body</p>
</aside>

Inside a quote the column is the one after the quote marker.

carve
> :: c
>   # H
html
<blockquote>
  <dl>
    <dt>c</dt>
  </dl>
  <h1 id="H">H</h1>
</blockquote>

Inside a list item it is the item's content column, 2 here, and column 4 is past it.

carve
- item

  :: c
    # H
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>c</dt>
    </dl>
    <h1 id="H">H</h1>
  </li>
</ul>

Inside a description it is the description's column.

carve
:: a
: b
  :: c
    # H
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <h1 id="H">H</h1>
  </dd>
</dl>
carve
:: a
: b
  :: c
    ::: note
    body
    :::
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <aside class="admonition note" aria-label="Note">
      <p>body</p>
    </aside>
  </dd>
</dl>

At the container's content column the opener ends the term and opens.

carve
:: c
# H
html
<dl>
  <dt>c</dt>
</dl>
<section id="H">
  <h1>H</h1>
</section>
carve
:: a
: b
  :: c
  # H
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <h1 id="H">H</h1>
  </dd>
</dl>

A list marker is not term text: §24 C4 lets it open at any column.

carve
:: a
: b
  :: c
    - x
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <ul>
      <li>x</li>
    </ul>
  </dd>
</dl>

A colon fence at the container's column opens like any other opener.

carve
:: c
::: note
body
:::
html
<dl>
  <dt>c</dt>
</dl>
<aside class="admonition note" aria-label="Note">
  <p>body</p>
</aside>

A comment or a definition under a definition term folds at every depth ​

25 conformance fixtures

A term has no content column (CARVE-P0-024), and that holds for the invisible lines too. Past the column of the container that holds the list, a comment stays a comment and the term goes on after it; a %%% fence keeps its body.

carve
:: c
  %% note
  more
html
<dl>
  <dt>c</dt>
</dl>
<p>more</p>
carve
> :: c
>   %% note
>   more
html
<blockquote>
  <dl>
    <dt>c</dt>
  </dl>
  <p>more</p>
</blockquote>
carve
- item

  :: c
    %% note
    more
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>c</dt>
    </dl>
    <p>more</p>
  </li>
</ul>
carve
:: a
: b
  :: c
    %% note
    more
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <p>more</p>
  </dd>
</dl>

A comment fence keeps its body and closer, and the term goes on after it.

carve
:: c
  %%%
  hidden
  %%%
  more
html
<dl>
  <dt>c</dt>
</dl>
<p>more</p>
carve
> :: c
>   %%%
>   hidden
>   %%%
>   more
html
<blockquote>
  <dl>
    <dt>c</dt>
  </dl>
  <p>more</p>
</blockquote>
carve
- item

  :: c
    %%%
    hidden
    %%%
    more
html
<ul>
  <li><p>item</p>
    <dl>
      <dt>c</dt>
    </dl>
    <p>more</p>
  </li>
</ul>
carve
:: a
: b
  :: c
    %%%
    hidden
    %%%
    more
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <p>more</p>
  </dd>
</dl>

A link definition past the column is term text, so the reference above it stays unresolved.

carve
[t][r]

:: c
  [r]: /u
html
<p><a href="/u">t</a></p>
<dl>
  <dt>c</dt>
</dl>
carve
[t][r]

> :: c
>   [r]: /u
html
<p><a href="/u">t</a></p>
<blockquote>
  <dl>
    <dt>c</dt>
  </dl>
</blockquote>
carve
[t][r]

- item

  :: c
    [r]: /u
html
<p><a href="/u">t</a></p>
<ul>
  <li><p>item</p>
    <dl>
      <dt>c</dt>
    </dl>
  </li>
</ul>
carve
[t][r]

:: a
: b
  :: c
    [r]: /u
html
<p><a href="/u">t</a></p>
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
  </dd>
</dl>

A footnote definition past the column is term text as well.

carve
x[^n]

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

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

- item

  :: c
    [^n]: y
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<ul>
  <li><p>item</p>
    <dl>
      <dt>c</dt>
    </dl>
  </li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>y<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
x[^n]

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

At the container's column a comment ends the term.

carve
:: c
%% note
more
html
<dl>
  <dt>c</dt>
</dl>
<p>more</p>
carve
:: a
: b
  :: c
  %% note
  more
html
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <p>more</p>
  </dd>
</dl>

At the container's column a definition ends the term and registers.

carve
[t][r]

:: a
: b
  :: c
  [r]: /u
html
<p><a href="/u">t</a></p>
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
  </dd>
</dl>
carve
x[^n]

- item

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

A comment fence's body is opaque, so a :: inside it opens no term, and the definition after the fence registers past the description's column.

carve
[t][r]

:: a
: b
  %%%
  :: fake
    %%%
    [r]: /u
html
<p><a href="/u">t</a></p>
<dl>
  <dt>a</dt>
  <dd>b</dd>
</dl>

A blank line inside a folded comment fence does not end the term.

carve
[t][r]

:: a
: b
  :: c
    %%%

    hidden
    %%%
    [r]: /u
html
<p><a href="/u">t</a></p>
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
  </dd>
</dl>

A term on a list marker line is measured against the item's content column.

carve
- :: c
    # H
html
<ul>
  <li>
    <dl>
      <dt>c</dt>
    </dl>
    <h1 id="H">H</h1>
  </li>
</ul>
carve
x[^n]

- :: c
    %% note
    [^n]: y
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<ul>
  <li>
    <dl>
      <dt>c</dt>
    </dl>
  </li>
</ul>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <p>y<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A > past the column is term text, so the term stays open under it.

carve
[t][r]

:: a
: b
  :: c
    > text
    [r]: /u
html
<p><a href="/u">t</a></p>
<dl>
  <dt>a</dt>
  <dd>
    <p>b</p>
    <dl>
      <dt>c</dt>
    </dl>
    <blockquote><p>text</p></blockquote>
  </dd>
</dl>

An info string does not change how a flush-left fence folds into a description body ​

3 conformance fixtures

A closed nested fence leaves no paragraph open. A flush-left fence line ends the description body and opens a document block, with or without a language (CARVE-P0-024; carve#2895).

carve
:: t
:  - ```
     ```
```rust
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<pre><code class="language-rust"></code></pre>

The bare run ends the body too:

carve
:: t
:  - ```
     ```
```
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<pre><code></code></pre>

A terminated fence at that column also opens outside the body.

carve
:: t
:  - ```
     ```
```rust
c
```
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code></code></pre>
      </li>
    </ul>
  </dd>
</dl>
<pre><code class="language-rust">c
</code></pre>

A description body whose own block is a fence keeps no line below its column ​

1 conformance fixture

CARVE-P9-083 ends the body below its content column, and its A NON-OPENER STILL FOLDS arm is conditioned on a paragraph being open above the line. A body whose own block is a fence leaves none, so a flush-left non-opener has nothing to reach and the body ends at the opener. The fence holds nothing and the line below it is classified in the surviving context, which is the document, where the trailing run interrupts that paragraph and opens an empty code block.

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

An ordered list carries its authored delimiter ​

5 conformance fixtures

CARVE-P10-014 writes the recorded delim as data-delim on the <ol>, a structural attribute trailing type and start and leading the authored ones. The default . is absent from the AST and emits nothing, and a nested list derives the attribute from its own marker.

carve
1) first
2) second
html
<ol data-delim=")">
  <li>first</li>
  <li>second</li>
</ol>
carve
1. first
2. second
html
<ol>
  <li>first</li>
  <li>second</li>
</ol>
carve
c) gamma
d) delta
html
<ol type="a" start="3" data-delim=")">
  <li>gamma</li>
  <li>delta</li>
</ol>
carve
{k=v .attr}
1) first
html
<ol data-delim=")" k="v" class="attr">
  <li>first</li>
</ol>
carve
1. outer

   1) inner
html
<ol>
  <li><p>outer</p>
    <ol data-delim=")">
      <li>inner</li>
    </ol>
  </li>
</ol>

A description continues after any blank run ​

2 conformance fixtures

One blank line before a block at the description body column keeps the block in the description:

carve
:: t
: d

    > q
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <blockquote><p>q</p></blockquote>
  </dd>
</dl>

The same column owns the block after two blank lines:

carve
:: t
: d


    > q
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <blockquote><p>q</p></blockquote>
  </dd>
</dl>

A description sibling is recognized at any column ​

7 conformance fixtures

A : line is a sibling description at any column, the way a bullet sibling is (CARVE-P0-024 S3, carve#4180): where the owner S2 selects holds an open term or description, the line opens the next description of that list and is not a lazy line. A line at or past an open description's body column is read inside that body. A line whose owner is not the list's owner still folds lazily.

carve
:: t
 :: u
: d
 : e
html
<dl>
  <dt>t</dt>
  <dt>u</dt>
  <dd>d</dd>
  <dd>e</dd>
</dl>
carve
:: t
: a
 : b
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
  <dd>b</dd>
</dl>
carve
:: t
: a
  : b
html
<dl>
  <dt>t</dt>
  <dd>a
: b</dd>
</dl>
carve
:: t
:  a
  : b
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
  <dd>b</dd>
</dl>
carve
  :: t
  : a
 : b
html
<dl>
  <dt>t</dt>
  <dd>a</dd>
  <dd>b</dd>
</dl>
carve
:: outer
:  :: inner
   : a
  : b
html
<dl>
  <dt>outer</dt>
  <dd>
    <dl>
      <dt>inner</dt>
      <dd>a</dd>
    </dl>
  </dd>
  <dd>b</dd>
</dl>
carve
- item
  :: t
  : a
 : b
html
<ul>
  <li>item
    <dl>
      <dt>t</dt>
      <dd>a
: b</dd>
    </dl>
  </li>
</ul>

A list marker under a note paragraph in a description is text ​

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.

A list marker interrupts an open paragraph only as a tight sublist in a list item (PART 0 S3, carve#4160). A line that reaches a description body and misses the note inside it is text of the note's open paragraph, whatever the marker.

carve
:: t
:  [^q]: note
   * child

r[^q]
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>child</li>
    </ul>
  </dd>
</dl>
<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
:: t
: [^q]: note
  1. child

r[^q]
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>child</li>
    </ol>
  </dd>
</dl>
<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
:: t
: - a
  [^q]: note
  - [ ] child

r[^q]
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
    <ul class="task-list">
      <li><input type="checkbox" disabled aria-label="child"> child</li>
    </ul>
  </dd>
</dl>
<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
:: t
: [^q]: note

  - child

r[^q]
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>child</li>
    </ul>
  </dd>
</dl>
<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
- [^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
- [^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>

A description's first-block plus leaves its paragraph open for the next entry ​

5 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 : + description takes one block at column 0, and the lines after it read as they would after : a (PART 2 : + note, CARVE-P2-016, CARVE-P9-067). A : line at the list's marker column is the next description (carve#4179), and a list marker below the body column is paragraph text, because a description body is not a list item (PART 0 S3). Inside a list item the same two descriptions open in the item.

carve
:: t
: +
after
: b
html
<dl>
  <dt>t</dt>
  <dd>after</dd>
  <dd>b</dd>
</dl>
carve
:: t
: +
after
- y
html
<dl>
  <dt>t</dt>
  <dd>after</dd>
</dl>
<ul>
  <li>y</li>
</ul>
carve
> :: t
> : +
> after
> - y
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>after</dd>
  </dl>
  <ul>
    <li>y</li>
  </ul>
</blockquote>
carve
- x

  :: t
  : +
  after
  : b
html
<ul>
  <li><p>x</p>
    <dl>
      <dt>t</dt>
      <dd>after</dd>
      <dd>b</dd>
    </dl>
  </li>
</ul>

A shifted : line between the columns of two description lists misses the nested body and reaches the outer list, whose body is open, so it is the outer list's next description (CARVE-P0-024 S3, carve#4180 ruling C, carve#4189).

carve
:: t
: d
  :: u
  : v
 : e
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <dl>
      <dt>u</dt>
      <dd>v</dd>
    </dl>
  </dd>
  <dd>e</dd>
</dl>

The entry after a first-block plus description is its sibling ​

4 conformance fixtures

A first-block : + description is the definition-list twin of the list-item - + opener (CARVE-P2-016), so a : line at the list's marker column after its attached block opens the next description, as it does after a plain : a. The same holds inside a list item and a quote, and a term line there starts the next entry (carve#4179).

carve
:: t
: +
after
: b
html
<dl>
  <dt>t</dt>
  <dd>after</dd>
  <dd>b</dd>
</dl>
carve
- x

  :: t
  : +
  after
  : b
html
<ul>
  <li><p>x</p>
    <dl>
      <dt>t</dt>
      <dd>after</dd>
      <dd>b</dd>
    </dl>
  </li>
</ul>
carve
> :: t
> : +
> > q
> : b
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>
      <blockquote><p>q</p></blockquote>
    </dd>
    <dd>b</dd>
  </dl>
</blockquote>
carve
:: t
: +
after
:: u
: w
html
<dl>
  <dt>t</dt>
  <dd>after</dd>
  <dt>u</dt>
  <dd>w</dd>
</dl>

A description line between two lists' columns is an outer sibling ​

3 conformance fixtures

A : description line is a sibling at any column once it misses the open body of the previous description (CARVE-P0-024 S3, ruling C of carve#4180). A line short of the outer description's body column misses both bodies, so it starts a description of the outer list and does not fold into the nested one (carve#4189).

carve
:: t
: d
  :: u
  : v
 : e
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <dl>
      <dt>u</dt>
      <dd>v</dd>
    </dl>
  </dd>
  <dd>e</dd>
</dl>
carve
:: t
: d
  :: u
  : v

 : e
html
<dl>
  <dt>t</dt>
  <dd>
    <p>d</p>
    <dl>
      <dt>u</dt>
      <dd>v</dd>
    </dl>
  </dd>
  <dd>e</dd>
</dl>
carve
- x

  :: t
  :  d
     :: u
     : v
    : e
html
<ul>
  <li><p>x</p>
    <dl>
      <dt>t</dt>
      <dd>
        <p>d</p>
        <dl>
          <dt>u</dt>
          <dd>v</dd>
        </dl>
      </dd>
      <dd>e</dd>
    </dl>
  </li>
</ul>

A description's one attributed paragraph keeps its p ​

2 conformance fixtures

A description body that holds one attributed paragraph renders it as <p> with the attributes, as a tight item does. An unattributed one stays bare (CARVE-P9-081, carve#4309).

carve
:: T
: {.c}
  q
html
<dl>
  <dt>T</dt>
  <dd><p class="c">q</p></dd>
</dl>
carve
:: T
: +
{#d}
q

:: U
: r
html
<dl>
  <dt>T</dt>
  <dd><p id="d">q</p></dd>
  <dt>U</dt>
  <dd>r</dd>
</dl>

An open div's closer is not absorbed ​

4 conformance fixtures

A bare run of an open div's width closes the div even when the paragraph inside it holds an invalid opener, so nothing is left for a line below to fold into. A container reads this as the top level does (carve#4397, carve#4863).

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

  l
html
<ul>
  <li>x
:::e
    <div>
      <p>l</p>
    </div>
  </li>
</ul>
carve
:: t
: :::
  :::e
  :::
  :::
l
html
<dl>
  <dt>t</dt>
  <dd>
    <div>
      <p>:::e</p>
    </div>
    <div>

    </div>
  </dd>
</dl>
<p>l</p>

A column-zero description is a sibling after an indented description's refused plus ​

6 conformance fixtures

A first-block : + written past its term refuses a block at column zero and reads as a letter (carve#4409), and a : line at that column is still the next description (carve#4408).

carve
:: t
 : +
l
: b
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>l
: b</p>
carve
:: t
 : +
> q
: b
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<blockquote><p>q
: b</p></blockquote>
carve
:: t
  :  +
l
: b
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>l
: b</p>
carve
- x

  :: t
   : +
  l
  : b
html
<ul>
  <li><p>x</p>
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
    <p>l
: b</p>
  </li>
</ul>
carve
> :: t
>  : +
> l
> : b
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd></dd>
  </dl>
  <p>l
: b</p>
</blockquote>
carve
:: t
 : +
l
: b
  p
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>l
: b
p</p>

A definition at column 0 stands in the document ​

7 conformance fixtures

An abbreviation definition at column 0 below an item ends the item and defines (carve#4412).

carve
- n
*[A]: b

A
html
<ul>
  <li>n</li>
</ul>
<p><abbr title="b">A</abbr></p>

A quote inside the item ends with it.

carve
- > n
*[A]: b

A
html
<ul>
  <li>
    <blockquote><p>n</p></blockquote>
  </li>
</ul>
<p><abbr title="b">A</abbr></p>

A description ends the same way.

carve
:: t
: n
*[A]: b

A
html
<dl>
  <dt>t</dt>
  <dd>n</dd>
</dl>
<p><abbr title="b">A</abbr></p>

A nested quote ends the same way.

carve
> > n
*[A]: b

A
html
<blockquote>
  <blockquote><p>n</p></blockquote>
</blockquote>
<p><abbr title="b">A</abbr></p>

A document-level quote keeps its output.

carve
> n
*[A]: b

A
html
<blockquote><p>n</p></blockquote>
<p><abbr title="b">A</abbr></p>

A reference definition below an item resolves.

carve
- n
[r]: /u

[x][r]
html
<ul>
  <li>n</li>
</ul>
<p><a href="/u">x</a></p>

A line that reaches the item registers there, with document scope (carve#4865).

carve
- n
  *[A]: b

A
html
<ul>
  <li>n</li>
</ul>
<p><abbr title="b">A</abbr></p>

An abbreviation definition below a content column stands in the document ​

9 conformance fixtures

A definition line defines with document scope at every column, under an item, a description, a note and a quote alike (carve#4412, carve#4865). A line at the content column registers in the item.

One column in, below an item.

carve
- n
 *[A]: b

A
html
<ul>
  <li>n</li>
</ul>
<p><abbr title="b">A</abbr></p>

A wider content column leaves more columns between.

carve
10. n
   *[A]: b

A
html
<ol start="10">
  <li>n</li>
</ol>
<p><abbr title="b">A</abbr></p>

A nested list closes with its parent.

carve
- - n
 *[A]: b

A
html
<ul>
  <li>
    <ul>
      <li>n</li>
    </ul>
  </li>
</ul>
<p><abbr title="b">A</abbr></p>

A description ends the same way.

carve
:: t
: n
 *[A]: b

A
html
<dl>
  <dt>t</dt>
  <dd>n</dd>
</dl>
<p><abbr title="b">A</abbr></p>

A wider description body leaves more columns between.

carve
:: t
:  n
  *[A]: b

A
html
<dl>
  <dt>t</dt>
  <dd>n</dd>
</dl>
<p><abbr title="b">A</abbr></p>

A note ends the same way.

carve
[^f]: n
 *[A]: b

A[^f]
html
<p><abbr title="b">A</abbr><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>

At a wide content column the line reaches the item and stays its text.

carve
10. n
    *[A]: b

A
html
<ol start="10">
  <li>n</li>
</ol>
<p><abbr title="b">A</abbr></p>

A line that reaches an outer item stays text in the inner one.

carve
- - n
  *[A]: b

A
html
<ul>
  <li>
    <ul>
      <li>n</li>
    </ul>
  </li>
</ul>
<p><abbr title="b">A</abbr></p>

A line at a note's body column stays its text.

carve
[^f]: n
  *[A]: b

A[^f]
html
<p><abbr title="b">A</abbr><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 marker past a term ends its note ​

2 conformance fixtures

A list marker that misses a term's footnote body ends the note and reads as it would without it (carve#4861).

carve
[^n]: :: t
- x

[^n]
html
<ul>
  <li>x</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>
carve
[^n]: :: t
more
- x

[^n]
html
<p>more
- x</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>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A marker that misses a description folds into its item ​

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 marker at column 0 reaches no frame of the description (PART 0 S2), so it is a lazy line of the item's open paragraph, as it is one column right.

carve
:: t
: - a
- b
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<ul>
  <li>b</li>
</ul>
carve
:: t
: 1. a
2. b
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>a</li>
    </ol>
  </dd>
</dl>
<ol start="2">
  <li>b</li>
</ol>

A blank line ends the description first.

carve
:: t
: - a

- b
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>a</li>
    </ul>
  </dd>
</dl>
<ul>
  <li>b</li>
</ul>

A second description after a task item's marker-line term opens its own description ​

1 conformance fixture

CARVE-P9-083 (carve#4094). The checkbox is content, so the term sits at column 6, and : b at that column opens the next description.

carve
- [ ] :: t
      : a
      : b
html
<ul class="task-list">
  <li><input type="checkbox" disabled> 
    <dl>
      <dt>t</dt>
      <dd>a</dd>
      <dd>b</dd>
    </dl>
  </li>
</ul>

A second description in an indented description list opens its own description ​

1 conformance fixture

Description list rule (carve#4176). A : separator at the indented term's column opens the next description of the same term.

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

An invalid colon opener past a description's content column absorbs the bare run ​

1 conformance fixture

PART 0 S4. The invalid opener is text. The bare run interrupts the paragraph and opens a div, so the line below has nothing to fold into (carve#4112, carve#4863).

carve
:: t
: m
   :::e
  :::
l
html
<dl>
  <dt>t</dt>
  <dd>
    <p>m
:::e</p>
    <div>

    </div>
  </dd>
</dl>
<p>l</p>

An unclosed fence in a description body keeps its trailing blank line ​

1 conformance fixture

PART 0 S2 (carve#4033). A blank line reaches every frame, so the fence keeps it when the description ends, as a list item's fence does (row 291).

carve
:: t
: ```
  code

after
html
<dl>
  <dt>t</dt>
  <dd>
    <pre><code>code

</code></pre>
  </dd>
</dl>
<p>after</p>

A comment block does not count toward a description's blocks ​

1 conformance fixture

CARVE-P12-027 and CARVE-P9-013 (carve#4544). A description wraps its content by its count of rendered blocks. A comment block renders nothing, so a paragraph and a comment stay one block and render inline.

carve
:: t
: x
  %% c
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>

A plus at a quote on a later description body's marker line attaches the next block ​

1 conformance fixture

PART 9 §17 L3 and L4, CARVE-P0-024 (carve#4232). A lone + at the marker column of an open quote gives the quote its next block, whichever body of the description holds the quote.

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

A div closes only on a run of its own width ​

3 conformance fixtures

Only a run of an open div's own width closes it, in any container. A run of another width opens a nested div, even under a paragraph that holds an invalid opener (carve#4550, carve#4863).

carve
:::
:::e
::::
q
:::
after
html
<div>
  <p>:::e</p>
  <div>
    <p>q</p>
    <div>
      <p>after</p>
    </div>
  </div>
</div>
carve
- :::
  :::e
  ::::
  :::
l
html
<ul>
  <li>
    <div>
      <p>:::e</p>
      <div>
        <div>

        </div>
      </div>
    </div>
  </li>
</ul>
<p>l</p>
carve
> :::
> :::e
> ::::
> q
> :::

after
html
<blockquote>
  <div>
    <p>:::e</p>
    <div>
      <p>q</p>
      <div>

      </div>
    </div>
  </div>
</blockquote>
<p>after</p>

The third confirmation round's model findings ​

19 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 marker between an item's columns reads as at the marker column, also below a note on the item's marker line (carve#4545, carve#4614). A lazy line closes no line block (PART 0 S4, carve#4615). A caption number stays out of the tag before it (CARVE-P2-022, carve#4616). A line that misses a comment fence's owner ends the fence in every host (PART 0 S1, carve#4617). A task item's content column keeps its authored separator (CARVE-P9-083, carve#4618). A paragraph after a literal directive loosens an item (PART 10 I2, carve#4619). An attached attribute run holds no substitution arrow (PART 9 SS22 R3, carve#4620). Comments do not hide a caption host (PART 9R, carve#4621). A base class takes the class slot's spelling (PART 10 §1, carve#4622).

carve
- [^q]: note
 * child

r[^q]
html
<ul>
  <li></li>
</ul>
<ul>
  <li>child</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
> - [^q]: n
>  * c

r[^q]
html
<blockquote>
  <ul>
    <li></li>
  </ul>
  <ul>
    <li>c</li>
  </ul>
</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<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- ::: |
  a
lazy
  :::
tail
html
<ul>
  <li>
    <div class="line-block">
      <p>a<br>
lazy</p>
    </div>
  </li>
</ul>
<p>tail</p>
carve
:: t
: ::: |
  a
lazy
  :::
tail
html
<dl>
  <dt>t</dt>
  <dd>
    <div class="line-block">
      <p>a<br>
lazy</p>
    </div>
  </dd>
</dl>
<p>tail</p>
carve
{#t}
| b |
^ #y#

</#t>
html
<table id="t">
  <caption><span class="tag"><strong>#y</strong></span>1</caption>
  <tbody>
    <tr><td>b</td></tr>
  </tbody>
</table>
<p><a href="#t"><span class="tag"><strong>#y</strong></span> 1</a></p>
carve
| b |
^ *a*#
html
<table>
  <caption><strong>a</strong>1</caption>
  <tbody>
    <tr><td>b</td></tr>
  </tbody>
</table>
carve
> %%%
> x
y
> %%%
html
<blockquote>

</blockquote>
<p>y</p>
<blockquote>

</blockquote>
carve
:: t
: %%%
  x
y
  %%%
html
<dl>
  <dt>t</dt>
  <dd></dd>
</dl>
<p>y</p>
carve
[^n]: %%%
  x
y
  %%%

r[^n]
html
<p>y</p>
carve
-   [ ] q
  # H
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="q"> q</li>
</ul>
<section id="H">
  <h1>H</h1>
</section>
carve
-   [ ] q
   - [ ] r
html
<ul class="task-list">
  <li><input type="checkbox" disabled aria-label="q"> q</li>
  <li><input type="checkbox" disabled aria-label="r"> r</li>
</ul>
carve
- {{ _x_ @code:js }}
  ^ c
html
<ul>
  <li><p>{{ _x_ @code:js }}</p>
    <p>^ c</p>
  </li>
</ul>
carve
{~`a`{k="~>"}b~}
html
<p><s><code k="~&gt;">a</code>b</s></p>
carve
{~{+a+}{k="~>"}b~}
html
<p><s><ins k="~&gt;">a</ins>b</s></p>
carve
{~p~>[x](/u){k="~}"}b~}
html
<p><del>p</del><ins><a href="/u" k="~}">x</a>b</ins></p>
carve
$$`a` %% c
^ cap
html
<figure>
  <p><span class="math display" role="math">\[a\]</span></p>
  <figcaption>cap</figcaption>
</figure>
carve
{%%}![a](/i)
^ cap
html
<figure>
  <img src="/i" alt="a">
  <figcaption>cap</figcaption>
</figure>
carve
{CLASS=c}
- [ ] a
html
<ul CLASS="task-list c">
  <li><input type="checkbox" disabled aria-label="a"> a</li>
</ul>
carve
$`a`{CLASS=c}
html
<p><span CLASS="math inline c" role="math">\(a\)</span></p>

A plus after an attached block reaches its host through quote prefixes ​

2 conformance fixtures

CARVE-P9-067 (carve#4629). A second own-line + after the block a + attached reaches the same host when the lines carry quote prefixes, as it does without them: the space after an indented quote marker and a > blank line between the blocks are read through the prefixes.

carve
> :: t
>   : p
>   +
>   b
>   +
>   c
html
<blockquote>
  <dl>
    <dt>t</dt>
    <dd>
      <p>p</p>
      <p>b</p>
      <p>c</p>
    </dd>
  </dl>
</blockquote>
carve
> - a
> +
> # h
>
> +
> # h
html
<blockquote>
  <ul>
    <li>a
      <h1 id="h">h</h1>
      <h1 id="h-2">h</h1>
    </li>
  </ul>
</blockquote>

A lazy line in a note does not keep the note host open ​

2 conformance fixtures

CARVE-P9-083 (carve#4632). A lazy line folds into a footnote's paragraph and changes no owner. When a block below it closes that paragraph, a line below the body's column closes the body, as it does without the lazy line.

carve
:: t
: - [^3]: a
z
      # H
]

[^3]
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li></li>
    </ul>
  </dd>
</dl>
<p>]</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>a
z</p>
      <h1 id="H">H</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
- :: t
  : [^3]: a
z
          ```
          c
          ```
  m

[^3]
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd></dd>
    </dl>
    m
  </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>a
z</p>
      <pre><code>c
</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A fence opened at a block start in a note keeps no paragraph open ​

2 conformance fixtures

CARVE-P9-083 (carve#4627). A fence a marker line opens inside a footnote body is open to the end of its container, and an open fence is no paragraph, so a column-zero line below the note's body column leaves the note.

carve
[^0]: :::
  - ```
x

[^0]
html
<p>x</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">
      <div>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
      </div>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^0]: > x

  1. ~~~
y

[^0]
html
<p>y</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">
      <blockquote><p>x</p></blockquote>
      <ol>
        <li>
          <pre><code></code></pre>
        </li>
      </ol>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An accepted plus follower keeps its column through an indented quote prefix ​

2 conformance fixtures

CARVE-P9-067 (carve#4630). The line after an accepted + reaches the host's marker column through its quote prefixes. An indented quote prefix on that follower does not move it out of the nested item.

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

An unclosed fence under a description paragraph in a note holds no paragraph ​

2 conformance fixtures

CARVE-P9-083 and PART 9 §10 I4 (carve#4627). A fence opener interrupts the description's paragraph without looking for a closer and runs to the end of its container. An open fence is no paragraph, so a column-zero line below the note's body column has nothing to continue and leaves the note.

carve
[^0]: :: t
  : d
    ```
z

[^0]
html
<p>z</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>
          <p>d</p>
          <pre><code></code></pre>
        </dd>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^0]: :: t
  : d
    ```
- z

[^0]
html
<ul>
  <li>z</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>
        <dd>
          <p>d</p>
          <pre><code></code></pre>
        </dd>
      </dl>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A lazy line keeps a description in a div in an item ​

2 conformance fixtures

CARVE-P9-083 and PART 0 S4 (carve#4628). A line below the description's body column folds into its paragraph and closes nothing, so a later line at the body column still belongs to the description, as it does without the item or without the div.

carve
- :::
  :: t
  : t
  x
    # u
html
<ul>
  <li>
    <div>
      <dl>
        <dt>t</dt>
        <dd>
          <p>t
x</p>
          <h1 id="u">u</h1>
        </dd>
      </dl>
    </div>
  </li>
</ul>
carve
1. ::: note
   :: t
   : t
   x
     ```
     k
     ```
html
<ol>
  <li>
    <aside class="admonition note" aria-label="Note">
      <dl>
        <dt>t</dt>
        <dd>
          <p>t
x</p>
          <pre><code>k
</code></pre>
        </dd>
      </dl>
    </aside>
  </li>
</ol>

An own-line plus reaches a marker-line quote at its authored column ​

3 conformance fixtures

CARVE-P9-067 and the #4623 ruling (carve#4697). A quote opened on a note's marker line retains its authored marker column for an own-line +. A paragraph and a list both attach at that column.

carve
[^f]: > 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">
      <blockquote>
        <p>a</p>
        <p>b</p>
      </blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f]: > a
      +
      - x

[^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">
      <blockquote>
        <p>a</p>
        <ul>
          <li>x</li>
        </ul>
      </blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^f]: > > 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">
      <blockquote>
        <blockquote>
          <p>a</p>
          <p>b</p>
        </blockquote>
      </blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

An indented quote prefix keeps an invisible plus follower in its host ​

3 conformance fixtures

CARVE-P9-067 and the latest carve#4449 ruling (carve#4698). The normalized quote prefix of an accepted own-line + places its followers in the quote. Under CARVE-P0-005 an erased comment or definition line goes with its quote marker (carve#5129), so b stays in the inner quote, as it does after an attribute line.

carve
> > a
 > +
 > {x}
 > b
html
<blockquote>
  <blockquote>
    <p>a</p>
    <p x="">b</p>
  </blockquote>
</blockquote>
carve
> > a
 > +
 > %% c
 > b
html
<blockquote>
  <blockquote>
    <p>a</p>
    <p>b</p>
  </blockquote>
</blockquote>
carve
> > a
 > +
 > [r]: /u
 > b
html
<blockquote>
  <blockquote>
    <p>a</p>
    <p>b</p>
  </blockquote>
</blockquote>

An own-line plus is measured through quote prefixes ​

3 conformance fixtures

CARVE-P9-067 (carve#4710, carve#4697). An own-line + is measured through the quote prefixes on its line: under an indented outer prefix it does not reach an inner quote whose marker stands at another column of the outer content, and under a note it does not reach a marker-line quote at the note's body column. Both refused + lines fold as text.

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

  </blockquote>
  <p>+
q</p>
</blockquote>
carve
[^f]: > 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">
      <blockquote><p>a
+
b</p></blockquote>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A reference label across a line stays verbatim in every form ​

6 conformance fixtures

CARVE-P3-004 and the carve#4680 ruling: a reference label that crosses a line and fails stays verbatim, in collapsed and explicit form alike, and its interior is not rescanned (carve#4732). So no emphasis forms inside it, an abbreviation does not expand in it (carve#3822), a collapsed image reference renders its source, and a label that crosses a line claims its run the way a one-line label does, so a destination after it stays text.

carve
![x
y][]
html
<p>![x
y][]</p>
carve
[*t*][a
b]
html
<p>[*t*][a
b]</p>
carve
![*x*][a
b]
html
<p>![*x*][a
b]</p>
carve
*[y]: z

[*x*
y][]
html
<p>[*x*
y][]</p>
carve
*[y]: z

[x][y
q]
html
<p>[x][y
q]</p>
carve
[x][a
b](u)
html
<p>[x][a
b](u)</p>

A leading comment keeps a frame start for a quote ​

3 conformance fixtures

CARVE-P3-023 and the carve#4641 ruling (shape 3): an editorial frame, a substitution side and a span start content, so a quote there opens. An empty braced comment renders nothing and contributes no character, so a quote after a comment at the start of the frame still opens.

carve
x{+{%%}"q"+}
html
<p>x<ins>“q”</ins></p>
carve
x{-{%%}"q"-}
html
<p>x<del>“q”</del></p>
carve
x{~{%%}"a"~>{%%}"b"~}
html
<p>x<del>“a”</del><ins>“b”</ins></p>

A term continuation in a description keeps spaces past the body column ​

2 conformance fixtures

CARVE-P9-083 (carve#4861). A term is one line, so a line after a term in a description body is a paragraph in the body, measured from the body column.

carve
:: t
: :: t
  u
html
<dl>
  <dt>t</dt>
  <dd>
    <dl>
      <dt>t</dt>
    </dl>
    <p>u</p>
  </dd>
</dl>
carve
:: t
: :: t
    u
html
<dl>
  <dt>t</dt>
  <dd>
    <dl>
      <dt>t</dt>
    </dl>
    <p>u</p>
  </dd>
</dl>

A fence in an item in a description keeps its trailing blank ​

3 conformance fixtures

A fence keeps the blank line at the end of its content wherever it ends (carve#4033, carve#4741). An item in a dd is no exception, at the top level or inside an outer item.

carve
:: t
: . ```
     ```
html
<dl>
  <dt>t</dt>
  <dd>
    <ol>
      <li>
        <pre><code> ```

</code></pre>
      </li>
    </ol>
  </dd>
</dl>
carve
:: t
: - ```
    x
html
<dl>
  <dt>t</dt>
  <dd>
    <ul>
      <li>
        <pre><code>x

</code></pre>
      </li>
    </ul>
  </dd>
</dl>
carve
- :: t
  : - ```
      x
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd>
        <ul>
          <li>
            <pre><code>x

</code></pre>
          </li>
        </ul>
      </dd>
    </dl>
  </li>
</ul>

A marker below a description body continues its open paragraph ​

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.

PART 0 S4 (carve#4738). A marker left of the dd content column is no sibling of a list inside the dd, so with a paragraph open it folds as text, whatever block came before the list.

carve
:: t
: :: t
  - x
- y
html
<dl>
  <dt>t</dt>
  <dd>
    <dl>
      <dt>t</dt>
    </dl>
    <ul>
      <li>x</li>
    </ul>
  </dd>
</dl>
<ul>
  <li>y</li>
</ul>
carve
:: t
: :: t
  - x
* y
html
<dl>
  <dt>t</dt>
  <dd>
    <dl>
      <dt>t</dt>
    </dl>
    <ul>
      <li>x</li>
    </ul>
  </dd>
</dl>
<ul>
  <li>y</li>
</ul>
carve
:: t
: # h
  - x
1. y
html
<dl>
  <dt>t</dt>
  <dd>
    <h1 id="h">h</h1>
    <ul>
      <li>x</li>
    </ul>
  </dd>
</dl>
<ol>
  <li>y</li>
</ol>

Folded separator lines keep a description in a div in an item ​

3 conformance fixtures

CARVE-P9-083 (carve#4739). A : line folded into a description paragraph opens no sibling, so a later line at the body column stays in that body, however many folded lines come before it.

carve
- :::
  :: t
  : t
      : e
      : f
      :: u
html
<ul>
  <li>
    <div>
      <dl>
        <dt>t</dt>
        <dd>
          <p>t
: e
: f</p>
          <dl>
            <dt>u</dt>
          </dl>
        </dd>
      </dl>
    </div>
  </li>
</ul>
carve
- :::
  :: t
  : e
  x
  : f
    :: u
html
<ul>
  <li>
    <div>
      <dl>
        <dt>t</dt>
        <dd>e
x</dd>
        <dd>
          <p>f</p>
          <dl>
            <dt>u</dt>
          </dl>
        </dd>
      </dl>
    </div>
  </li>
</ul>
carve
- :::
  :: t
  : - t
    : e
    : f
    :: u
html
<ul>
  <li>
    <div>
      <dl>
        <dt>t</dt>
        <dd>
          <ul>
            <li>t
: e
: f</li>
          </ul>
          <dl>
            <dt>u</dt>
          </dl>
        </dd>
      </dl>
    </div>
  </li>
</ul>

A column-0 line after an unclosed fence in a description in an item leaves the list ​

3 conformance fixtures

A frame without its closer ends at its host boundary (14:449, carve#4735). Nothing is open to take the line lazily, at any item depth and behind any marker on the dd marker line.

carve
- :: t
  : ```
    a
z
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd>
        <pre><code>a
</code></pre>
      </dd>
    </dl>
  </li>
</ul>
<p>z</p>
carve
- :: t
  : - ```
z
html
<ul>
  <li>
    <dl>
      <dt>t</dt>
      <dd>
        <ul>
          <li>
            <pre><code></code></pre>
          </li>
        </ul>
      </dd>
    </dl>
  </li>
</ul>
<p>z</p>
carve
- - :: t
    : ```
      a
z
html
<ul>
  <li>
    <ul>
      <li>
        <dl>
          <dt>t</dt>
          <dd>
            <pre><code>a
</code></pre>
          </dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>
<p>z</p>

A line block in a description under a list item takes a lazy line after a definition-shaped payload ​

3 conformance fixtures

PART 2 line_block (carve#4757). A line-block payload line is inline content whatever its shape, so a link or footnote definition there is stanza text, defines nothing, and the stanza stays open for a lazy line.

carve
- :: u
  : ::: |
    [x]: /u
b

[x]
html
<ul>
  <li>
    <dl>
      <dt>u</dt>
      <dd>
        <div class="line-block">
          <p>[x]: /u<br>
b</p>
        </div>
      </dd>
    </dl>
  </li>
</ul>
<p>[x]</p>

A footnote definition under an ordered item reads the same.

carve
1. :: u
   : ::: |
     [^1]: n
b
html
<ol>
  <li>
    <dl>
      <dt>u</dt>
      <dd>
        <div class="line-block">
          <p>[^1]: n<br>
b</p>
        </div>
      </dd>
    </dl>
  </li>
</ol>

A wider separator and a payload past the body column change nothing.

carve
- :: u
  :  ::: |
       [x]: /u "t"
b
html
<ul>
  <li>
    <dl>
      <dt>u</dt>
      <dd>
        <div class="line-block">
          <p>&nbsp;&nbsp;[x]: /u “t”<br>
b</p>
        </div>
      </dd>
    </dl>
  </li>
</ul>

A line block in an item child keeps its stanza after a comment or marker-shaped payload ​

3 conformance fixtures

PART 9 §23 and PART 2 line_block (carve#4762, carve#4763). A comment line in verse is an empty verse line, and a marker-shaped payload line is inline content, so neither ends the stanza: a lazy line after them joins it, wherever the line block sits.

carve
- - ::: |
    %% c
b
html
<ul>
  <li>
    <ul>
      <li>
        <div class="line-block">
          <p><br>
b</p>
        </div>
      </li>
    </ul>
  </li>
</ul>

The same after a text line, in a description under an item.

carve
- :: u
  : ::: |
    x
    %% c
b
html
<ul>
  <li>
    <dl>
      <dt>u</dt>
      <dd>
        <div class="line-block">
          <p>x<br>
<br>
b</p>
        </div>
      </dd>
    </dl>
  </li>
</ul>

An indented colon run after a marker-shaped payload line is stanza text, not a closer.

carve
- :: u
  : ::: |
     [x]: /u
    - l
       :::
b
html
<ul>
  <li>
    <dl>
      <dt>u</dt>
      <dd>
        <div class="line-block">
          <p>&nbsp;[x]: /u<br>
- l<br>
&nbsp;&nbsp;&nbsp;:::<br>
b</p>
        </div>
      </dd>
    </dl>
  </li>
</ul>

Three blank lines end a description list ​

5 conformance fixtures

PART 9 §11 N1a (carve#4759). Three blank lines end a description list as they end a list: the term after the run opens a new description list.

carve
:: t
: x



:: u
: v
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
</dl>
<dl>
  <dt>u</dt>
  <dd>v</dd>
</dl>

Two blank lines remain ordinary spacing between entries.

carve
:: t
: x


:: u
: v
html
<dl>
  <dt>t</dt>
  <dd>x</dd>
  <dt>u</dt>
  <dd>v</dd>
</dl>

A description after the run has no term above it and is a paragraph.

carve
:: t



: d
html
<dl>
  <dt>t</dt>
</dl>
<p>: d</p>

An invisible line does not split the run, and the boundary holds inside a list item.

carve
- o

  :: t
  : x

  %% c


  :: u
  : v
html
<ul>
  <li><p>o</p>
    <dl>
      <dt>t</dt>
      <dd>x</dd>
    </dl>
    <dl>
      <dt>u</dt>
      <dd>v</dd>
    </dl>
  </li>
</ul>

A continuation at the description's body column after the run stays in that description.

carve
:: t
: x



  more
html
<dl>
  <dt>t</dt>
  <dd>
    <p>x</p>
    <p>more</p>
  </dd>
</dl>

A line-block stanza remains open after a paired payload run ​

2 conformance fixtures

PART 2 line_block and PART 0 S4 (carve#4748). Pairing an inline span across payload lines does not close the line block. The next lazy line stays in its open stanza.

carve
:: u
: ::: |
  ~~~
  ~~~
b
html
<dl>
  <dt>u</dt>
  <dd>
    <div class="line-block">
      <p>~~~<br>
~~~<br>
b</p>
    </div>
  </dd>
</dl>

The same ownership holds when the paired run is backticks.

carve
:: u
: ::: |
  ```
  ```
b
html
<dl>
  <dt>u</dt>
  <dd>
    <div class="line-block">
      <p><code>
</code><br>
b</p>
    </div>
  </dd>
</dl>

An attached colon frame stops at a description sibling ​

3 conformance fixtures

A colon frame attached to a description body ends at its next sibling, even when a closer follows later. A term is a sibling too, and an own-line continuation marker uses the same rule.

carve
:: t
: +
:::
: b
:::
html
<dl>
  <dt>t</dt>
  <dd>
    <div>

    </div>
  </dd>
  <dd>b</dd>
</dl>
<div>

</div>
carve
:: t
: +
:::
:: u
: v
html
<dl>
  <dt>t</dt>
  <dd>
    <div>

    </div>
  </dd>
  <dt>u</dt>
  <dd>v</dd>
</dl>
carve
:: t
: a
+
:::
: b
:::
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <div>

    </div>
  </dd>
  <dd>b</dd>
</dl>
<div>

</div>

An own-line plus note fence keeps its trailing blank ​

1 conformance fixture

PART 0 S1 step 3 ends an unclosed fence at its first blank only for a marker-line + (carve#5560). An own-line + leaves the fence open through an interior blank and the trailing blank.

carve
[^a]: p
+
```
code

  tail

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>p</p>
      <pre><code>code

  tail

</code></pre>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A note keeps a line after a refused plus ​

1 conformance fixture

A refused continuation ends the attached list and its open fence. The note retains a following line at its body column (PART 0 S4, carve#5601).

carve
[^a]: +
- li
  ```
+
  p

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>li
          <pre><code></code></pre>
        </li>
      </ul>
      <p>p<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A quoted note plus refuses an offset brace run ​

1 conformance fixture

The first-block + accepts a follower only at the note's marker column, measured through both quote prefixes (CARVE-P9-067, carve#5620). A brace opener one column later remains in the inner quote; an unprefixed continuation refuses the run, so its inline content is read normally (carve#5830).

carve
> > [^a]: +
> >  {#i
  .y}

see[^a]
html
<blockquote>
  <blockquote><p>{<span class="tag"><strong>#i</strong></span>
.y}</p></blockquote>
</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 href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A note plus after a blank reaches its host ​

1 conformance fixture

A lone + at a note's marker column reaches it after a blank and attaches the next block (PART 9 §17 L3/L4, carve#5639).

carve
[^n]: h

+
pp

see[^n]
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>h</p>
      <p>pp<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A quoted note run uses the lazy line written column ​

1 conformance fixture

The unprefixed continuation misses the quoted note, so it cannot complete a block-position run. The opener is literal text (CARVE-P2-035, carve#5830).

carve
> [^a]: +
> {#i
 .y}

see[^a]
html
<blockquote>

</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>{<span class="tag"><strong>#i</strong></span>
.y}<a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>

A tabbed nested note keeps document references ​

1 conformance fixture

The ownership walk closes the nested note when a column-zero reference misses it. The note body reader must stop at the same boundary (PART 0 S2, PART 9 §24 C5, carve#4085).

carve
[^n]: a
  [^n]: a
  	::: |
[^n]

[^n]
html
<p><a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p><a id="fnref1-2" 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 1">↩<sup>1</sup></a> <a href="#fnref1-2" role="doc-backlink" aria-label="Back to reference 2">↩<sup>2</sup></a></p>
    </li>
  </ol>
</section>

A tab-led quote under nested descriptions opens in the inner description ​

1 conformance fixture

The quote line is two spaces and a tab. Each description strips its own columns and measures the tab from there, so the quote reaches the inner description's body as its space spelling does and opens a blockquote (PART 9 §24 C5, carve#4085).

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

A closed inline comment holds a brace line ​

1 conformance fixture

The comment closes later in the paragraph, so the brace line remains text (CARVE-P2-035, carve#5740).

carve
p {% a
{lang=de}
z %} y
html
<p>p  y</p>

A literal brace group leaves its backtick open ​

1 conformance fixture

The brace group does not attach to an inline host, so its backtick opens a code span across the next brace line (CARVE-P2-035, carve#5740).

carve
a{title="`"}
{k=v}
b
html
<p>a{title=“<code>"}
{k=v}
b</code></p>

An inline attribute hides its backtick ​

1 conformance fixture

The accepted attribute run is consumed by its span. Its backtick does not hold the next brace line (PART 9 §9 R3, CARVE-P2-035, carve#5740).

carve
[a]{title="`"}
{k=v}
b
html
<p><span title="`">a</span></p>
<p k="v">b</p>

An unclosed inline comment holds no brace line ​

1 conformance fixture

The unmatched comment opener is literal text, so the later brace line opens a block attribute (PART 9 §21a, CARVE-P2-035, carve#5740).

carve
{%%%:fr}
y
{.x}
z
html
<p>{%%%:fr}
y</p>
<p class="x">z</p>

A quoted nested item keeps three verse spaces ​

1 conformance fixture
carve
> - a
>   - a
>   	::: |
>     	 z
>   	:::
html
<blockquote>
  <ul>
    <li>a
      <ul>
        <li>a
          <div class="line-block">
            <p>&nbsp;&nbsp;&nbsp;z</p>
          </div>
        </li>
      </ul>
    </li>
  </ul>
</blockquote>

A brace line continues a marker comment ​

1 conformance fixture

A brace-shaped continuation is still comment content when its source column passes the comment opener (CARVE-P2-035, carve#5756).

carve
- {% a
   {lang=de}
   z %} y
html
<ul>
  <li> y</li>
</ul>

A second tab keeps two verse spaces ​

1 conformance fixture
carve
> - a
>   - a
>   	::: |
> 		z
>   	:::
html
<blockquote>
  <ul>
    <li>a
      <ul>
        <li>a
          <div class="line-block">
            <p>&nbsp;&nbsp;z</p>
          </div>
        </li>
      </ul>
    </li>
  </ul>
</blockquote>

A nested item without a quote keeps three verse spaces ​

1 conformance fixture
carve
- a
  - a
  	::: |
    	 z
  	:::
html
<ul>
  <li>a
    <ul>
      <li>a
        <div class="line-block">
          <p>&nbsp;&nbsp;&nbsp;z</p>
        </div>
      </li>
    </ul>
  </li>
</ul>

A nested code body keeps its literal content after frame stripping ​

1 conformance fixture
carve
- a
  - a
  	```
    	 z
  	```
html
<ul>
  <li>a
    <ul>
      <li>a
        <pre><code>	 z
</code></pre>
      </li>
    </ul>
  </li>
</ul>

A description item measures its verse lead in both frames ​

1 conformance fixture
carve
:: t
: a
  - a
    	::: |
      	 z
    	:::
html
<dl>
  <dt>t</dt>
  <dd>
    <p>a</p>
    <ul>
      <li>a
        <div class="line-block">
          <p>&nbsp;z</p>
        </div>
      </li>
    </ul>
  </dd>
</dl>

A description keeps a note follower after a refused run ​

1 conformance fixture

The brace opener is literal. The following note definition is read normally outside the description (CARVE-P2-035, carve#5830).

carve
:: t
: {.x
}
[^m]: n
z
html
<dl>
  <dt>t</dt>
  <dd>{.x
}</dd>
</dl>

A heading-shaped line continues an item comment ​

1 conformance fixture

A continuation past the comment opener is comment text whatever block it spells, so the heading line opens nothing (CARVE-P2-035, carve#5756).

carve
- p
  {% a
   # h
   z %}
html
<ul>
  <li>p
</li>
</ul>

A fence-shaped line continues an item comment ​

1 conformance fixture

The fence-shaped continuation opens no code block, so the paragraph stays open and the lazy line continues it (CARVE-P2-035, carve#5756).

carve
- {% a
   ```
   z %}
plain
html
<ul>
  <li>
plain</li>
</ul>

A quote marker continues a comment ​

1 conformance fixture

Outside a quote, a > on a continuation line is comment text, measured at its own column (CARVE-P2-035, carve#5756).

carve
{% a
 > q
 z %} y
html
<p> y</p>

A description sibling bounds an unclosed comment run ​

2 conformance fixtures

An unclosed marker-line comment opener is literal text. The following attribute line is read normally, and a later description cannot supply the comment closer (CARVE-P2-035, PART 0 L2, carve#5830).

carve
:: t
:   {% a
     {k=v}
: next
html
<dl>
  <dt>t</dt>
  <dd>{% a</dd>
  <dd>next</dd>
</dl>
carve
:: t
:   {% a
     {k=v}
: next
z %} y
html
<dl>
  <dt>t</dt>
  <dd>{% a</dd>
  <dd>next
z %} y</dd>
</dl>

A colon line without a term continues no entry ​

3 conformance fixtures

A : line is a description only while its definition list has an open term or body. A : line with no term above it, or under an entry a deeper line has ended, is paragraph text, so a later : %%% is text with an inline comment and opens no span (PART 0 S3, carve#5841).

carve
- a
  : 

  : %%%
%%%
c
html
<ul>
  <li><p>a
:</p>
    <p>:</p>
  </li>
</ul>
carve
- a
  : x

  : %%%
%%%
c
html
<ul>
  <li><p>a
: x</p>
    <p>:</p>
  </li>
</ul>
carve
- a
  :: t
    deep
  : d

  : %%%
%%%
c
html
<ul>
  <li><p>a</p>
    <dl>
      <dt>t</dt>
    </dl>
    <p>deep
: d</p>
    <p>:</p>
  </li>
</ul>

Released under the MIT License.