Problem with my preview for markdown preview project

If you keep typing in the editor on the same line the text does not start a new line when it hits the edge. In the example from fcc it begins a new line. How can I make this happen with my project?

my pen.