Skip to content

Commit

Permalink
feat(renderer): support dropping of principal text in ordered list item
Browse files Browse the repository at this point in the history
well, all the work was done in bytesparadise#266, so this PR just adds a text to
verify that it works now ;)

Fixes bytesparadise#265

Signed-off-by: Xavier Coulon <[email protected]>
  • Loading branch information
xcoulon committed Jan 26, 2019
1 parent 99581b5 commit 210d603
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkg/renderer/html5/ordered_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,40 @@ a. foo
</div>
</li>
</ul>
</div>`
verify(GinkgoT(), expectedResult, actualContent)
})

It("drop principal text in list item", func() {
actualContent := `. {blank}
+
----
print("one")
----
. {blank}
+
----
print("one")
----`
expectedResult := `<div class="olist arabic">
<ol class="arabic">
<li>
<p></p>
<div class="listingblock">
<div class="content">
<pre>print("one")</pre>
</div>
</div>
</li>
<li>
<p></p>
<div class="listingblock">
<div class="content">
<pre>print("one")</pre>
</div>
</div>
</li>
</ol>
</div>`
verify(GinkgoT(), expectedResult, actualContent)
})
Expand Down

0 comments on commit 210d603

Please sign in to comment.