Docsity

Markdown Syntax Cheat Sheet for Github, Cheat Sheet of Web Design and Development

Toggle sidebar
bg1
LISTS
* Item 1
* Item 2
* Item 2a
* Item 2b
HEADERS
BLOCKQUOTES
As Grace Hopp er said:
> I’ve always been more interes ted
> in the futur e than in the past.
As Grace Ho pper said:
I've always been more interested
in the fut ure than in t he past.
MARKDOWN
SYNTAX
IMAGES
![GitH ub Lo go](/im age s/log o.png)
Format: ![Alt Text](url)
LINKS
http://github.com - automatic!
[Git Hu b](h tt p://gith ub.c om)
Unordered
1. Item 1
2. Item 2
3. Item 3
* Item 3a
* Item 3b
Ordered
BACKSLASH ESCAPES
Markdown allows you t o use backslash escapes to gen erate literal character s which
would other wise have special meaning in Ma rkdown’s formatting sy ntax.
Markdown provides backslash escapes for
the following characters:
\ backslash
` backtick
* asterisk
_ underscore
{} curly braces
[] squa re brackets
() parentheses
# hash mark
+ plus si gn
- minu s sign (hyphen)
. dot
! exclamation mark
EMPHASIS
*This text will be italic*
_This will also be italic_
**This text w ill be bold**
__This will also be bold__
*You **can** combine the m*
# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag
\*l it er al as t er is k s\*
*literal asterisks*
Markdown is a way to style text on the web. You control the display of the document; formatting words as
bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly,
Markdown is just regular text with a few non-alphabetic characters thrown in, like # or *.
pf2

Partial preview of the text

Download Markdown Syntax Cheat Sheet for Github and more Cheat Sheet Web Design and Development in PDF only on Docsity!

L I S T S

  • Item 1
  • Item 2
  • Item 2a
  • Item 2b

H E A D E R S

B L O C K Q U O T E S

As Grace Hopper said:

> I’ve always been more interested > in the future than in the past.

As Grace Hopper said:

I've always been more interested

in the future than in the past.

M A R K DOWN

SYNTA X

I M A G E S

Format:

L I N K S

http://github.com - automatic!

GitHub

Unordered

  1. Item 1
  2. Item 2
  3. Item 3
    • Item 3a
    • Item 3b

Ordered

B A C K S L A S H E S C A P E S

Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special meaning in Markdown’s formaing syntax.

Markdown provides backslash escapes for the following characters:

\ backslash ` backtick

  • asterisk _ underscore {} curly braces [] square brackets

() parentheses

hash mark

  • plus sign
  • minus sign (hyphen) . dot ! exclamation mark

E M P H A S I S

This text will be italic This will also be italic

This text will be bold This will also be bold

You can combine them

This is an tag

This is an tag

This is an tag

*literal asterisks*

literal asterisks

Markdown is a way to style text on the web. You control the display of the document; formaing words as

bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly,

Markdown is just regular text with a few non-alphabetic characters thrown in, like # or *.

GITHUB

FL AVOR ED

M A R K DOWN

GitHub.com uses its own version of the Markdown syntax, GFM, that provides an additional set of useful

features, many of which make it easier to work with content on GitHub.com.

U S E R N A M E  M E N T I O N S

Typing an @^ symbol, followed by a username, will notify that person to come and view the comment. This is called an “@mention”, because you’re mentioning the individual. You can also @mention teams within an organization.

I S S U E R E F E R E N C E S

Any number that refers to an Issue or Pull Request will be automatically converted into a link.

github-flavored-markdown# defunkt/github-flavored-markdown#

TA S K L I S T S

  • [x] this is a complete item
  • [ ] this is an incomplete item
  • [x] @mentions, #refs, links, formatting, and tags supported
  • [x] list syntax required (any unordered or ordered list supported)

this is a complete item

this is an incomplete item

@mentions, #refs, links, formaing ,

and tags supported

list syntax required (any unordered or

ordered list supported)

F E N C E D C O D E B L O C K S

function test() { console.log("look ma’, no spaces"); }

Markdown coverts text with four leading spaces into a code block; with GFM you can wrap your code with ``` to create a code block without the leading spaces. Add an optional language identifier and your code will get syntax highlighting.

function test() { console.log("look ma’, no spaces"); }

TA B L E S

First HeaderSecond Header Content cell 1Content cell 2 Content column 1Content column 2

First Header Second Header

Content cell 1 Content cell 2

Content column 1 Content column 2

You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe | :

E M O J I

GitHub supports emoji! :+1: :sparkles: :camel: :tada: :rocket: :metal: :octocat:

GitHub supports emoji!

To see a list of every image we

support, check out

www.emoji-cheat-sheet.com