Markdown

    This is intended as a quick reference and showcase. For more complete info, see John Gruber’s original spec and the .

    Alternatively, for H1 and H2, an underline-ish style:

    1. ======
    2. Alt-H2
    3. ------

    Paragraphs and Line Breaks

    1. Here's a line for us to start with.
    2. This line is separated from the one above by two newlines, so it will be a *separate paragraph*.
    3. This line is also a separate paragraph, but...
    4. This line is only separated by a single newline, so it's a separate line in the *same paragraph*.

    Emphasis

    1. Emphasis, aka italics, with *asterisks* or _underscores_.
    2. Strong emphasis, aka bold, with **asterisks** or __underscores__.
    3. Combined emphasis with **asterisks and _underscores_**.
    4. Strikethrough uses two tildes. ~~Scratch this.~~

    Lists

    (In this example, leading and trailing spaces are shown with dots: ⋅)

    There are two ways to create links.

    1. [I'm an inline-style link](https://www.google.com)
    2. [I'm an inline-style link with title](https://www.google.com "Google's Homepage")
    3. [I'm a relative reference to a repository file](../blob/master/LICENSE)
    4. [You can use numbers for reference-style link definitions][1]
    5. Or leave it empty and use the [link text itself]
    6. Some text to show that the reference links can follow later.
    7. [arbitrary case-insensitive reference text]: https://www.mozilla.org
    8. [1]: http://slashdot.org
    9. [link text itself]: http://www.reddit.com

    Footnotes

    1. Text prior to footnote reference.[^2]
    2. [^2]: Comment to include in footnote.

    Images

    1. Here's our logo (hover to see the title text):
    2. Inline-style:
    3. ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
    4. Reference-style:
    5. ![alt text][logo]
    6. [logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"

    Code and Syntax Highlighting

    Code blocks are part of the Markdown spec, but syntax highlighting isn’t. However, many renderers — like Github’s and Markdown Here — support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. Markdown Here supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the highlight.js demo page.

    Blocks of code are either fenced by lines with three back-ticks ```, or are indented with four spaces. I recommend only using the fenced code blocks — they’re easier and only they support syntax highlighting.

    1. ```javascript
    2. var s = "JavaScript syntax highlighting";
    3. alert(s);
    4. ```
    5. ```python
    6. s = "Python syntax highlighting"
    7. print s
    8. ```
    9. ```
    10. But let's throw in a <b>tag</b>.
    11. ```
    1. Colons can be used to align columns.
    2. | Tables | Are | Cool |
    3. | ------------- |:-------------:| -----:|
    4. | col 3 is | right-aligned | $1600 |
    5. | col 2 is | centered | $12 |
    6. | zebra stripes | are neat | $1 |
    7. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
    8. Markdown | Less | Pretty
    9. --- | --- | ---
    10. *Still* | `renders` | **nicely**
    11. 1 | 2 | 3

    Blockquotes

    1. > Blockquotes are very handy in email to emulate reply text.
    2. > This line is part of the same quote.
    3. Quote break.
    4. > This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.

    Inline HTML

    You can also use raw HTML in your Markdown, and it’ll mostly work pretty well.

    Horizontal Rule

    1. Three or more...
    2. ---
    3. Hyphens
    4. ***
    5. Asterisks
    6. ___