Please see link to codepen below:
[Markdown Previewer (codepen.io)]:
https://codepen.io/bkabat35/pen/WNgQLPq?editors=1010
My markdown previewer is not displaying the proper H1 size, H2 size, etc.(and so on) for the test #5 requirements. I have included Babel, react 18.2, react-dom 18.2, markdown v.4.2.12 marked library and Prism 9000 - prism react renderer in the JS settings. I was following a codealong on youtube and everything was working up until this point then I encountered an issue after replacing >{content} with ‘dangerouslySetInnerHTML’ on JS(Babel) line 20 and 21 as shown in the codepen link. I also tried using marked.parse after ‘dangerouslySetInnerHTML={{__html: marked(content, {renderer, renderer})’ and the text rendered in the markdown preview remained the same as in the text editor. Why does the text entered(for example #Hello or ##Hello ) in the textarea not show the proper markdown in the previewer?