UNPKG

30.5 kBMarkdownView Raw
1
2This is [an example][id] reference-style link.
3This is [another] [foo] reference-style link.
4This is [a third][bar] reference-style link.
5This is [a fourth][4] reference-style link.
6
7 [id]: http://example.com/ "Optional Title Here"
8 [foo]: http://example.com/ (Optional Title Here)
9 [bar]: http://example.com/ (Optional Title Here)
10 [4]: <http://example.com/>
11 "Optional Title Here"
12
13
14
15<http://example.com/>
16
17
18> a blockquote
19 with a 4 space indented line (not code)
20
21sep
22
23> a blockquote
24
25 with some code after
26
27
28 > this is a pseudo blockquote
29 > inside a code block
30
31foo
32
33 > this is another bq
34 inside code
35
36
37> ## This is a header.
38>
39> 1. This is the first list item.
40> 2. This is the second list item.
41>
42> Here's some example code:
43>
44> return shell_exec("echo $input | $markdown_script");
45
46
47
48 > This is a multi line blockquote test
49 >
50 > With more than one line.
51
52
53
54This is some HTML:
55
56 <h1>Heading</h1>
57
58
59
60This is a normal paragraph:
61
62 This is a code block.
63
64
65
66 * Bird
67
68 * Magic
69
70
71*single asterisks*
72
73_single underscores_
74
75**double asterisks**
76
77__double underscores__
78
79text *with italic sentence* in middle
80
81text __with bold sentence__ in middle
82
83text with __bold text that
84spans across multiple__ lines
85
86underscored_word
87
88doubleunderscore__word
89
90asterix*word
91
92doubleasterix**word
93
94line with_underscored word
95
96line with__doubleunderscored word
97
98line with*asterixed word
99
100line with**doubleasterixed word
101
102some line_with_inner underscores
103
104some line__with__inner double underscores
105
106some line*with*inner asterixs
107
108some line**with**inner double asterixs
109
110another line with just _one underscore
111
112another line with just __one double underscore
113
114another line with just *one asterix
115
116another line with just **one double asterix
117
118a sentence with_underscore and another_underscore
119
120a sentence with__doubleunderscore and another__doubleunderscore
121
122a sentence with*asterix and another*asterix
123
124a sentence with**doubleasterix and another**doubleasterix
125
126escaped word\_with\_underscores
127
128escaped word\_\_with\_\_double underscores
129
130escaped word_\_with\__single italic underscore
131
132escaped word\*with*asterixs
133
134escaped word\*\*with\*\*asterixs
135
136escaped word**\*with\***bold asterixs
137
138
139It happened in 1986\. What a great season.
140
141
142
143These should all be escaped:
144
145\\
146
147\`
148
149\*
150
151\_
152
153\{
154
155\}
156
157\[
158
159\]
160
161\(
162
163\)
164
165\#
166
167\+
168
169\-
170
171\.
172
173\!
174
175
176```
177function MyFunc(a) {
178 // ...
179}
180```
181
182That is some code!
183
184
185> Define a function in javascript:
186>
187> ```
188> function MyFunc(a) {
189> var s = '`';
190> }
191> ```
192>
193>> And some nested quote
194>>
195>> ```html
196>> <div>HTML!</div>
197>> ```
198
199
200
201Define a function in javascript:
202
203```
204function MyFunc(a) {
205 var s = '`';
206}
207```
208
209And some HTML
210
211```html
212<div>HTML!</div>
213```
214
215
216```
217code can go here
218this is rendered on a second line
219```
220
221
222# This is an H1 #
223
224
225This is an H1
226=============
227
228
229# This is an H1
230
231
232This is an H2
233-------------
234
235
236## This is an H2 ##
237
238
239## This is an H2
240
241
242### This is an H3 ###
243
244
245### This is an H3
246
247
248#### This is an H4
249
250
251##### This is an H5
252
253
254###### This is an H6
255
256
257
258* * *
259
260***
261
262*****
263
264- - -
265
266---------------------------------------
267
268
269<!-- a comment -->
270
271<!-- a comment with *bogus* __markdown__ inside -->
272
273words <!-- a comment --> words
274
275<!-- comment --> words
276
277 <!-- comment -->
278
279 <!-- comment -->
280
281
282 - list item 1
283
284 ```html
285 <a href="www.google.com">google</a>
286 <div>
287 <div>some div</div>
288 </div>
289 ```
290
291
292
293These HTML5 tags should pass through just fine.
294
295<section>hello</section>
296<header>head</header>
297<footer>footsies</footer>
298<nav>navigation</nav>
299<article>read me</article>
300<aside>ignore me</aside>
301<article>read
302me</article>
303<aside>
304ignore me
305</aside>
306
307the end
308
309<table class="test">
310 <tr>
311 <td>Foo</td>
312 </tr>
313 <tr>
314 <td>Bar</td>
315 </tr>
316</table>
317
318<table class="test">
319 <thead>
320 <tr>
321 <td>Foo</td>
322 </tr>
323 </thead>
324 <tr>
325 <td>Bar</td>
326 </tr>
327 <tfoot>
328 <tr>
329 <td>Bar</td>
330 </tr>
331 </tfoot>
332</table>
333
334<audio class="podcastplayer" controls>
335 <source src="foobar.mp3" type="audio/mp3" preload="none"></source>
336 <source src="foobar.off" type="audio/ogg" preload="none"></source>
337</audio>
338
339<video src="foo.ogg">
340 <track kind="subtitles" src="foo.en.vtt" srclang="en" label="English">
341 <track kind="subtitles" src="foo.sv.vtt" srclang="sv" label="Svenska">
342</video>
343
344<address>My street</address>
345
346<canvas id="canvas" width="300" height="300">
347 Sorry, your browser doesn't support the &lt;canvas&gt; element.
348</canvas>
349
350<figure>
351 <img src="mypic.png" alt="An awesome picture">
352 <figcaption>Caption for the awesome picture</figcaption>
353</figure>
354
355<hgroup>
356 <h1>Main title</h1>
357 <h2>Secondary title</h2>
358</hgroup>
359
360<output name="result"></output>
361
362
363
364![Alt text](/path/to/img.jpg)
365
366![Alt text](/path/to/img.jpg "Optional title")
367
368![Alt text][id]
369
370 [id]: url/to/image "Optional title attribute"
371
372
373
374Search the web at [Google][] or [Daring Fireball][].
375
376 [Google]: http://google.com/
377 [Daring Fireball]: http://daringfireball.net/
378
379
380
381This is [an example](http://example.com/ "Title") inline link.
382
383[This link](http://example.net/) has no title attribute.
384
385
386
387Create a new `function`.
388
389Use the backtick in MySQL syntax ``SELECT `column` FROM whatever``.
390
391A single backtick in a code span: `` ` ``
392
393A backtick-delimited string in a code span: `` `foo` ``
394
395Please don't use any `<blink>` tags.
396
397`&#8212;` is the decimal-encoded equivalent of `&mdash;`.
398
399
400
401Hello.this\_is\_a\_variable
402and.this.is.another_one
403
404
405
406<style>
407 p { line-height: 20px; }
408</style>
409
410An exciting sentence.
411
412
413
414 > This is a multi line blockquote test
415
416 > With more than one line.
417
418
419<a href="foo">some text</a> words
420
421<br> words
422
423
424# some title
425
4261. list item 1
4272. list item 2
428
429> some text in a blockquote
430
431* another list item 1
432* another list item 2
433
434
435# some title
436
4371. list item 1
4382. list item 2
439
440```
441some code
442
443and some other line of code
444```
445
446* another list item 1
447* another list item 2
448
449
450* A list item with a blockquote:
451
452 > This is a blockquote
453 > inside a list item.
454
455
456* A list item with code:
457
458 alert('Hello world!');
459
460
461<code>some **code** yeah</code>
462
463some <code>inline **code** block</code>
464
465<code>some inline **code**</code> block
466
467yo dawg <code start="true">some <code start="false">code</code> inception</code>
468
469<div>some **div** yeah</div>
470
471
472
473 1. This is a major bullet point.
474
475 That contains multiple paragraphs.
476
477 2. And another line
478
479
480
481 - This line spans
482 more than one line and is lazy
483 - Similar to this line
484
485
486
487 > This is a multi line blockquote test
488 >
489 > > And nesting!
490 >
491 > With more than one line.
492
493
494
495 1. Red
496 1. Green
497 1. Blue
498
499
500
501 8. Red
502 1. Green
503 3. Blue
504
505
506
507 1. Red
508 2. Green
509 3. Blue
510
511
512 - foo
513
514 - bazinga
515
516 - yeah
517
518 - bar
519
520 1. damn
521
522 2. so many paragraphs
523
524 - baz
525
526
527code inception
528
529```
530<pre><code>
531<div>some html code inside code html tags inside a fenced code block</div>
532</code></pre>
533```
534
535
536<pre>
537<code>
538foobar
539</code>
540</pre>
541
542blabla
543
544<pre nhaca="zulu"><code bla="bla">
545foobar
546</code>
547</pre>
548
549<pre><code>
550<div>some html code</div>
551</code></pre>
552
553
554
555See my [About](/about/) page for details.
556
557
558# Same Title
559
560some text
561
562# Same Title
563
564
565
566Hello, world!
567
568
569
570**important**
571
572__important__
573
574really **freaking**strong
575
576
577
578 * Red
579 * Green
580 * Blue
581
582
583
584 - Red
585 - Green
586 - Blue
587
588
589
590 + Red
591 + Green
592 + Blue
593
594
595There's an [episode](http://en.memory-alpha.org/wiki/Darmok_(episode)) of Star Trek: The Next Generation
596
597
598# some title
599
600Test **bold** and _italic_
601
602
603![my image](./pic/pic1_50.png =100pxx20px)
604
605![my image2][1]
606
607[1]: ./pic/pic1_50.png =100pxx20px
608
609
610foo.bar
611
612www.foobar
613
614www.foobar.com
615
616http://foobar.com
617
618https://www.foobar.com/baz?bazinga=nhecos;
619
620<a href="http://www.google.com/">http://www.google.com</a>
621
622
623this is a sentence_with_mid underscores
624
625this is a sentence with just_one underscore
626
627this _should be parsed_ as emphasis
628
629this is double__underscore__mid word
630
631this has just__one double underscore
632
633this __should be parsed__ as bold
634
635emphasis at _end of sentence_
636
637_emphasis at_ line start
638
639multi _line emphasis
640yeah it is_ yeah
641
642
643a ~~strikethrough~~ word
644
645this should~~not be parsed
646
647~~strike-through text~~
648
649
650# my things
651
652 - foo
653 - [] bar
654 - [ ] baz
655 - [x] bazinga
656
657otherthings
658
659
660# some markdown
661
662blabla
663<div>This is **not parsed**</div>
664<div markdown="1">This is **parsed**</div>
665<div>This is **not parsed**</div>
666
667
668​pointer *ptr *thing
669
670something _else _bla
671
672something __else __bla
673
674
675http://website.com/img@x2.jpg
676
677http://website.com/img-x2.jpg
678
679http://website.com/img@x2
680
681http://website.com/img@.jpg
682
683
684a simple
685wrapped line
686
687
688Your friend ~~[**test\***](www.google.com)~~ (~~[*@test*](www.google.com)~~) updated his/her description
689
690
691 ## markdown doc
692
693 you can use markdown for card documentation
694 - foo
695 - bar
696
697
698this is a link to www.github.com
699
700this is a link to <www.google.com>
701
702
7031. One
7042. Two
705 - A
706 - B
7073. Three
708
709> this has
710> simple linebreaks
711
712 testing
713 some
714 code
715
716 1. paragraphed list
717
718 this belongs
719 to the first list item
720
721 2. This text
722 also
723
724simple
725text
726
727 - a list
728 item
729 - another
730 list item
731
732simple
733text
734
735 - some item
736
737 another
738 paragraph
739
740 - And
741 now
742
743 paragraph
744 sublist
745
746 - and
747 even
748
749 another
750 one
751
752 - foo
753
754
755
756foo烫
757bar
758
759foo
760bar
761
762
763# some header
764
765# some header with &+$,/:;=?@\"#{}|^~[]`\\*()%.!' chars
766
767# another header > with < chars
768
769
770**Nom :** aaaa
771**Nom :** aaa
772
773
774Just an example info@example.com ok?​
775
776
777#Given
778
779#When
780
781#Then
782
783foo
784===
785
786bar
787---
788
789
790http://en.wikipedia.org/wiki/Tourism_in_Germany
791
792
793this email <foobar@example.com> should not be encoded
794
795
796this is some text
797
798```php
799function thisThing() {
800 echo "some weird formatted code!";
801}
802```
803
804some other text
805
806
807* foo
808 * bar
809
810...
811
812* baz
813 1. bazinga
814
815
816url http://www.google.com.
817
818url http://www.google.com!
819
820url http://www.google.com? foo
821
822url (http://www.google.com) bazinga
823
824
825hello @tivie how are you?
826
827this email foo@gmail.com is not parsed
828
829this \@mentions is not parsed also
830
831
832# header
833
834#header
835
836
837 1. One
838 2. Two
839 foo
840
841 bar
842 bazinga
843
844
845
846
847 nhecos
848
849 3. Three
850
851 - foo
852
853 - bar
854
855
856| *foo* | **bar** | ~~baz~~ |
857|-------|---------|---------|
858| 100 | blabla | aaa |
859
860
861|key|value|
862|--|--|
863|My Key|My Value|
864
865
866| First Header | Second Header |
867| :------------ | :------------ |
868| Row 1 Cell 1 | Row 1 Cell 2 |
869| Row 2 Cell 1 | Row 2 Cell 2 |
870
871
872| First Header | Second Header |
873| ------------- | ------------- |
874| Row 1 Cell 1 | Row 1 Cell 2 |
875| Row 2 Cell 1 | Row 2 Cell 2 |
876
877
878| First Header | Second Header |
879| ------------- | ------------- |
880| Row 1 Cell 1 | Row 1 Cell 2 |
881| Row 2 Cell 1 | Row 2 Cell 2 |
882
883
884First Header | Second Header|Third Header
885------------- | -------------|---
886Content Cell | Content Cell|C
887Content Cell | Content Cell|C
888
889
890| First Header | Second Header | Third Header | Fourth Header |
891| :------------ |: ----------- :| ------------ :| ------------- |
892| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
893| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
894| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
895| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
896| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |
897
898
899| First Header | Second Header | Third Header | Fourth Header |
900| ------------- | ------------- | ------------ | ------------- |
901| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
902| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
903| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
904| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
905| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |
906
907
908| Left-Aligned | Center-Aligned | Right-Aligned |
909| :------------ |:--------------------:| -------------:|
910| col 3 is | some wordy paragraph | $1600 |
911| col 2 is | centered | $12 |
912| zebra stripes | are neat | $1 |
913
914
915Table Test
916============
917
918section 1
919------------
920
921|header1 |header2 |header3|
922|-----------|-----------|---------|
923|Value1 |Value2 |Value3 |
924
925
926section 2
927-----------
928
929|headerA |headerB |headerC|
930|-----------|-----------|---------|
931|ValueA |ValueB |ValueC |
932
933
934some text
935
936
937 | Tables | Are | Cool |
938 | ------------- |:-------------:| -----:|
939 | **col 3 is** | right-aligned | $1600 |
940 | col 2 is | *centered* | $12 |
941 | zebra stripes | ~~are neat~~ | $1 |
942
943
944
945### Stats
946
947
948Status | AGENT1 | AGENT2 | AGENT3 | AGENT4 | AGENT5 | AGENT6 | AGENT7 | AGENT8 | AGENT9 | TOTAL |
949--- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
950AGENT ERROR | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
951APPROVED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
952
953
954| First Header | Second Header |
955| ============= | ============= |
956| Row 1 Cell 1 | Row 1 Cell 2 |
957| Row 2 Cell 1 | Row 2 Cell 2 |
958
959
960| First Header | Second Header |
961| ------------- | ----------------- |
962| **bold** | ![img](foo.jpg) |
963| _italic_ | [link](bla.html) |
964| `some code` | [google][1] |
965| <www.foo.com> | normal |
966
967
968 [1]: www.google.com
969
970
971Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisi est,
972ullamcorper euismod iaculis sed, tristique at neque. Nullam metus risus,
973malesuada vitae imperdiet ac, tincidunt eget lacus. Proin ullamcorper
974vulputate dictum. Vestibulum consequat ultricies nibh, sed tempus nisl mattis a.
975
976| First Header | Second Header |
977| ------------- | ------------- |
978| Row 1 Cell 1 | Row 1 Cell 2 |
979| Row 2 Cell 1 | Row 2 Cell 2 |
980
981Phasellus ac porttitor quam. Integer cursus accumsan mauris nec interdum.
982Etiam iaculis urna vitae risus facilisis faucibus eu quis risus. Sed aliquet
983rutrum dictum. Vivamus pulvinar malesuada ultricies. Pellentesque in commodo
984nibh. Maecenas justo erat, sodales vel bibendum a, dignissim in orci. Duis
985blandit ornare mi non facilisis. Aliquam rutrum fringilla lacus in semper.
986Sed vel pretium lorem.
987
988
989| First Header | Second Header |
990| ------------- | ------------- |
991
992
993| First Header | Second Header |
994
995
996### Automatic Links
997
998```
999https://ghost.org
1000```
1001
1002https://ghost.org
1003
1004### Markdown Footnotes
1005
1006```
1007The quick brown fox[^1] jumped over the lazy dog[^2].
1008
1009[^1]: Foxes are red
1010[^2]: Dogs are usually not red
1011```
1012
1013The quick brown fox[^1] jumped over the lazy dog[^2].
1014
1015
1016### Syntax Highlighting
1017
1018 ```language-javascript
1019 [...]
1020 ```
1021
1022Combined with [Prism.js](http://prismjs.com/) in the Ghost theme:
1023
1024```language-javascript
1025// # Notifications API
1026// RESTful API for creating notifications
1027var Promise = require('bluebird'),
1028 _ = require('lodash'),
1029 canThis = require('../permissions').canThis,
1030 errors = require('../errors'),
1031 utils = require('./utils'),
1032
1033 // Holds the persistent notifications
1034 notificationsStore = [],
1035 // Holds the last used id
1036 notificationCounter = 0,
1037 notifications;
1038```
1039
1040
1041foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1042
1043_baz_bar_foo_
1044
1045__baz_bar_foo__
1046
1047___baz_bar_foo___
1048
1049baz bar foo _baz_bar_foo foo bar baz_ and foo
1050
1051foo\_bar\_baz foo\_bar\_baz\_bar\_foo \_foo\_bar baz\_bar\_ baz\_foo
1052
1053`foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo`
1054
1055
1056 foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1057
1058
1059```html
1060foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1061```
1062
1063<pre>foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo</pre>
1064
1065<pre><code class="language-html">foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo</code></pre>
1066
1067<pre class="lang-html"><code class="language-html">foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo</code></pre>
1068
1069<script>
1070var strike = "foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo";
1071var foo_bar_baz_bar_foo = "foo_bar_";
1072</script>
1073
1074[foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo](http://myurl.com/foo_bar_baz_bar_foo)
1075
1076<a href="http://myurl.com/foo_bar_baz_bar_foo" title="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</a>
1077
1078<img src="http://myurl.com/foo_bar_baz_bar_foo" alt="foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo">
1079
1080foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1081-----
1082
1083### foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1084
10851. foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
10862. foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1087
1088> blockquote foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1089
1090* foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1091* foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
1092
1093-------
1094
1095http://en.wikipedia.org/wiki/Tourism_in_Germany
1096
1097[an example] [wiki]
1098
1099Another [example][wiki] of a link
1100
1101[wiki]: http://en.wikipedia.org/wiki/Tourism_in_Germany
1102
1103<p><code>foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo</code></p>
1104
1105<!-- These two cases still have bad <ems> because showdown handles them incorrectly -->
1106
1107<code>foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo</code>
1108
1109![foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo](http://myurl.com/foo_bar_baz_bar_foo)
1110
1111http://myurl.com/foo_bar_baz_bar_foo
1112
1113<http://myurl.com/foo_bar_baz_bar_foo>
1114
1115_italics_.
1116
1117_italics_ .
1118
1119
1120escaped word\_with\_underscores
1121
1122escaped word\_\_with\_\_double underscores
1123
1124escaped word_\_with\__single italic underscore
1125
1126escaped word\*with*asterixs
1127
1128escaped word\*\*with\*\*asterixs
1129
1130escaped word**\*with\***bold asterixs
1131
1132
1133* Item 1
1134* Item 2
1135
11361. Item 1
11372. Item 2
1138
1139- Item 1
1140- Item 2
1141
1142
11432015-10-04
1144
1145
11461. Hi, I am a thing
1147
1148 ```sh
1149
1150 $ git clone thing.git
1151
1152 dfgdfg
1153 ```
1154
11551. I am another thing!
1156
1157 ```sh
1158
1159 $ git clone other-thing.git
1160
1161 foobar
1162 ```
1163
1164
1165> a blockquote
1166# followed by an heading
1167
1168
1169Test pre in a list
1170
1171- & <
1172- `& <`
1173 - & <
1174 - `& <`
1175 - & <
1176 - `& <`
1177 - & <
1178 - `& <`
1179
1180
1181Title 1
1182-------
1183
1184<div></div>
1185
1186
1187# Title 2
1188
1189
1190<div>
1191</div>
1192
1193
1194<pre lang="no-highlight"><code>
1195foo
1196
1197```javascript
1198var s = "JavaScript syntax highlighting";
1199alert(s);
1200```
1201
1202bar
1203</code></pre>
1204
1205this is a long paragraph
1206
1207this is another long paragraph
1208
1209<pre lang="no-highlight"><code>```javascript
1210var s = "JavaScript syntax highlighting";
1211alert(s);
1212```
1213
1214```python
1215s = "Python syntax highlighting"
1216print s
1217```
1218</code></pre>
1219
1220
1221<pre lang="no-highlight"><code>
1222```javascript
1223var s = "JavaScript syntax highlighting";
1224alert(s);
1225```
1226
1227```python
1228s = "Python syntax highlighting"
1229print s
1230```
1231
1232```
1233No language indicated, so no syntax highlighting.
1234But let's throw in a <b>tag</b>.
1235```
1236</code></pre>
1237
1238
1239<pre lang="no-highlight"><code>```python
1240var s;
1241```
1242</code></pre>
1243
1244this is a long paragraph
1245
1246<pre lang="no-highlight"><code>
1247```javascript
1248var s;
1249```
1250</code></pre>
1251
1252
1253![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo]
1254
1255foo
1256
1257[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo]
1258
1259foo
1260
1261![sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
1262
1263foo
1264
1265[sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
1266
1267foo
1268
1269[![sd-ref][sd-logo]](http://www.google.com/)
1270
1271[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
1272
1273
1274![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo]
1275
1276foo
1277
1278![sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
1279
1280[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
1281
1282
1283[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo]
1284
1285foo
1286
1287[sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
1288
1289[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
1290
1291
1292* list item 1
1293
1294 ```
1295 <parent>
1296 <child>child1</child>
1297 <!-- This is a comment -->
1298 <child>child2</child>
1299 <child>some text <!-- a comment --></child>
1300 </parent>
1301 ```
1302
1303* list item 2
1304
1305```
1306<parent>
1307<child>child1</child>
1308<!-- This is a comment -->
1309<child>child2</child>
1310<child>some text <!-- a comment --></child>
1311</parent>
1312```
1313
1314
1315 * one
1316 1. two
1317
1318foo
1319
1320 * one
1321 1. two
1322
1323foo
1324
1325 * one
1326 1. two
1327
1328foo
1329
1330 * one
1331 1. two
1332
1333foo
1334
1335 * one
1336 * two
1337
1338foo
1339
1340 * one
1341 * two
1342
1343foo
1344
1345 * one
1346 * two
1347
1348foo
1349
1350 * one
1351* two
1352
1353foo
1354
1355 * one
1356 * two
1357
1358
1359 * one long paragraph of
1360text
1361 1. two
1362
1363foo
1364
1365 * one long paragraph of
1366text
1367 1. two
1368
1369
1370* one
13711. two
1372
1373foo
1374
1375* one
1376 1. two
1377
1378foo
1379
1380* one
1381 1. two
1382
1383foo
1384
1385* one
1386 1. two
1387
1388foo
1389
1390* uli one
1391* uli two
1392
1393foo
1394
1395* uli one
1396 * uli two
1397
1398foo
1399
1400* uli one
1401 * uli two
1402
1403foo
1404
1405* uli one
1406 * uli two
1407
1408
1409- - - a
1410
1411a
1412
1413+ - * - - + a
1414
1415a
1416
14171. 2. 3. 4. 5.
1418
1419a
1420
14211. 2. 3. 4. 5. a
1422
1423
1424- - - a
1425
1426+ - * - - + a
1427
14281. 2. 3. 4. 5.
1429
14301. 2. 3. 4. 5. a
1431
1432
1433- -
1434a
1435
1436
1437fooo
1438
1439
1440- - - aaaaa
1441
1442 bbbbb
1443
1444
1445- - - - -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd
1446
1447
1448 ---
1449
1450 - - -
1451
1452
1453plain text link http://test.com/this_has/one.html with underscores
1454
1455legit·word_with·1·underscore
1456
1457a word_with_2underscores (gets em)
1458
1459
1460this is a underscore_test ![my cat](http://myserver.com/my_kitty.jpg)
1461
1462another ![my cat](http://myserver.com/my_kitty.jpg) underscore_test bla
1463
1464
1465This is a first paragraph,
1466on multiple lines.
1467
1468This is a second paragraph.
1469There are spaces in between the two.
1470
1471
1472This is a first paragraph,
1473on multiple lines.
1474
1475This is a second paragraph
1476which has multiple lines too.
1477
1478
1479A first paragraph.
1480
1481
1482
1483A second paragraph after 3 CR (carriage return).
1484
1485
1486This 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.
1487
1488A 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.
1489
1490
1491This 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.
1492
14931 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.
1494
1495
1496This 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.
1497
1498A new long long long long long long long long long long long long long long long long paragraph on 1 line.
1499
1500
1501An ampersand & in the text flow is escaped as an html entity.
1502
1503
1504There is an [ampersand](http://validator.w3.org/check?uri=http://www.w3.org/&verbose=1) in the URI.
1505
1506
1507This is \*an asterisk which should stay as is.
1508
1509
1510This is * an asterisk which should stay as is.
1511
1512
1513\\ backslash
1514\` backtick
1515\* asterisk
1516\_ underscore
1517\{\} curly braces
1518\[\] square brackets
1519\(\) parentheses
1520\# hash mark
1521\+ plus sign
1522\- minus sign (hyphen)
1523\. dot
1524\! exclamation mark
1525
1526
1527> # heading level 1
1528>
1529> paragraph
1530
1531
1532>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.
1533
1534>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.
1535
1536
1537>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.
1538
1539
1540> A blockquote
1541> on multiple lines
1542> like this.
1543
1544
1545>A blockquote
1546>on multiple lines
1547>like this.
1548
1549
1550>A blockquote
1551>on multiple lines
1552>like this.
1553>
1554>But it has
1555>two paragraphs.
1556
1557
1558>A blockquote
1559>on multiple lines
1560>like this
1561
1562
1563> This is the first level of quoting.
1564>
1565> > This is nested blockquote.
1566>
1567> Back to the first level.
1568
1569
1570> This is the first level of quoting.
1571>
1572> > This is nested blockquote.
1573
1574
1575> This is the first level of quoting.
1576> > This is nested blockquote.
1577> Back to the first level.
1578
1579
1580> This is the first level of quoting.
1581> > This is nested blockquote.
1582
1583
1584 10 PRINT HELLO INFINITE
1585 20 GOTO 10
1586
1587
1588 10 PRINT < > &
1589 20 GOTO 10
1590
1591
1592 10 PRINT HELLO INFINITE
1593 20 GOTO 10
1594
1595
1596as*te*risks
1597
1598
1599*single asterisks*
1600
1601
1602_single underscores_
1603
1604
1605HTML entities are written using ampersand notation: &copy;
1606
1607
1608These lines all end with end of line (EOL) sequences.
1609
1610Seriously, they really do.
1611
1612If you don't believe me: HEX EDIT!
1613
1614
1615
1616These lines all end with end of line (EOL) sequences. Seriously, they really do. If you don't believe me: HEX EDIT!
1617
1618These lines all end with end of line (EOL) sequences.
1619
1620Seriously, they really do.
1621
1622If you don't believe me: HEX EDIT!
1623
1624
1625
1626This is an H1
1627=============
1628
1629
1630# This is an H1 #
1631
1632
1633 # This is an H1
1634
1635
1636# this is an h1 with two trailing spaces
1637A new paragraph.
1638
1639
1640# This is an H1
1641
1642
1643This is an H2
1644-------------
1645
1646
1647## This is an H2 ##
1648
1649
1650## This is an H2
1651
1652
1653### This is an H3 ###
1654
1655
1656### This is an H3
1657
1658
1659#### This is an H4 ####
1660
1661
1662#### This is an H4
1663
1664
1665##### This is an H5 #####
1666
1667
1668##### This is an H5
1669
1670
1671###### This is an H6 ######
1672
1673
1674###### This is an H6
1675
1676
1677- - -
1678
1679
1680---
1681
1682
1683***
1684
1685
1686___
1687
1688
1689-------
1690
1691
1692![HTML5][h5]
1693
1694[h5]: http://www.w3.org/html/logo/img/mark-word-icon.png "HTML5 for everyone"
1695
1696
1697![HTML5][h5]
1698
1699[h5]: http://www.w3.org/html/logo/img/mark-word-icon.png
1700
1701
1702![HTML5](http://www.w3.org/html/logo/img/mark-word-icon.png "HTML5 logo for everyone")
1703
1704
1705![HTML5](http://www.w3.org/html/logo/img/mark-word-icon.png)
1706
1707
1708We love `<code> and &` for everything
1709
1710
1711``We love `code` for everything``
1712
1713
1714``We love `code` for everything``
1715
1716
1717A first sentence
1718and a line break.
1719
1720
1721A first sentence
1722and a line break.
1723
1724
1725This is an automatic link <http://www.w3.org/>
1726
1727
1728[W3C](http://www.w3.org/ "Discover w3c")
1729
1730
1731[W3C](http://www.w3.org/)
1732
1733
1734[World Wide Web Consortium][w3c]
1735
1736[w3c]: <http://www.w3.org/>
1737
1738
1739[World Wide Web Consortium][]
1740
1741[World Wide Web Consortium]: http://www.w3.org/
1742
1743
1744[w3c][]
1745
1746[w3c]: http://www.w3.org/
1747
1748
1749[World Wide Web Consortium] [w3c]
1750
1751[w3c]: http://www.w3.org/
1752
1753
1754[World Wide Web Consortium][w3c]
1755
1756[w3c]: http://www.w3.org/
1757 "Discover W3C"
1758
1759
1760[World Wide Web Consortium][w3c]
1761
1762[w3c]: http://www.w3.org/ (Discover w3c)
1763
1764
1765[World Wide Web Consortium][w3c]
1766
1767[w3c]: http://www.w3.org/ 'Discover w3c'
1768
1769
1770[World Wide Web Consortium][w3c]
1771
1772[w3c]: http://www.w3.org/ "Discover w3c"
1773
1774
1775[World Wide Web Consortium][w3c]
1776
1777[w3c]: http://www.w3.org/
1778
1779
1780* a list containing a blockquote
1781
1782 > this the blockquote in the list
1783
1784
1785* a list containing a block of code
1786
1787 10 PRINT HELLO INFINITE
1788 20 GOTO 10
1789
1790
1791* This is a list item with two paragraphs. Lorem ipsum dolor
1792 sit amet, consectetuer adipiscing elit. Aliquam hendrerit
1793 mi posuere lectus.
1794
1795 Vestibulum enim wisi, viverra nec, fringilla in, laoreet
1796 vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
1797 sit amet velit.
1798
1799* Suspendisse id sem consectetuer libero luctus adipiscing.
1800
1801
1802* This is a list item with two paragraphs. Lorem ipsum dolor
1803 sit amet, consectetuer adipiscing elit. Aliquam hendrerit
1804 mi posuere lectus.
1805
1806 Vestibulum enim wisi, viverra nec, fringilla in, laoreet
1807 vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
1808 sit amet velit.
1809
1810* Suspendisse id sem consectetuer libero luctus adipiscing.
1811
1812
18131\. ordered list escape
1814
1815
18161. 1
1817
1818 - inner par list
1819
18202. 2
1821
1822
18231. list item 1
18248. list item 2
18251. list item 3
1826
1827
18281. list item 1
18292. list item 2
18303. list item 3
1831
1832
1833This is a paragraph
1834on multiple lines
1835with hard return.
1836
1837
1838This 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.
1839
1840
1841 This is a paragraph with a trailing and leading space.
1842
1843
1844This is a paragraph with 1 trailing tab.
1845
1846
1847 This is a paragraph with 2 leading spaces.
1848
1849
1850 This is a paragraph with 3 leading spaces.
1851
1852
1853 This is a paragraph with 1 leading space.
1854
1855
1856This is a paragraph with a trailing space.
1857
1858as**te**risks
1859
1860
1861**double asterisks**
1862
1863
1864__double underscores__
1865
1866
1867* list item 1
1868* list item 2
1869* list item 3
1870
1871
1872- list item 1
1873- list item 2
1874- list item 3
1875
1876
1877 * list item 1
1878 * list item 2
1879 * list item 3
1880
1881
1882 * list item 1
1883 * list item 2
1884 * list item 3
1885
1886
1887 * list item 1
1888 * list item 2
1889 * list item 3
1890
1891
1892+ list item 1
1893+ list item 2
1894+ list item 3
1895
1896
1897* list item in paragraph
1898
1899* another list item in paragraph
1900
1901
1902* 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.
1903* 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.
1904
1905
1906* This is a list item
1907 with the content on
1908 multiline and indented.
1909* And this another list item
1910 with the same principle.
1911
1912