Interactive Markdown Previewer
Delhivery leverages internal tools for efficient documentation and communication across various teams. A key component for such tools is a robust, yet simple, markdown editor that provides immediate visual feedback. This problem simulates building a core piece of functionality for an internal content management system, enhancing the user experience for our technical writers and content creators by offering a live preview of their markdown input.
Your primary goal is to build a functional, interactive markdown editor with a live preview capability. Specifically, you must:
# Heading), H2 (## Subheading), H3 (### Minor Heading)**bold text***italic text*- List item (support multiple consecutive list items)textarea element for Markdown input. It should be scrollable and adequately sized to accommodate several lines of text.div or similar block element, rendering the parsed HTML. It should also be scrollable if the content overflows.styles.css to ensure readability and separation of concerns. You may augment it as needed for clarity, but focus on functionality.Your solution will be evaluated based on the following observable behaviors:
# Hello World in the input renders <h1>Hello World</h1> in the preview.**Important** information renders <strong>Important</strong> information.*italicized* text renders <em>italicized</em> text.renders<ul><li>Item 1</li><li>Item 2</li></ul>`.Constraints
marked, markdown-it, showdown). The basic parsing logic for the specified Markdown subset must be implemented by you.Loading editor...