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
bonsoir
world
new line
`)) }) }