Headers
1 md2 h1 Headers3 br4 h1 h1 Heading 8-)5 h2 h2 Heading6 h3 h3 Heading7 h4 h4 Heading8 h5 h5 Heading9 h6 h6 Heading
# Headers
# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
Emphasis
1 md2 h1 Emphasis3 br4 p5 + Emphasis, aka italics, with6 em asterisks7 + or8 em underscores9 + .10 br11 p12 + Strong emphasis, aka bold, with13 b asterisks14 + or15 b underscores16 + .17 br18 p19 + Combined emphasis with20 b asterisks and21 em underscores22 + .23 br24 p Strikethrough uses two tildes.25 del Scratch this.26 br27 p28 b This is bold text29 br30 p31 b This is bold text32 br33 p34 em This is italic text35 br36 p37 em This is italic text38 br39 p40 del Strikethrough
# Emphasis
Emphasis, aka italics, with_asterisks_or_underscores_.
Strong emphasis, aka bold, with**asterisks**or**underscores**.
Combined emphasis with**asterisks and_underscores_**.
Strikethrough uses two tildes.~~Scratch this.~~
**This is bold text**
**This is bold text**
_This is italic text_
_This is italic text_
~~Strikethrough~~
Horizontal Rules
1 md2 h1 Horizontal Rules3 br4 p Three or more...5 br6 hr7 p Hyphens8 br9 hr10 p Asterisks11 br12 hr13 p Underscores14 br
# Horizontal Rules
Three or more...
***
Hyphens
***
Asterisks
***
Underscores
Blockquotes
1 md2 h1 Blockquotes3 br4 quote5 p6 + Blockquotes are very handy in email to emulate reply text.7 + This line is part of the same quote.8 p Quote break.9 br10 quote11 p12 + 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 can13 em put14 +15 b Markdown16 + into a blockquote.17 quote18 p Blockquotes can also be nested...19 quote20 p ...by using additional greater-than signs right next to each other...21 quote22 p ...or with spaces between arrows.
# Blockquotes
> Blockquotes are very handy in email to emulate reply text.This line is part of the same quote.
Quote break.
> 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.
> Blockquotes can also be nested...
> ...by using additional greater-than signs right next to each other...
> ...or with spaces between arrows.
Links
1 md2 h1 Links3 br4 p5 a I'm an inline-style link6 href https://www.google.com7 br8 p9 a I'm an inline-style link with title10 href https://www.google.com11 title Google's Homepage12 br13 p14 a I'm a reference-style link15 href https://www.mozilla.org16 br17 p18 a I'm a relative reference to a repository file19 href ../blob/master/LICENSE20 br21 p22 a You can use numbers for reference-style link definitions23 href http://slashdot.org24 br25 p26 + Or leave it empty and use the27 a link text itself28 href http://www.reddit.com29 + .30 br31 p32 + URLs and URLs in angle brackets will automatically get turned into links.33 +34 a http://www.example.com35 href http://www.example.com36 + or37 a http://www.example.com38 href http://www.example.com39 + and sometimes40 + example.com (but not on Github, for example).41 br42 p Some text to show that the reference links can follow later.
# Links
[I'm an inline-style link](https://www.google.com)
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
[I'm a reference-style link](https://www.mozilla.org)
[I'm a relative reference to a repository file](../blob/master/LICENSE)
[You can use numbers for reference-style link definitions](http://slashdot.org)
Or leave it empty and use the[link text itself](http://www.reddit.com).
URLs and URLs in angle brackets will automatically get turned into links.[http://www.example.com](http://www.example.com)or[http://www.example.com](http://www.example.com)and sometimesexample.com (but not on Github, for example).
Some text to show that the reference links can follow later.
Images
1 md2 h1 Images3 br4 p Here's our logo (hover to see the title text):5 br6 p7 + Inline-style:8 +9 img10 src https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png11 title Logo Title Text 112 alt alt text13 br14 p15 + Reference-style:16 +17 img18 src https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png19 title Logo Title Text 220 alt alt text21 br22 p23 img24 src https://octodex.github.com/images/minion.png25 alt Minion26 +27 +28 img29 src https://octodex.github.com/images/stormtroopocat.jpg30 title The Stormtroopocat31 alt Stormtroopocat32 br33 p Like links, Images also have a footnote style syntax34 br35 p36 img37 src https://octodex.github.com/images/dojocat.jpg38 title The Dojocat39 alt Alt text40 br41 p With a reference later in the document defining the URL location:
# Images
Here's our logo (hover to see the title text):
Inline-style:
Reference-style:


Like links, Images also have a footnote style syntax

With a reference later in the document defining the URL location:
Videos
1 md2 h1 YouTube Videos3 br4 html5 a6 href http://www.youtube.com/watch?feature=player_embedded&v=YOUTUBE_VIDEO_ID_HERE7 target _blank8 img9 src http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg10 alt IMAGE ALT TEXT HERE11 width 24012 height 18013 br14 p15 a16 href https://www.youtube.com/watch?v=ciawICBvQoE17 img18 src https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/YouTube_logo_2015.svg/1200px-YouTube_logo_2015.svg.png19 alt IMAGE ALT TEXT HERE
# YouTube Videos
<!doctype html>
<html>
<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" />
</a>
</html>
[](https://www.youtube.com/watch?v=ciawICBvQoE)
Footnotes
1 md2 h13 a Footnotes4 href https://github.com/markdown-it/markdown-it-footnote5 br6 p Footnote 1 link[^first].7 br8 p Footnote 2 link[^second].9 br10 p Inline footnote^[Text of inline footnote] definition.11 br12 p Duplicated footnote reference[^second].13 br14 p [^first]: Footnote15 b can have markup16 br17 code18 indented19 + and multiple paragraphs.20 p [^second]: Footnote text.
#
Footnote 1 link[^first].
Footnote 2 link[^second].
Inline footnote^[Text of inline footnote] definition.
Duplicated footnote reference[^second].
[^first]: Footnote**can have markup**
```undefined
and multiple paragraphs.
```
[^second]: Footnote text.
Lists
1 md2 h1 Lists3 br4 ol5 li First ordered list item6 li7 + Another item8 + ⋅⋅* Unordered sub-list.9 li10 + Actual numbers don't matter, just that it's a number11 + ⋅⋅1. Ordered sub-list12 li And another item.13 br14 p ⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).15 br16 p17 + ⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅18 + ⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅19 + ⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)20 br21 ul22 li Unordered list can use asterisks23 ul24 li Or minuses25 ul26 li Or pluses27 br28 ol29 li Make my changes30 ol31 li Fix bug32 li Improve formatting33 ul34 li Make the headings bigger35 li Push my commits to GitHub36 li Open a pull request37 ul38 li Describe my changes39 li Mention all the members of my team40 ul41 li Ask for feedback42 br43 ul44 li45 + Create a list by starting a line with46 codespan +47 + ,48 codespan -49 + , or50 codespan *51 li Sub-lists are made by indenting 2 spaces:52 ul53 li Marker character change forces new list start:54 ul55 li Ac tristique libero volutpat at56 ul57 li Facilisis in pretium nisl aliquet58 ul59 li Nulla volutpat aliquam velit60 li Very easy!
# Lists
1. First ordered list item
2. Another item
⋅⋅* Unordered sub-list.
3. Actual numbers don't matter, just that it's a number
⋅⋅1. Ordered sub-list
4. And another item.
⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
* Unordered list can use asterisks
* Or minuses
* Or pluses
1. Make my changes
1. Fix bug
2. Improve formatting
* Make the headings bigger
2. Push my commits to GitHub
3. Open a pull request
* Describe my changes
* Mention all the members of my team
* Ask for feedback
* Create a list by starting a line with`+`,`-`, or`*`
* Sub-lists are made by indenting 2 spaces:
* Marker character change forces new list start:
* Ac tristique libero volutpat at
* Facilisis in pretium nisl aliquet
* Nulla volutpat aliquam velit
* Very easy!
Tasks
1 md2 h1 Task lists3 br4 ul5 li Finish my changes6 checked7 task8 li Push my commits to GitHub9 task10 li Open a pull request11 task12 li13 checked14 task15 + @mentions, #refs,16 a links17 href18 + ,19 b formatting20 + , and21 html22 del23 + tags24 html25 html __dummy_root__26 + supported27 li list syntax required (any unordered or ordered list supported)28 checked29 task30 li this is a complete item31 task32 li this is an incomplete item33 task
# Task lists
- [x] Finish my changes
- [ ] Push my commits to GitHub
- [ ] Open a pull request
- [x] @mentions, #refs,[links](),**formatting**, and<!doctype html>
<html>
<del></del>
</html>
tags<!doctype html>
<html>
<!doctype html>
<html>
</html>
</html>
supported
- [x] list syntax required (any unordered or ordered list supported)
- [ ] this is a complete item
- [ ] this is an incomplete item
Tables
1 md2 h1 Tables3 br4 p Colons can be used to align columns.5 br6 table7 thead8 th Tables9 th Are10 th Cool11 tbody12 tr13 td col 3 is14 td right-aligned15 td $160016 tr17 td col 2 is18 td centered19 td $1220 tr21 td zebra stripes22 td are neat23 td $124 p25 + There must be at least 3 dashes separating each header cell.26 + The outer pipes (|) are optional, and you don't need to make the27 + raw Markdown line up prettily. You can also use inline Markdown.28 br29 table30 thead31 th Markdown32 th Less33 th Pretty34 tbody35 tr36 td Still37 td `renders`38 td nicely39 tr40 td 141 td 242 td 343 table44 thead45 th First Header46 th Second Header47 tbody48 tr49 td Content Cell50 td Content Cell51 tr52 td Content Cell53 td Content Cell54 table55 thead56 th Command57 th Description58 tbody59 tr60 td git status61 td List all new or modified files62 tr63 td git diff64 td Show file differences that haven't been staged65 table66 thead67 th Command68 th Description69 tbody70 tr71 td `git status`72 td73 + List all74 em new or modified75 + files76 tr77 td `git diff`78 td79 + Show file differences that80 b haven't been81 + staged82 table83 thead84 th Left-aligned85 th Center-aligned86 th Right-aligned87 tbody88 tr89 td git status90 td git status91 td git status92 tr93 td git diff94 td git diff95 td git diff96 table97 thead98 th Name99 th Character100 tbody101 tr102 td Backtick103 td `104 tr105 td Pipe106 td |
# Tables
Colons can be used to align columns.
|Tables |Are |Cool |
|-------------|-------------|-----|
|col 3 is |right-aligned|$1600|
|col 2 is |centered |$12 |
|zebra stripes|are neat |$1 |
There must be at least 3 dashes separating each header cell.The outer pipes (|) are optional, and you don't need to make theraw Markdown line up prettily. You can also use inline Markdown.
|Markdown|Less |Pretty|
|--------|---------|------|
|Still |`renders`|nicely|
|1 |2 |3 |
|First Header|Second Header|
|------------|-------------|
|Content Cell|Content Cell |
|Content Cell|Content Cell |
|Command |Description |
|----------|----------------------------------------------|
|git status|List all new or modified files |
|git diff |Show file differences that haven't been staged|
|Command |Description|
|------------|-----------|
|`git status`|List all_new or modified_files|
|`git diff` |Show file differences that**haven't been**staged|
|Left-aligned|Center-aligned|Right-aligned|
|------------|--------------|-------------|
|git status |git status |git status |
|git diff |git diff |git diff |
|Name |Character|
|--------|---------|
|Backtick|` |
|Pipe |\| |
Code and Syntax Highlighting
1 md2 h1 Code and Syntax Highlighting3 br4 p5 + Inline6 codespan code7 + has8 codespan back-ticks around9 + it.
# Code and Syntax Highlighting
Inline`code`has`back-ticks around`it.
Code - c#
1 md2 code3 lang c#4 + using System.IO.Compression;5 +6 + #pragma warning disable 414, 30217 +8 + namespace MyApplication9 + {10 + [Obsolete("...")]11 + class Program : IInterface12 + {13 + public static List<int> JustDoIt(int count)14 + {15 + Console.WriteLine($"Hello {Name}!");16 + return new List<int>(new int[] { 1, 2, 3 })17 + }18 + }19 + }
```c#
using System.IO.Compression;
#pragma warning disable 414, 3021
namespace MyApplication
{
[Obsolete("...")]
class Program : IInterface
{
public static List<int> JustDoIt(int count)
{
Console.WriteLine($"Hello {Name}!");
return new List<int>(new int[] { 1, 2, 3 })
}
}
}
```
Code - css
1 md2 code3 lang css4 + @font-face {5 + font-family: Chunkfive; src: url('Chunkfive.otf');6 + }7 +8 + body, .usertext {9 + color: #F0F0F0; background: #600;10 + font-family: Chunkfive, sans;11 + }12 +13 + @import url(print.css);14 + @media print {15 + a[href^=http]::after {16 + content: attr(href)17 + }18 + }
```css
@font-face {
font-family: Chunkfive; src: url('Chunkfive.otf');
}
body, .usertext {
color: #F0F0F0; background: #600;
font-family: Chunkfive, sans;
}
@import url(print.css);
@media print {
a[href^=http]::after {
content: attr(href)
}
}
```
Code - javascript
1 md2 code3 lang javascript4 + function $initHighlight(block, cls) {5 + try {6 + if (cls.search(/\bno\-highlight\b/) != -1)7 + return process(block, true, 0x0F) +8 + ` class="${cls}"`;9 + } catch (e) {10 + /* handle exception */11 + }12 + for (var i = 0 / 2; i < classes.length; i++) {13 + if (checkCondition(classes[i]) === undefined)14 + console.log('undefined');15 + }16 + }17 +18 + export $initHighlight;
```javascript
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
console.log('undefined');
}
}
export $initHighlight;
```
Code - php
1 md2 code3 lang php4 + require_once 'Zend/Uri/Http.php';5 +6 + namespace Location\Web;7 +8 + interface Factory9 + {10 + static function _factory();11 + }12 +13 + abstract class URI extends BaseURI implements Factory14 + {15 + abstract function test();16 +17 + public static $st1 = 1;18 + const ME = "Yo";19 + var $list = NULL;20 + private $var;21 +22 + /**23 + * Returns a URI24 + *25 + * @return URI26 + */27 + static public function _factory($stats = array(), $uri = 'http')28 + {29 + echo __METHOD__;30 + $uri = explode(':', $uri, 0b10);31 + $schemeSpecific = isset($uri[1]) ? $uri[1] : '';32 + $desc = 'Multi33 + line description';34 +35 + // Security check36 + if (!ctype_alnum($scheme)) {37 + throw new Zend_Uri_Exception('Illegal scheme');38 + }39 +40 + $this->var = 0 - self::$st;41 + $this->list = list(Array("1"=> 2, 2=>self::ME, 3 => \Location\Web\URI::class));42 +43 + return [44 + 'uri' => $uri,45 + 'value' => null,46 + ];47 + }48 + }49 +50 + echo URI::ME . URI::$st1;51 +52 + __halt_compiler () ; datahere53 + datahere54 + datahere */55 + datahere
```php
require_once 'Zend/Uri/Http.php';
namespace Location\Web;
interface Factory
{
static function _factory();
}
abstract class URI extends BaseURI implements Factory
{
abstract function test();
public static $st1 = 1;
const ME = "Yo";
var $list = NULL;
private $var;
/**
* Returns a URI
*
* @return URI
*/
static public function _factory($stats = array(), $uri = 'http')
{
echo __METHOD__;
$uri = explode(':', $uri, 0b10);
$schemeSpecific = isset($uri[1]) ? $uri[1] : '';
$desc = 'Multi
line description';
// Security check
if (!ctype_alnum($scheme)) {
throw new Zend_Uri_Exception('Illegal scheme');
}
$this->var = 0 - self::$st;
$this->list = list(Array("1"=> 2, 2=>self::ME, 3 => \Location\Web\URI::class));
return [
'uri' => $uri,
'value' => null,
];
}
}
echo URI::ME . URI::$st1;
__halt_compiler () ; datahere
datahere
datahere */
datahere
```
Html
1 md2 h1 Inline HTML3 br4 html5 dl6 dt Definition list7 dd Is something people use sometimes.8 dt Markdown in HTML9 dd Does *not* work **very** well. Use HTML10 em tags11 + .
# Inline HTML
<!doctype html>
<html>
<dl>
<dt>Definition list</dt>
<dd>Is something people use sometimes.</dd>
<dt>Markdown in HTML</dt>
<dd>Does *not* work **very** well. Use HTML
<em>tags</em>
.</dd>
</dl>
</html>