This is an example reference-style link. This is another reference-style link. This is a third reference-style link. This is a fourth reference-style link.
a blockquote
with a 4 space indented line (not code)
sep
a blockquote
with some code after
> this is a pseudo blockquote
> inside a code block
foo
> this is another bq
inside code
This is a header.
- This is the first list item.
- This is the second list item.
Here's some example code:
return shell_exec("echo $input | $markdown_script");
This is a multi line blockquote test
With more than one line.
This is some HTML:
<h1>Heading</h1>
This is a normal paragraph:
This is a code block.
Bird
Magic
single asterisks
single underscores
double asterisks
double underscores
text with italic sentence in middle
text with bold sentence in middle
text with bold text that spans across multiple lines
underscored_word
doubleunderscore__word
asterix*word
doubleasterix**word
line with_underscored word
line with__doubleunderscored word
line with*asterixed word
line with**doubleasterixed word
some line_with_inner underscores
some linewithinner double underscores
some line*with*inner asterixs
some linewithinner double asterixs
another line with just _one underscore
another line with just __one double underscore
another line with just *one asterix
another line with just **one double asterix
a sentence with_underscore and another_underscore
a sentence withdoubleunderscore and anotherdoubleunderscore
a sentence with*asterix and another*asterix
a sentence withdoubleasterix and anotherdoubleasterix
escaped word_with_underscores
escaped word__with__double underscores
escaped word__with__single italic underscore
escaped word*with*asterixs
escaped word**with**asterixs
escaped word*with*bold asterixs
It happened in 1986. What a great season.
These should all be escaped:
\
`
*
_
{
}
[
]
(
)
#
+
-
.
!
function MyFunc(a) {
// ...
}
That is some code!
Define a function in javascript:
> function MyFunc(a) { > var s = '`'; > } > ``` > >> And some nested quote >> >> ```html >> <div>HTML!</div> >> ``` Define a function in javascript:
function MyFunc(a) {
var s = '`';
}
And some HTML
html
HTML!
code can go here this is rendered on a second line
# This is an H1 # This is an H1 ============= # This is an H1 This is an H2 ------------- ## This is an H2 ## ## This is an H2 ### This is an H3 ### ### This is an H3 #### This is an H4 ##### This is an H5 ###### This is an H6 * * * *** ***** - - - --------------------------------------- <!-- a comment --> <!-- a comment with *bogus* __markdown__ inside --> words <!-- a comment --> words <!-- comment --> words <!-- comment --> <!-- comment --> - list item 1 ```html <a href="www.google.com">google</a> <div> <div>some div</div> </div> ``` These HTML5 tags should pass through just fine. <section>hello</section> <header>head</header> <footer>footsies</footer> <nav>navigation</nav> <article>read me</article> <aside>ignore me</aside> <article>read me</article> <aside> ignore me </aside> the end <table class="test"> <tr> <td>Foo</td> </tr> <tr> <td>Bar</td> </tr> </table> <table class="test"> <thead> <tr> <td>Foo</td> </tr> </thead> <tr> <td>Bar</td> </tr> <tfoot> <tr> <td>Bar</td> </tr> </tfoot> </table> <audio class="podcastplayer" controls> <source src="foobar.mp3" type="audio/mp3" preload="none"></source> <source src="foobar.off" type="audio/ogg" preload="none"></source> </audio> <video src="foo.ogg"> <track kind="subtitles" src="foo.en.vtt" srclang="en" label="English"> <track kind="subtitles" src="foo.sv.vtt" srclang="sv" label="Svenska"> </video> <address>My street</address> <canvas id="canvas" width="300" height="300"> Sorry, your browser doesn't support the <canvas> element. </canvas> <figure> <img src="mypic.png" alt="An awesome picture"> <figcaption>Caption for the awesome picture</figcaption> </figure> <hgroup> <h1>Main title</h1> <h2>Secondary title</h2> </hgroup> <output name="result"></output>   ![Alt text][id] Search the web at [Google][] or [Daring Fireball][]. This is [an example](http://example.com/ "Title") inline link. [This link](http://example.net/) has no title attribute. Create a new `function`. Use the backtick in MySQL syntax ``SELECT `column` FROM whatever``. A single backtick in a code span: `` ` `` A backtick-delimited string in a code span: `` `foo` `` Please don't use any `<blink>` tags. `—` is the decimal-encoded equivalent of `—`. Hello.this\_is\_a\_variable and.this.is.another_one <style> p { line-height: 20px; } </style> An exciting sentence. > This is a multi line blockquote test > With more than one line. <a href="foo">some text</a> words <br> words # some title 1. list item 1 2. list item 2 > some text in a blockquote * another list item 1 * another list item 2 # some title 1. list item 1 2. list item 2
some code
and some other line of code
* another list item 1
* another list item 2
* A list item with a blockquote:
> This is a blockquote
> inside a list item.
* A list item with code:
alert('Hello world!');
<code>some **code** yeah</code>
some <code>inline **code** block</code>
<code>some inline **code**</code> block
yo dawg <code start="true">some <code start="false">code</code> inception</code>
<div>some **div** yeah</div>
1. This is a major bullet point.
That contains multiple paragraphs.
2. And another line
- This line spans
more than one line and is lazy
- Similar to this line
> This is a multi line blockquote test
>
> > And nesting!
>
> With more than one line.
1. Red
1. Green
1. Blue
8. Red
1. Green
3. Blue
1. Red
2. Green
3. Blue
- foo
- bazinga
- yeah
- bar
1. damn
2. so many paragraphs
- baz
code inception
some html code inside code html tags inside a fenced code block
```
foobar
blabla
foobar
some html code
See my About page for details.
some text
Hello, world!
important
important
really freakingstrong
Blue
Red
Green
Blue
Red
Green
Blue
There's an episode of Star Trek: The Next Generation
Test bold and italic
1: ./pic/pic1_50.png =100pxx20px
foo.bar
www.foobar
www.foobar.com
https://www.foobar.com/baz?bazinga=nhecos;
this is a sentence_with_mid underscores
this is a sentence with just_one underscore
this should be parsed as emphasis
this is doubleunderscoremid word
this has just__one double underscore
this should be parsed as bold
emphasis at end of sentence
emphasis at line start
multi line emphasis yeah it is yeah
a strikethrough word
this should~~not be parsed
strike-through text
otherthings
blabla
pointer *ptr *thing
something _else _bla
something __else __bla
a simple wrapped line
Your friend test* (@test) updated his/her description
## markdown doc
you can use markdown for card documentation
- foo
- bar
this is a link to www.github.com
this is a link to
this has simple linebreaks
testing
some
code
paragraphed list
this belongs to the first list item
This text also
simple text
simple text
some item
another paragraph
And now
paragraph sublist
and even
another one
foo
foo烫 bar
foo bar
Nom : aaaa Nom : aaa
Just an example info@example.com ok?
#Given
#When
#Then
http://en.wikipedia.org/wiki/Tourism_in_Germany
this email foobar@example.com should not be encoded
this is some text
function thisThing() {
echo "some weird formatted code!";
}
some other text
...
url http://www.google.com? foo
url (http://www.google.com) bazinga
hello @tivie how are you?
this email foo@gmail.com is not parsed
this \@mentions is not parsed also
#header
Two foo
bar bazinga
nhecos
Three
foo
bar
foo | bar | |
---|---|---|
100 | blabla | aaa |
|key|value| |--|--| |My Key|My Value|
First Header | Second Header |
---|---|
Row 1 Cell 1 | Row 1 Cell 2 |
Row 2 Cell 1 | Row 2 Cell 2 |
First Header | Second Header |
---|---|
Row 1 Cell 1 | Row 1 Cell 2 |
Row 2 Cell 1 | Row 2 Cell 2 |
First Header | Second Header |
---|---|
Row 1 Cell 1 | Row 1 Cell 2 |
Row 2 Cell 1 | Row 2 Cell 2 |
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | C |
Content Cell | Content Cell | C |
| First Header | Second Header | Third Header | Fourth Header | | :------------ |: ----------- :| ------------ :| ------------- | | Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 | | Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 | | Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 | | Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 | | Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |
First Header | Second Header | Third Header | Fourth Header |
---|---|---|---|
Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |
Left-Aligned | Center-Aligned | Right-Aligned |
---|---|---|
col 3 is | some wordy paragraph | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
header1 | header2 | header3 |
---|---|---|
Value1 | Value2 | Value3 |
headerA | headerB | headerC |
---|---|---|
ValueA | ValueB | ValueC |
some text
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| **col 3 is** | right-aligned | $1600 |
| col 2 is | *centered* | $12 |
| zebra stripes | ~~are neat~~ | $1 |
Status | AGENT1 | AGENT2 | AGENT3 | AGENT4 | AGENT5 | AGENT6 | AGENT7 | AGENT8 | AGENT9 | TOTAL | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | AGENT ERROR | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | APPROVED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| First Header | Second Header | | ============= | ============= | | Row 1 Cell 1 | Row 1 Cell 2 | | Row 2 Cell 1 | Row 2 Cell 2 |
First Header | Second Header |
---|---|
bold | ![]() |
italic | link |
some code |
|
normal |
First Header | Second Header |
---|---|
Row 1 Cell 1 | Row 1 Cell 2 |
Row 2 Cell 1 | Row 2 Cell 2 |
Phasellus ac porttitor quam. Integer cursus accumsan mauris nec interdum. Etiam iaculis urna vitae risus facilisis faucibus eu quis risus. Sed aliquet rutrum dictum. Vivamus pulvinar malesuada ultricies. Pellentesque in commodo nibh. Maecenas justo erat, sodales vel bibendum a, dignissim in orci. Duis blandit ornare mi non facilisis. Aliquam rutrum fringilla lacus in semper. Sed vel pretium lorem.
First Header | Second Header |
---|
| First Header | Second Header |
https://ghost.org
The quick brown fox[^1] jumped over the lazy dog[^2].
[^1]: Foxes are red
[^2]: Dogs are usually not red
The quick brown fox[^1] jumped over the lazy dog[^2].
```language-javascript
[...]
```
Combined with Prism.js in the Ghost theme:
// # Notifications API
// RESTful API for creating notifications
var Promise = require('bluebird'),
_ = require('lodash'),
canThis = require('../permissions').canThis,
errors = require('../errors'),
utils = require('./utils'),
// Holds the persistent notifications
notificationsStore = [],
// Holds the last used id
notificationCounter = 0,
notifications;
foo_bar_baz foo_bar_baz_bar_foo _foo_bar bazbar baz_foo
_baz_barfoo
baz_bar_foo
_baz_bar_foo_
baz bar foo _baz_barfoo foo bar baz and foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar bazbar baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar bazbar baz_foo
blockquote foo_bar_baz foo_bar_baz_bar_foo _foo_bar bazbar baz_foo
http://en.wikipedia.org/wiki/Tourism_in_Germany
Another example of a link
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar bazbar baz_foo
http://myurl.com/foo_bar_baz_bar_foo
http://myurl.com/foo_bar_baz_bar_foo
italics.
italics .
escaped word_with_underscores
escaped word__with__double underscores
escaped word__with__single italic underscore
escaped word*with*asterixs
escaped word**with**asterixs
escaped word*with*bold asterixs
2015-10-04
Hi, I am a thing
$ git clone thing.git
dfgdfg
I am another thing!
$ git clone other-thing.git
foobar
a blockquote
followed by an heading
Test pre in a list
& <
& <
& <
& <
foo
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
bar
this is a long paragraph
this is another long paragraph
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
```
No language indicated, so no syntax highlighting.
But let's throw in a tag.
```
```python
var s;
```
this is a long paragraph
```javascript
var s;
```
foo
foo
foo
foo
foo
foo
list item 1
<parent>
<child>child1</child>
<!-- This is a comment -->
<child>child2</child>
<child>some text <!-- a comment --></child>
</parent>
list item 2
<parent>
<child>child1</child>
<!-- This is a comment -->
<child>child2</child>
<child>some text <!-- a comment --></child>
</parent>
foo
foo
foo
foo
foo
foo
foo
foo
one
one long paragraph of text
two
foo
one long paragraph of text
one
two
foo
foo
foo
foo
foo
foo
foo
uli one
a
a
a
fooo
bbbbb
plain text link http://test.com/this_has/one.html with underscores
legit·word_with·1·underscore
a word_with_2underscores (gets em)
This is a first paragraph, on multiple lines.
This is a second paragraph. There are spaces in between the two.
This is a first paragraph, on multiple lines.
This is a second paragraph which has multiple lines too.
A first paragraph.
A second paragraph after 3 CR (carriage return).
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line.
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line.
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
A new long long long long long long long long long long long long long long long long paragraph on 1 line.
An ampersand & in the text flow is escaped as an html entity.
There is an ampersand in the URI.
This is *an asterisk which should stay as is.
This is * an asterisk which should stay as is.
\ backslash ` backtick * asterisk _ underscore {} curly braces [] square brackets () parentheses # hash mark + plus sign - minus sign (hyphen) . dot ! exclamation mark
heading level 1
paragraph
A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.
and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote.
A blockquote on multiple lines like this.
A blockquote on multiple lines like this.
A blockquote on multiple lines like this.
But it has two paragraphs.
A blockquote on multiple lines like this
This is the first level of quoting.
This is nested blockquote.
Back to the first level.
This is the first level of quoting.
This is nested blockquote.
This is the first level of quoting.
This is nested blockquote. Back to the first level.
This is the first level of quoting.
This is nested blockquote.
10 PRINT HELLO INFINITE
20 GOTO 10
10 PRINT < > &
20 GOTO 10
10 PRINT HELLO INFINITE
20 GOTO 10
as*te*risks
single asterisks
single underscores
HTML entities are written using ampersand notation: ©
These lines all end with end of line (EOL) sequences.
Seriously, they really do.
If you don't believe me: HEX EDIT!
These lines all end with end of line (EOL) sequences.
Seriously, they really do.
If you don't believe me: HEX EDIT!
These lines all end with end of line (EOL) sequences.
Seriously, they really do.
If you don't believe me: HEX EDIT!
# This is an H1
A new paragraph.
We love <code> and &
for everything
We love `code` for everything
We love `code` for everything
A first sentence
and a line break.
A first sentence
and a line break.
This is an automatic link http://www.w3.org/
a list containing a blockquote
this the blockquote in the list
a list containing a block of code
10 PRINT HELLO INFINITE
20 GOTO 10
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
1. ordered list escape
1
2
list item 1
list item 2
list item 3
list item 1
list item 2
list item 3
This is a paragraph on multiple lines with hard return.
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
This is a paragraph with a trailing and leading space.
This is a paragraph with 1 trailing tab.
This is a paragraph with 2 leading spaces.
This is a paragraph with 3 leading spaces.
This is a paragraph with 1 leading space.
This is a paragraph with a trailing space.
asterisks
double asterisks
double underscores
list item 3
list item 1
list item 2
list item 3
list item 3
list item 1
list item 2
list item 3
list item 1
list item 2
list item 3
list item 1
list item 2
list item 3
list item in paragraph
another list item in paragraph
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a list.
and yet another long long long long long long long long long long long long long long long long long long long long long long line.
This is a list item with the content on multiline and indented.
And this another list item with the same principle.