package markdown import "testing" func TestParagraph(t *testing.T) { t.Run("paragraph", func(t *testing.T) { t.Run("simple", test("bonsoir", `

bonsoir

`)) }) t.Run("replacer", func(t *testing.T) { opt := &Option{Replaces: map[rune]string{'~': " "}} t.Run("empty", testWithOptions(opt, "bonsoir", `

bonsoir

`)) t.Run("simple", testWithOptions(opt, "bonsoir~!", `

bonsoir !

`)) }) t.Run("poem", func(t *testing.T) { opt := &Option{Poem: true} t.Run("simple", testWithOptions(opt, "bonsoir", `

bonsoir

`)) t.Run("one_break", testWithOptions(opt, `bonsoir world`, `

bonsoir
world

`)) t.Run("mult_break", testWithOptions(opt, `bonsoir world new line`, `

bonsoir
world

new line

`)) }) }