Problem with Building a Markdown Previewer

The problem is I watched every video for making a Markdown Previewer but none of those codes were right!
What is the real code that I need to put in JavaScript part?
Can you please help?

the real code is the one you will come up with.

1 Like