Handle stripping new lines when the plain text input is a markdown list. (cherry picked from commit a0ae8b28b2)
a0ae8b28b2