I didn't consider that all newlines in the pre block will be printed and we thus shouldn't wrap html that has it's tags on separate lines (i.e. contains superfluous newlines) - wrapping in a div less accurately represents org-html-export but it provides the same information and gives us more freedom in the return value of HighlightCodeBlock as well as allowing us to keep the html tags on new lines (consistency).
247 lines
2.6 KiB
HTML
247 lines
2.6 KiB
HTML
<ul>
|
|
<li class="unchecked">
|
|
<p>
|
|
unordered list item 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
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't count it towards that limit
|
|
</p>
|
|
</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">
|
|
<p>
|
|
ordered sublist item 1
|
|
</p>
|
|
</li>
|
|
<li class="unchecked">
|
|
<p>
|
|
ordered sublist item 2
|
|
</p>
|
|
</li>
|
|
<li class="checked">
|
|
<p>
|
|
ordered sublist item 3
|
|
</p>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered sublist item 2
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
list item with empty first and second line - see above
|
|
</p>
|
|
</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<dd>
|
|
<p>
|
|
details
|
|
continued details
|
|
</p>
|
|
<dd>
|
|
<dt class="unchecked">
|
|
?<dd>
|
|
<p>
|
|
details without a term
|
|
</p>
|
|
<dd>
|
|
<dt class="checked">
|
|
term<dd>
|
|
<p>
|
|
details on a new line
|
|
</p>
|
|
<dd>
|
|
<dt>
|
|
term<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 "Hello World!"
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
<dd>
|
|
</dl>
|
|
<p>
|
|
some list termination tests
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
<p>
|
|
unordered 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
unordered 2
|
|
</p>
|
|
</li>
|
|
</ul>
|
|
<ol>
|
|
<li>
|
|
<p>
|
|
ordered 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered 2
|
|
</p>
|
|
</li>
|
|
</ol>
|
|
<ol>
|
|
<li>
|
|
<p>
|
|
ordered 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered 2
|
|
</p>
|
|
</li>
|
|
</ol>
|
|
<ul>
|
|
<li>
|
|
<p>
|
|
unordered 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
unordered 2
|
|
</p>
|
|
</li>
|
|
</ul>
|
|
<ol>
|
|
<li>
|
|
<p>
|
|
ordered 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered 2
|
|
</p>
|
|
</li>
|
|
</ol>
|
|
<dl>
|
|
<dt>
|
|
unordered descriptive<dd>
|
|
<p>
|
|
1
|
|
</p>
|
|
<dd>
|
|
<dt>
|
|
unordered descriptive<dd>
|
|
<p>
|
|
2
|
|
</p>
|
|
<dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>
|
|
ordered descriptive<dd>
|
|
<p>
|
|
1
|
|
</p>
|
|
<dd>
|
|
<dt>
|
|
ordered descriptive<dd>
|
|
<p>
|
|
2
|
|
</p>
|
|
<dd>
|
|
</dl>
|
|
<ul>
|
|
<li>
|
|
<p>
|
|
unordered 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
unordered 2
|
|
</p>
|
|
</li>
|
|
</ul>
|