All About Markdown
First off: in Markdown, whitespace matters, specifically spaces. If something isn’t rendering properly, check the spaces.
Github uses a flavored markdown. Here’s the spec.
CheatSheet and Tutorial by CommonMark
Headers
Starting a line with a hash # and a space makes a header.
### Header 3
The more #, the smaller the header.
Tables
Create tables with pipes | and hyphens -. Pipes separate columns and hyphens signify the column headers. You must include a blank line before each table row in order for it to correctly render. See Organizing information with tables.
| Column One | Column Two |
| --- | ---: |
| Lorem | 12,300 |
| Ipsum | 5,032 |
| Dolor | 375,929 |
| Column One | Column Two |
|---|---|
| Lorem | 12,300 |
| Ipsum | 5,032 |
| Dolor | 375,929 |
Code
- Inline text gets one backtick.
Solve for x:
2x + 7 = 17 - Blocks of code get three and can include a language code for syntax highlighting
| Abbreviation | Code Type |
|---|---|
| js | javascript |
| php | PHP |
| sh | bash |
| feature | cucumber |
| console | sh-session |
| css | css |
| html | html |
| sql | sql |
| txt | txt |
| yml | yaml |
var i;
for (i=0; i<5; i++) {
console.log(i);
}
Emphasis
Wrap text with asterisks * or underscores _, single for italics and double for bold.
*This text will be italic***This text will be bold**
Escape with a backslash \* or \_ if you want the asterisks/underscores to be themselves.
Links
Square brackets with link text + parenthesis with link URL.
[My Repositories](https://github.com/cathysnider/)
Graphics
Exclamation point + square brackets with alt text + parenthesis with image URL.


Blockquotes
Use a GreaterThan > sign
> Last night I dreamt I went to Manderley again.
Last night I dreamt I went to Manderley again.
Lists
Bulleted List
* List item
* Nested list item
- Bananas
- Berries
- Black
- Blue
- Rasp
- Straw
- Everbearing
- Junebearing
- Cherries
- Mangos
Ordered List
1. List item
1. Nested list item
- Bananas
- Berries
- Black
- Blue
- Rasp
- Straw
- Everbearing
- Junebearing
- Cherries
- Mangos
Line up unbulleted text with text above it.
Task List
A task list is a list with checkboxes instead of bullets. If you include a task list in the body of an issue or pull request, you’ll see a progress indicator in your issue list. The syntax for a task list is very specific: hyphen-space-square bracket-space-square bracket - [ ]
- Create a task list
- Complete the tasks
- This is nested with two spaces
- Check off items as they are completed