Basic Markdown syntax cheatsheet
Markdown is a lightweight markup language for writing formatted elements with plain text
When writing blog posts or news articles, Markdown language provides a simple syntax for a novice blogger to add styles to their content. Most blogging websites such as medium, github pages use markdown for writing blog posts. In addition developer documentation such as README docs are also written in markdown docs as it is more developer friendly too.
Here is the quick reference for Markdown syntax. Drop your questions in the comments below.
Style | Syntax | Preview |
---|---|---|
Heading style |
# Heading Level 1 ## Heading Level 2 ### Heading Level 3 #### Heading Level 4 |
Heading Level 1Heading Level 2Heading Level 3Heading Level 4 |
Horizontal Line | --- |
|
Bold | **Bold text** | Bold text |
Italic | *Italic text* | Italic text |
Blockquote | > Text in a seperate block |
> Text in a seperate block |
Code Snippet | `Single line code` | Single line code |
Code Block |
``` Multi line code Line 1 Line 2... ``` |
Multi line code
Line 1 Line 2... |
Ordered List |
1. First item 2. Second item 3. Third item |
|
Unordered List |
- First item - Second item - Third item |
|
Hyperlink | [title](https://www.pramod.me) | Link |
Image | ![alt text](images/markdown.jpeg) |
|
If you would like to see other markdown elements as part of this cheatsheet , please leave a comment below.