From 210d6030cd68443d0a41efff44b9ca05e9e1c635 Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Sat, 26 Jan 2019 10:36:55 +0100 Subject: [PATCH] feat(renderer): support dropping of principal text in ordered list item well, all the work was done in #266, so this PR just adds a text to verify that it works now ;) Fixes #265 Signed-off-by: Xavier Coulon --- pkg/renderer/html5/ordered_list_test.go | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pkg/renderer/html5/ordered_list_test.go b/pkg/renderer/html5/ordered_list_test.go index 9e59d854..0749b880 100644 --- a/pkg/renderer/html5/ordered_list_test.go +++ b/pkg/renderer/html5/ordered_list_test.go @@ -341,6 +341,40 @@ a. foo +` + verify(GinkgoT(), expectedResult, actualContent) + }) + + It("drop principal text in list item", func() { + actualContent := `. {blank} ++ +---- +print("one") +---- +. {blank} ++ +---- +print("one") +----` + expectedResult := `
+
    +
  1. +

    +
    +
    +
    print("one")
    +
    +
    +
  2. +
  3. +

    +
    +
    +
    print("one")
    +
    +
    +
  4. +
` verify(GinkgoT(), expectedResult, actualContent) })