Simple Markdown Previewer
In many modern web applications, content creation and documentation often leverage Markdown for its simplicity and readability. This problem challenges you to build a lightweight, client-side Markdown editor with a real-time preview pane. This feature is crucial for enabling users to write and format content efficiently, providing immediate visual feedback on their input without needing to save or publish.
Your goal is to build a React component that functions as a basic Markdown editor and previewer.
textarea element for users to type their Markdown content.# Header), H2 (## Header), and H3 (### Header).**bold text** syntax.*italic text* syntax.- list item syntax.textarea with a monospace font.#, ##, ###) are correctly rendered as <h1>, <h2>, <h3> tags in the preview.**text**) is correctly rendered as <strong> tags.*text*) is correctly rendered as <em> tags.- item) are correctly rendered within <ul> and <li> tags.Constraints
marked.js, react-markdown). You need to implement the parsing logic yourself using basic string manipulation (e.g., regular expressions, string methods). This is a core part of the problem.Loading editor...