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:
parent
429602aba7
commit
4d3a099922
9 changed files with 146 additions and 319 deletions
20
org/testdata/blocks.html
vendored
20
org/testdata/blocks.html
vendored
|
@ -68,12 +68,8 @@ note that /inline/ *markup* ignored
|
|||
<p>
|
||||
blocks like the quote block parse their content and can contain</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>lists</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>inline <em>markup</em></p>
|
||||
</li>
|
||||
<li>lists</li>
|
||||
<li>inline <em>markup</em></li>
|
||||
<li>
|
||||
<p>tables</p>
|
||||
<table>
|
||||
|
@ -90,15 +86,11 @@ blocks like the quote block parse their content and can contain</p>
|
|||
</tbody>
|
||||
</table>
|
||||
</li>
|
||||
<li>
|
||||
<p>paragraphs</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>…</p>
|
||||
<p>
|
||||
<li>paragraphs</li>
|
||||
<li>…
|
||||
|
||||
whitespace is honored and not removed (but is not displayed because that's how html works by default)
|
||||
it can be made visible using css (e.g. <code class="verbatim">white-space: pre</code>).</p>
|
||||
</li>
|
||||
it can be made visible using css (e.g. <code class="verbatim">white-space: pre</code>).</li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<div class="src src-org">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue