While adding another test case from the goorgeous issues it became clear that inline markup and html entity replacement were erronously applied to raw text elements like inline code =foo=, src/example/export blocks, example lines, etc. To correctly handle those cases in both org and html exports a new parseRawInline method had to be added. Also some misc html export whitespace fixes and stuff
116 lines
1.2 KiB
HTML
116 lines
1.2 KiB
HTML
<ul>
|
|
<li>
|
|
<p>
|
|
unordered list item 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
unordered list item 2 - with <code>inline</code> <em>markup</em>
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
<p>
|
|
ordered sublist item 1
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
<p>
|
|
ordered sublist item 1
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered sublist item 2
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered sublist item 3
|
|
</p>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
ordered sublist item 2
|
|
</p>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
<li>
|
|
<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="highlight">
|
|
<pre>
|
|
echo with a block
|
|
</pre>
|
|
</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>
|
|
term<dd>
|
|
<p>
|
|
description
|
|
</p>
|
|
<dd>
|
|
<dt>
|
|
?<dd>
|
|
<p>
|
|
without term
|
|
</p>
|
|
<dd>
|
|
<dt>
|
|
term<dd>
|
|
<p>
|
|
description
|
|
</p>
|
|
<dd>
|
|
</dl>
|