Skip to content

Instantly share code, notes, and snippets.

@devops-school
Created April 14, 2020 08:00
Show Gist options
  • Save devops-school/323aedffb650c55b73c85024a8483e7d to your computer and use it in GitHub Desktop.
Save devops-school/323aedffb650c55b73c85024a8483e7d to your computer and use it in GitHub Desktop.
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph text Inline Code text Mistaken text. Italics Bold


Tasks

  • a task list item
  • list syntax required
  • normal formatting
  • incomplete
  • completed

Code Blocks

4 space indention
makes full-width
standard code blocks
var now = new Date();

var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}
today =  days[now.getDay()] + ", " +
         months[now.getMonth()] + " " +
         date + ", " +
         (fourdigits(now.getYear())) ;

document.write(today);
#sc_drag_area {
  height:100px;
  left:150px;
  position: absolute;
  top:100px;
  width:250px;
  z-index: 9999;
}

  • List item one
  • List item two
    • A nested item

  1. Number list item one 1.1. A nested item
  2. Number list item two
  3. Number list item three

Quote

Second line Quote


Standard link = http://ghost.org Custom Text Link


Image


Table

Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1
#Heading 1
##Heading 2
###Heading 3
####Heading 4
#####Heading 5
######Heading 6
---
Paragraph
text `Inline Code` text
~~Mistaken text.~~
*Italics*
**Bold**
---
Tasks
- [ ] a task list item
- [ ] list syntax required
- [ ] normal **formatting**
- [ ] incomplete
- [x] completed
---
Code Blocks
4 space indention
makes full-width
standard code blocks
```js
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;
}
today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear())) ;
document.write(today);
```
```css
#sc_drag_area {
height:100px;
left:150px;
position: absolute;
top:100px;
width:250px;
z-index: 9999;
}
```
---
* List item one
* List item two
* A nested item
---
1. Number list item one
1.1. A nested item
2. Number list item two
3. Number list item three
---
> Quote
>
> Second line Quote
---
Standard link = http://ghost.org
[Custom Text Link](http://ghost.org)
---
![Image](https://dl.dropboxusercontent.com/u/41297054/Pic.jpeg)
---
Table
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment