The best way to get started with Markdown
2 min read
What is Markdown? It is a lightweight markup language (ironic) that is used to add formatting elements to plain text documents. It was created by John Gruber in 2004 and is dead easy. It can be seen for example as the README.md on Github, or even writing this article in Hashnode.
Start using Markdown by using snippets of code to style documents, such as using a hash (#) to denote a heading or two asterisks (**) to create bold text. Lets run through some of the most common formatting elements that can be used right now!
Just add the number of hashes (
#) to show the heading level.
# Heading 1 ## Heading 2 ### Heading 3
Simply use two asterisks (
**) for bold and one (
*) for italicized text. Using the greater than symbol (
>) for a block quote and two greater than symbols (
>>) can be used to nest a block quote.
**bold text**- bold text
*italicized text*- italicized text
Ordered lists are simple, just number the list with a full stop (
.) after the number.
Unordered list are just as simple. Use a dash (
-), a plus symbol (
+) or asterisks (
A code snippet is used by wrapping the code with back ticks (`).
A code block is just a simple as a code snippet, just wrap the code with three back ticks (```)
``` Code goes here ```
Add the name of the link in square brackets
[name] then add the link in bracket
has the same syntax as a link but uses an exclamation mark (
That's it. Just enough snippets to make Markdown dangerous. Check out this documentation for more information.