diff --git a/pkg/parser/unordered_list_test.go b/pkg/parser/unordered_list_test.go index 0619d069..fe086b8a 100644 --- a/pkg/parser/unordered_list_test.go +++ b/pkg/parser/unordered_list_test.go @@ -1196,6 +1196,47 @@ The {plus} symbol is on a new line. Expect(ParseDocument(source)).To(MatchDocument(expected)) }) + It("with list element continuation - case 3", func() { + source := `- here ++ +_there_` + expected := &types.Document{ + Elements: []interface{}{ + &types.List{ + Kind: types.UnorderedListKind, + Elements: []types.ListElement{ + &types.UnorderedListElement{ + BulletStyle: types.Dash, + CheckStyle: types.NoCheck, + Elements: []interface{}{ + &types.Paragraph{ + Elements: []interface{}{ + &types.StringElement{ + Content: "here", + }, + }, + }, + &types.Paragraph{ + Elements: []interface{}{ + &types.QuotedText{ + Kind: types.SingleQuoteItalic, + Elements: []interface{}{ + &types.StringElement{ + Content: "there", + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + } + Expect(ParseDocument(source)).To(MatchDocument(expected)) + }) + It("without item continuation", func() { source := `* foo diff --git a/pkg/renderer/sgml/html5/unordered_list_test.go b/pkg/renderer/sgml/html5/unordered_list_test.go index 54c636e3..5f097778 100644 --- a/pkg/renderer/sgml/html5/unordered_list_test.go +++ b/pkg/renderer/sgml/html5/unordered_list_test.go @@ -216,7 +216,7 @@ foo Expect(RenderHTML(source)).To(MatchHTML(expected)) }) - It("unordered list with item continuation", func() { + It("unordered list with item continuation - case 1", func() { source := `* foo + ---- @@ -252,6 +252,25 @@ another delimited block Expect(RenderHTML(source)).To(MatchHTML(expected)) }) + It("unordered list with item continuation - case 2", func() { + source := `- here ++ +_there_ +` + expected := `
here
+there
+