Markdown To HTML
Input
What is markdown?
Markdown is a lightweight markup language that is easy to read and write. It is often used to format plain text documents for web content. The main goal of Markdown is to be easily converted to HTML, making it a popular choice for creating content for websites, documentation, and other applications where simple formatting is needed.
In Markdown, you use special characters and symbols to indicate formatting elements. For example, you can use asterisks or underscores to denote emphasis or bold text, hash symbols for headers, and dashes or asterisks for creating lists.
Here are a few examples of Markdown syntax:
# Heading 1 ## Heading 2 ### Heading 3 *italic text* **bold text** [Link](https://www.example.com) - List item 1 - List item 2 - Sublist item 1. Ordered item 1 2. Ordered item 2
When this Markdown code is converted to HTML, it would produce the following:
<h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <p><em>italic text</em></p> <p><strong>bold text</strong></p> <a href="https://www.example.com">Link</a> <ul> <li>List item 1</li> <li>List item 2 <ul> <li>Sublist item</li> </ul> </li> </ul> <ol> <li>Ordered item 1</li> <li>Ordered item 2</li> </ol>