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
This commit is contained in:
Ori 2021-06-22 16:57:09 -04:00 committed by Niklas Fasching
parent 429602aba7
commit 4d3a099922
9 changed files with 146 additions and 319 deletions

View file

@ -22,17 +22,11 @@ Simple Headline <code class="statistic">[1/2]</code>
</h2>
<div id="outline-text-headline-1" class="outline-text-2">
<ul>
<li class="checked">
<p>checked</p>
</li>
<li class="unchecked">
<p>unchecked</p>
</li>
<li>
<p>note that statistic tokens are marked up anywhere
<li class="checked">checked</li>
<li class="unchecked">unchecked</li>
<li>note that statistic tokens are marked up anywhere
not just where they are actually meant to be - even here &gt; <code class="statistic">[100%]</code> &lt;
(Org mode proper does the same)</p>
</li>
(Org mode proper does the same)</li>
</ul>
</div>
</div>