Creating a Markdown component
Markdown is a way to produce HTML in a manner that is easy to write and also easy to read. The output would be displayed as any HTML document would, but the process of writing it and reading it is much easier. Compare the following two snippets, which result in the same HTML output:
Using pure HTML, we would write the following:
<h1>This is the main text of the page</h1> <h3>This is secondary text</h2> <ul> <li>first item</li> <li>second item</li> <li>third item</li> </ul>
The same code can be written with Markdown as follows:
# This is the main text of the page ### This is secondary text * first item * second item * third item
I think it's clear that Markdown is much easier to write, as well as to read, especially when you have nested items such as the <ul>
unordered list we have here.
The Markdown
component works...