Skip to content

Instantly share code, notes, and snippets.

@rurtubia
Last active August 29, 2015 14:22
Show Gist options
  • Save rurtubia/df5636f2416b34e12da7 to your computer and use it in GitHub Desktop.
Save rurtubia/df5636f2416b34e12da7 to your computer and use it in GitHub Desktop.
Markdown tutorial

I read this interesting quote the other day:

Her image had passed into his soul for ever and no word had broken the holy silence of his ecstasy. Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life! A wild angel had appeared to him, the angel of mortal youth and beauty, an envoy from the fair courts of life, to throw open before him in an instant of ecstasy the gates of all the ways of error and glory. On and on and on and on!

I read this interesting quote the other day:
>Her image had passed into his soul for ever and no word had broken the holy silence of his ecstasy. Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life! A wild angel had appeared to him, the angel of mortal youth and beauty, an envoy from the fair courts of life, to throw open before him in an instant of ecstasy the gates of all the ways of error and glory. On and on and on and on!

This is some bold text

**This is some bold text**

#Header one ##Header two ###Header three ####Header four #####Header five ######Header six

#Header one
##Header two
###Header three
####Header four
#####Header five
######Header six

Three or more...


Hyphens


Asterisks


Underscores

Three or more...

---

Hyphens

***

Asterisks

___

Underscores

A representation of Octdrey Catburn

![A representation of Octdrey Catburn](http://octodex.github.com/images/octdrey-catburn.jpg)

This is some text in Italics

_This is some text in Italics_

We pictured the meek mild creatures where
They dwelt in their strawy pen,

Nor did it occur to one of us there
To doubt they were kneeling then.

We pictured the meek mild creatures where  //(use two blank spaces at the end of the line)
They dwelt in their strawy pen,

Nor did it occur to one of us there  //(use two blank spaces at the end of the line)
To doubt they were kneeling then.

monospace

`monospace`
  1. Cut the cheese
  2. Slice the tomatoes
  3. Rub the tomatoes in flour
1. Cut the cheese
2. Slice the tomatoes
3. Rub the tomatoes in flour

non-standard, used in GFM

var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting"
print s
No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting"
print s
No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.

strikethrough

~~strikethrough~~ 
  • Flour
  • Cheese
  • Tomatoes
* Flour
* Cheese
* Tomatoes
  • Calculus
  • A professor
  • Has no hair
  • Often wears green
  • Castafiore
  • An opera singer
  • Has white hair
  • Is possibly mentally unwell
* Calculus
 * A professor
 * Has no hair
 * Often wears green
* Castafiore
 * An opera singer
 * Has white hair
 * Is possibly mentally unwell

##Youtube videos

They can't be added directly but you can add an image with a link to the video like this:

IMAGE ALT TEXT HERE

<a href="http://www.youtube.com/watch?feature=player_embedded&v=YOUTUBE_VIDEO_ID_HERE
" target="_blank"><img src="http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg" 
alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>

Or, in pure Markdown, but losing the image sizing and border:

IMAGE ALT TEXT HERE

[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment