Markdown Previewer Bonus Challenge

Front End Libraries Projects - Build a Markdown Previewer

I want to complete the bonus challenge but even after reading the documentation, I don’t understand how to do it.

The bonus challenge is to make markdown recognize carriage returns, “enter”, as line breaks.

I tried marked.setOptions({gfm: true, breaks: true}) at the top of my code, but that didn’t work.

I tried props.setInnerHTML(marked(props.stateInput, {gfm: true, breaks: true})) near the end of my code.

I don’t know if I’m missing something or if I’m doing it the wrong way.
Any help and guidance will be much appreciated.

If you want to see my code, here’s the link to it:
CodePen Home FCC Challenge: Build A Simple React Markdown Previewer. (Using React)

I want to go ahead and say thank you to anyone who reads this, and an extra thank You to anyone who responds. :slightly_smiling_face: