go-org-orgwiki/org/testdata/lists.html
Ori 4d3a099922 For simple list items, don't wrap in <p> tags
This also removes extra newlines for simple list items, see changes to
tests for details.

Closes #57
2021-07-13 23:41:32 +02:00

152 lines
2.5 KiB
HTML

<ul>
<li class="unchecked">unordered list item 1</li>
<li>
list item with empty first and second line <br>
normally an empty line breaks the list item - but we make an exception for the first line and don&#39;t count it towards that limit</li>
<li>
<p>unordered list item 2 - with <code>inline</code> <em>markup</em></p>
<ol>
<li class="indeterminate">
<p>ordered sublist item 1</p>
<ol>
<li class="checked">ordered sublist item 1</li>
<li class="unchecked">ordered sublist item 2</li>
<li class="checked">ordered sublist item 3</li>
</ol>
</li>
<li>ordered sublist item 2</li>
<li>
list item with empty first and second line - see above</li>
</ol>
</li>
<li class="checked">
<p>unordered list item 3 - and a <a href="https://example.com">link</a>
and some lines of text</p>
<ol>
<li>
<p>and another subitem</p>
<div class="src src-sh">
<div class="highlight">
<pre>
echo with a block
</pre>
</div>
</div>
</li>
<li>
<p>and another one with a table</p>
<table>
<thead>
<tr>
<th class="align-right">a</th>
<th class="align-right">b</th>
<th class="align-right">c</th>
</tr>
</thead>
<tbody>
<tr>
<td class="align-right">1</td>
<td class="align-right">2</td>
<td class="align-right">3</td>
</tr>
</tbody>
</table>
<p>
and text with an empty line in between as well!</p>
</li>
</ol>
</li>
<li>
<p>unordered list item 4</p>
<pre class="example">
with an example
that spans multiple lines
</pre>
</li>
</ul>
<p>
descriptive lists</p>
<dl>
<dt class="unchecked">
term
</dt>
<dd>details
continued details</dd>
<dt class="unchecked">
?
</dt>
<dd>details without a term</dd>
<dt class="checked">
term
</dt>
<dd>
details on a new line</dd>
<dt>
term
</dt>
<dd>
<p>
details on a new line (with an empty line in between)
<strong>continued</strong></p>
<div class="src src-bash">
<div class="highlight">
<pre>
echo &#34;Hello World!&#34;
</pre>
</div>
</div>
</dd>
</dl>
<p>some list termination tests</p>
<ul>
<li>unordered 1</li>
<li>unordered 2</li>
</ul>
<ol>
<li>ordered 1</li>
<li>ordered 2</li>
</ol>
<ol>
<li>ordered 1</li>
<li>ordered 2</li>
</ol>
<ul>
<li>unordered 1</li>
<li>unordered 2</li>
</ul>
<ol>
<li>ordered 1</li>
<li>ordered 2</li>
</ol>
<dl>
<dt>
unordered descriptive
</dt>
<dd>1</dd>
<dt>
unordered descriptive
</dt>
<dd>2</dd>
</dl>
<dl>
<dt>
ordered descriptive
</dt>
<dd>1</dd>
<dt>
ordered descriptive
</dt>
<dd>2</dd>
</dl>
<ul>
<li>unordered 1</li>
<li>unordered 2</li>
</ul>
<ol>
<li value="2">use `[@n]` to change the value of list items</li>
<li class="unchecked">foobar</li>
<li value="10" class="checked">that even works in combination with list statuses (`[ ]`)</li>
</ol>