Skip to content

Instantly share code, notes, and snippets.

@Mario-Duarte
Created September 9, 2019 15:38
Show Gist options
  • Save Mario-Duarte/c1ccdd0a7bafc12082007a3ecb58ff09 to your computer and use it in GitHub Desktop.
Save Mario-Duarte/c1ccdd0a7bafc12082007a3ecb58ff09 to your computer and use it in GitHub Desktop.
Simple markdown cheat sheet

Markdown Cheat Sheet

A simple cheat sheet for you day to day Markdown needs

Headers

# This is an <h1> tag
## This is an <h2> tag
### This is an <h3> tag
#### This is an <h4> tag
##### This is an <h5> tag
###### This is an <h6> tag

Text styling

Italic text:

*Text in italic*  
_Text in italic_

Bold text:

**Text in bold**
__Text in bold__

Blockquote text:

> This text will be in blockquote and also supports *italic* and **bold** text

Lists
Unordered:

* List item 1
* List item 2
    * List item 2.1

Ordered:

1. List item 1
2. List item 1
    * List item 2.1

Task lists:

- [x] Complete task item
- [ ] Incomplete task item
- [x] These also support *italic* ,**bold*, @mentions, #refs and <del>tags</del>

Break lines
In order to add break lines to markdown you can use the <br> tag or double spaces after a word.

This is a sample <br>
text with a break line

You can also add  
break lines with a double spaces

Backslash escapes
Escape formating of * and other characters on the text.

\*literal asterisks\*

Links

[Github](https://github.com/)

EMOJI
A list of all emojis supported can be found here

:+1: :sparkles: :camel: :tada: :rocket: :metal: :octocat: 

Images

Placeholder image

![Alt text](http://image.url)

Tables

Header 1 Header 2
Cell 1 Cell 2
Column 1 Column 2
Header 1 | Header 2
----------|------------
Cell 1 | Cell 2
Column 1 | Column 2

Code Blocks

You can wrap code in markdown using ``` and adding the language identifier(this is optional but will give you sintax highlight)

```javascript
console.log('Hello world');
```.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment