Markdown cheat sheet
Chrissie
Posted on August 18, 2020
Markdown is a markup language that is used to add formatting elements to plain text. It is easy to learn and use. In my opinion, markdown is a must, not only if you want to start posting here on Dev but also for writing readmes. I'm sure by now you've noticed that readme files have the .md extension, that is the markdown file extension and while you can write a readme in plaintext, to make our readme more appealing and comprehensive you should definitely use markdown.
Here's a list of basic Markdown syntax to get you started:
Heading
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
Heading 1
Heading 2
Heading 3
Heading 4
Bold and Italic
**Bold** *Italic*
or
__Bold__ _Italic_
Bold Italic
Bold Italic
Link
[Example](https://example.com)
Blockquote
> Lorem Ipsum
Lorem Ipsum
Image
![alt text](image.jpg)
List
1. One
2. Two
3. Three
- List
- List
- List
- One
- Two
- Three
- List
- List
- List
Code
`Inline` code
{```
}
code
{
```}
Inline
code
console.log(a)
Without the curly braces
For syntax highlighting
{```
} javascript
console.log(a)
{
```}
console.log(a)
Without the curly braces
Horizontal Rule
Lorem Ispum
---
Lorem Ispum
Remember to put a blank line before and after the dashes, without those, the text will appear as a heading.
A lot of markdown applications accept the use of HTML tags so if you are more comfortable using HTML tags over markdown syntax you can use them provided that they are supported by the application.
Posted on August 18, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.