-
Notifications
You must be signed in to change notification settings - Fork 0
/
README-mmd.html
1224 lines (900 loc) · 34.3 KB
/
README-mmd.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="latexheaderlevel" content="2"/>
<meta name="thmd" content="chapter"/>
<title>Yet Another Markdown Cheatsheet</title>
<meta name="subtitle" content="Including MarkDown, MultiMarkdown, pandoc, GFM and LaTeX Math Syntax by MathJax"/>
<meta name="keywords" content="MarkDown, MultiMarkDown, LaTeX, pandoc, gfm"/>
<meta name="revision" content="0.10"/>
<meta name="language" content="English"/>
<meta name="author" content="Kolen Cheung"/>
<meta name="email" content="[email protected]"/>
<meta name="affiliation" content="University of California, Berkeley"/>
<meta name="tocd" content="5"/>
<meta name="secd" content="5"/>
</head>
<body>
<!-- \begin{comment} -->
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML-full"></script>
<p><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/default.min.css"><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();</script></p>
<h1 id="contents">Contents</h1>
<p>{:.no_toc}</p>
<ul>
<li>Will be replaced with the ToC, excluding the “Contents” header
{:toc}</li>
</ul><div class="TOC">
<ul>
<li><a href="#contents">Contents</a></li>
<li><a href="#introduction">Introduction</a>
<ul>
<li><a href="#organization">Organization</a></li>
</ul></li>
<li><a href="#examples">Examples</a>
<ul>
<li><a href="#header">Header</a>
<ul>
<li><a href="#headercontainingstylingandalink">Header <em>Containing</em> <strong><em>Styling</em></strong> and a Link</a></li>
<li><a href="#headercontainingattributesidentifier.class1keyvalue1">Header Containing Attributes {#identifier .class1 key=value1}</a></li>
<li><a href="#headerunnumbered-">Header Unnumbered {-}</a></li>
<li><a href="#headerunnumbered2.unnumbered">Header Unnumbered 2 {.Unnumbered}</a></li>
<li><a href="#autocrossreference">Auto Cross Reference</a></li>
<li><a href="#userdefinedreference">User defined reference</a></li>
<li><a href="#deeperlevelsofheaders">Deeper Levels of Headers</a>
<ul>
<li><a href="#header4">Header4</a>
<ul>
<li><a href="#header5">Header5</a>
<ul>
<li><a href="#header6">Header6</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul></li>
<li><a href="#backslashescapes">Backslash Escapes</a></li>
<li><a href="#emphasis">Emphasis</a>
<ul>
<li><a href="#criticmarkup">CriticMarkup</a></li>
</ul></li>
<li><a href="#horizontalrules">Horizontal Rules</a></li>
<li><a href="#break">Break</a></li>
<li><a href="#superscriptsubscript">Superscript & Subscript</a></li>
<li><a href="#smartypants">Smarty Pants</a></li>
<li><a href="#abbreviationsphpmarkdownextra">Abbreviations (PHP Markdown Extra)</a></li>
<li><a href="#lists">Lists</a>
<ul>
<li><a href="#compactvslooselists">Compact vs Loose Lists</a>
<ul>
<li><a href="#compact">Compact</a></li>
<li><a href="#loose">Loose</a></li>
</ul></li>
<li><a href="#orderedlists">Ordered Lists</a></li>
<li><a href="#unorderedlists">Unordered Lists</a></li>
<li><a href="#nestedlists">Nested Lists</a></li>
<li><a href="#cutoffalist">Cutoff a List</a></li>
<li><a href="#listiteminablock">List Item in a Block</a></li>
<li><a href="#fancylists">Fancy Lists</a></li>
</ul></li>
</ul></li>
<li><a href="#.one">. one</a></li>
<li><a href="#.two">. two</a>
<ul>
<li><a href="#definitionlists">Definition Lists</a>
<ul>
<li><a href="#method1">Method 1</a></li>
<li><a href="#method2">Method 2</a></li>
</ul></li>
<li><a href="#numberedexamplelists">Numbered Example Lists</a></li>
<li><a href="#code">Code</a>
<ul>
<li><a href="#fencedcodeblocks">Fenced Code Blocks</a>
<ul>
<li><a href="#method1">Method 1</a></li>
<li><a href="#method2">Method 2</a></li>
<li><a href="#method3">Method 3</a></li>
</ul></li>
</ul></li>
<li><a href="#block-quotes">Block-quotes</a>
<ul>
<li><a href="#block-quotesquotingcodes">Block-quotes Quoting Codes</a></li>
</ul></li>
<li><a href="#lineblocks">Line Blocks</a></li>
<li><a href="#tables">Tables</a>
<ul>
<li><a href="#method1">Method 1</a></li>
<li><a href="#method2">Method 2</a></li>
<li><a href="#method3">Method 3</a></li>
<li><a href="#method4">Method 4</a></li>
</ul></li>
<li>[ rows.][rows.]
<ul>
<li><a href="#method5">Method 5</a></li>
<li><a href="#method6">Method 6</a></li>
</ul></li>
<li><a href="#links">Links</a>
<ul>
<li><a href="#referencelinks">Reference Links</a></li>
</ul></li>
<li><a href="#footnotes">Footnotes</a>
<ul>
<li><a href="#referencefootnotes">Reference Footnotes</a></li>
<li><a href="#glossaries">Glossaries</a></li>
<li><a href="#citations">Citations</a>
<ul>
<li><a href="#multimarkdown">MultiMarkdown</a></li>
<li><a href="#pandoc">Pandoc</a></li>
</ul></li>
</ul></li>
<li><a href="#images">Images</a>
<ul>
<li><a href="#referenceimages">Reference Images</a></li>
<li><a href="#imagewithlinksbynestingimageandlink">Image with Links by Nesting Image and Link</a></li>
<li><a href="#blocklevelimages">Block Level Images</a></li>
</ul></li>
<li><a href="#raw">RAW</a>
<ul>
<li><a href="#html">HTML</a></li>
<li><a href="#latex">LaTeX</a></li>
</ul></li>
</ul></li>
<li><a href="#othersyntaxes">Other Syntaxes</a>
<ul>
<li><a href="#metadata">Metadata</a>
<ul>
<li><a href="#multimarkdownmetadatablock">MultiMarkdown Metadata Block</a></li>
<li><a href="#pandoctitleblock">Pandoc Title Block</a></li>
<li><a href="#yamlmetadatablock">YAML Metadata Block</a></li>
</ul></li>
<li>[```][]</li>
<li>[It consists of two paragraphs.][itconsistsoftwoparagraphs.]</li>
<li>[…][...]</li>
</ul></li>
<li><a href="#contents">Contents</a>
<ul>
<li><a href="#math">Math</a>
<ul>
<li><a href="#markdown">Markdown</a></li>
<li><a href="#multimarkdownandpandoc">MultiMarkdown and Pandoc</a>
<ul>
<li><a href="#multimarkdown">MultiMarkdown</a></li>
<li><a href="#pandoc">Pandoc</a></li>
</ul></li>
<li><a href="#inlinemath">Inline Math</a></li>
<li><a href="#blockmath">Block Math</a></li>
<li><a href="#otherexamples">Other Examples</a></li>
</ul></li>
<li><a href="#filetransclusion">File Transclusion</a></li>
</ul></li>
<li><a href="#references">References</a></li>
</ul>
</div>
<!-- \end{comment} -->
<h1 id="introduction">Introduction</h1>
<p><a href="#examples">Examples</a> shows explicit examples for different syntaxes. <a href="#othersyntaxes">Other Syntaxes</a> show the syntaxes that can’t be shown explicitly.</p>
<h2 id="organization">Organization</h2>
<ul>
<li>Header levels (except possibly the last header level): features in groups</li>
<li>Last header level or a list: different syntaxes</li>
<li>TaskPaper-styled tags to indicate in what favor of Markdown such syntax is supported
<ul>
<li><code>@markdown</code>: supported by original markdown, hence understood to be supported by all variants of markdown</li>
<li><code>@ghpages</code>: GitHub-Favored Markdown, built by kramdown with GFM option. i.e. GitHub Pages’ GitHub-Favored Markdown (not exhaustively tested here. See <a href="http://kramdown.gettalong.org/syntax.html#tables">kramdown’s documentation</a> for other possible syntaxes)</li>
<li><code>@mmd</code>: MultiMarkdown </li>
<li><code>@pandoc</code>: pandoc-favored markdown</li>
<li><code>@phpextra</code>: PHP Markdown Extra (inspired some syntax in pandoc and mmd and gfm, not exhaustively tested here)</li>
</ul></li>
<li>TaskPaper Tags
<ul>
<li><code>@...(partial)</code>: partial supports only</li>
<li><code>@...(+...)</code>: when the extension is used</li>
<li><code>@pandoc(--...)</code>: when the command line argument is used</li>
<li><code>@pandoc(parsed)</code>: not verbatim, but parsed</li>
</ul></li>
</ul>
<p>Note:</p>
<ul>
<li>You might see <code><!-- \begin{comment} -->...<!-- \end{comment} --></code>. This is for mmd to tex to pdf use only. Ignore this.</li>
</ul>
<h1 id="examples">Examples</h1>
<h2 id="header">Header</h2>
<p>@markdown</p>
<p>See <a href="#emphasis">Emphasis</a> and <a href="#othersyntaxes">Other Syntaxes</a> to see alternative Setext-style header styles @markdown</p>
<h3 id="headercontainingstylingandalink">Header <em>Containing</em> <strong><em>Styling</em></strong> and a <a href="Https://www.wikipedia.org/">Link</a></h3>
<p>@markdown</p>
<h3 id="headercontainingattributesidentifier.class1keyvalue1">Header Containing Attributes {#identifier .class1 key=value1}</h3>
<p>@pandoc @phpextra</p>
<h3 id="headerunnumbered-">Header Unnumbered {-}</h3>
<p>@pandoc</p>
<h3 id="headerunnumbered2.unnumbered">Header Unnumbered 2 {.Unnumbered}</h3>
<p>@pandoc</p>
<h3 id="autocrossreference">Auto Cross Reference</h3>
<ul>
<li><a href="#header">Link to Header</a> @pandoc @ghpages @mmd</li>
<li><a href="#header">Link to Header</a> @pandoc @mmd</li>
<li><a href="#header">Header</a> @mmd @pandoc</li>
<li><a href="#header">Header</a> @mmd @pandoc</li>
</ul>
<h3 id="userdefinedreference">User defined reference</h3>
<ul>
<li><a href="#userdefinedreference">userdefinedreference</a> @mmd</li>
<li><a href="#userdefinedreference">Link to userdefinedreference</a> @mmd @pandoc(+mmd_header_identifiers)</li>
<li><a href="#identifier">Link to “Header Containing Attributes”</a> @pandoc</li>
<li><a href="#identifier">another-link</a> @pandoc</li>
</ul>
<h3 id="deeperlevelsofheaders">Deeper Levels of Headers</h3>
<h4 id="header4">Header4</h4>
<h5 id="header5">Header5</h5>
<h6 id="header6">Header6</h6>
<h2 id="backslashescapes">Backslash Escapes</h2>
<p>*testing* @markdown</p>
<h2 id="emphasis">Emphasis</h2>
<ul>
<li><em>italic</em> or <em>italic</em> @markdown</li>
<li><strong>bold</strong> or <strong>bold</strong> @markdown</li>
<li><strong><em>bold italic</em></strong> or <strong><em>bold italic</em></strong> @markdown</li>
<li>~~strikethrough~~ @pandoc</li>
<li><span style="font-variant:small-caps;">Small caps</span> @pandoc @markdown(html)</li>
</ul>
<h3 id="criticmarkup">CriticMarkup</h3>
<p>@mmd</p>
<p>Visually it looks like emphasis. Functionally it is much more, and called Critic Markup</p>
<ul>
<li>Deletions from the original text: This is <del>is </del>a test.</li>
<li>Additions: This <ins>is </ins>a test.</li>
<li>Substitutions: This <del>isn’t</del><ins>is</ins> a test.</li>
<li>Highlighting: This is a <mark>test</mark>.</li>
<li>Comments: This is a test.</li>
</ul>
<p>See more at <a href="http://fletcher.github.io/MultiMarkdown-5/criticmarkup.html">CriticMarkup—MultiMarkdown Documentation</a>.</p>
<h2 id="horizontalrules">Horizontal Rules</h2>
<p>@markdown</p>
<hr />
<p>3 or more hyphens or asterisks</p>
<hr />
<h2 id="break">Break</h2>
<p>@markdown</p>
<p>No break
like this</p>
<p>Soft break<br/>
like this</p>
<p>Hard break</p>
<p>like this</p>
<h2 id="superscriptsubscript">Superscript & Subscript</h2>
<ul>
<li>x<sup>2</sup> @mmd</li>
<li>d<sub>o</sub> @mmd</li>
<li>x<sup>a+b</sup> @mmd @pandoc</li>
<li>x<sub>y,z</sub> @mmd @pandoc</li>
<li>P<sub>a</sub>\ cat~ @pandoc</li>
</ul>
<h2 id="smartypants">Smarty Pants</h2>
<p>@markdown(+smartypants) @pandoc(–smart) @ghpages</p>
<ul>
<li>“Example 1”</li>
<li>‘Example 2’</li>
<li>en–dash</li>
<li>em—dash</li>
<li>ellipsis…</li>
</ul>
<p>@mmd</p>
<ul>
<li>“Example 3”</li>
</ul>
<h2 id="abbreviationsphpmarkdownextra">Abbreviations (PHP Markdown Extra)</h2>
<p>@mmd @phpextra @pandoc(+abbreviations)</p>
<p>Testing abbreviations: <abbr title="HyperText Markup Language">HTML</abbr>, <abbr title="World Wide Web Consortium">W3C</abbr> (mouseover it to see)</p>
<h2 id="lists">Lists</h2>
<h3 id="compactvslooselists">Compact vs Loose Lists</h3>
<p>The following effects are the same for different kind of lists @markdown</p>
<h4 id="compact">Compact</h4>
<ul>
<li>test 1</li>
<li>test 2</li>
<li>test 3</li>
</ul>
<h4 id="loose">Loose</h4>
<ul>
<li><p>test 1</p></li>
<li><p>test 2</p></li>
<li><p>test 3</p></li>
</ul>
<h3 id="orderedlists">Ordered Lists</h3>
<p>@markdown</p>
<ol>
<li>test</li>
<li>test</li>
<li>test</li>
</ol>
<h3 id="unorderedlists">Unordered Lists</h3>
<p>@markdown</p>
<ul>
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
<h3 id="nestedlists">Nested Lists</h3>
<p>@markdown</p>
<ul>
<li>test
<ul>
<li>test</li>
</ul></li>
<li>test
<ol>
<li>test</li>
<li>test
<ul>
<li>test
<ol>
<li>test</li>
<li>test</li>
</ol></li>
</ul></li>
<li>test</li>
</ol></li>
<li>test</li>
</ul>
<p>Note about LaTeX output in mmd/pandoc:</p>
<ul>
<li>The Maximum nesting level of lists in LaTeX is 4. The quick hack is to mix itemize and enumerate alternatively to go beyond this.</li>
</ul>
<h3 id="cutoffalist">Cutoff a List</h3>
<p>@markdown</p>
<ol>
<li>one</li>
<li>two</li>
<li>three</li>
</ol>
<!-- -->
<ol>
<li>uno</li>
<li>dos</li>
<li>tres</li>
</ol>
<!-- -->
<ul>
<li>item one</li>
<li>item two</li>
</ul>
<!-- end of list -->
<pre><code>{ my code block }
</code></pre>
<h3 id="listiteminablock">List Item in a Block</h3>
<p>@markdown</p>
<ul>
<li><p>First paragraph.</p>
<p>Continued.</p></li>
<li><p>Second paragraph. With a code block, which must be indented
eight spaces:</p>
<pre><code>{ code }
</code></pre></li>
</ul>
<h3 id="fancylists">Fancy Lists</h3>
<p>@pandoc</p>
<h1 id=".one">. one</h1>
<h1 id=".two">. two</h1>
<p>9) Ninth
10) Tenth
11) Eleventh
i. <code>i</code>
ii. <code>ii</code>
iii. <code>iii</code>
(2) Two
(5) Three
1. Four
* Five</p>
<h2 id="definitionlists">Definition Lists</h2>
<h3 id="method1">Method 1</h3>
<p>@mmd @phpextra @pandoc @ghpages</p>
<dl>
<dt>Physics</dt>
<dd>The Fundamental of Science</dd>
<dd>Describe the Nature</dd>
<dd>Make Prediction</dd>
</dl>
<h3 id="method2">Method 2</h3>
<p>@ghpages @pandoc @mmd</p>
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2 with <em>inline markup</em></dt>
<dd>
<p>Definition 2</p>
<pre><code>{ some code, part of Definition 2 }
</code></pre>
<p>Third paragraph of definition 2.</p></dd>
</dl>
<h2 id="numberedexamplelists">Numbered Example Lists</h2>
<p>@pandoc</p>
<p>(@) My first example will be numbered (1).
(@) My second example will be numbered (2).</p>
<p>Explanation of examples.</p>
<p>(@) My third example will be numbered (3).</p>
<p>(@good) This is a good example.</p>
<p>As (@good) illustrates, …</p>
<h2 id="code">Code</h2>
<ul>
<li><code>testing</code> @markdown</li>
<li><code>\[\ket{a}\]</code>{.latex} @pandoc</li>
</ul>
<h3 id="fencedcodeblocks">Fenced Code Blocks</h3>
<h4 id="method1">Method 1</h4>
<p>@markdown</p>
<pre><code>test
test
test
# test
</code></pre>
<h4 id="method2">Method 2</h4>
<p>@markdown(partial:language-not-supported) @ghpages @pandoc @mmd</p>
<pre><code class="tex">\nabla \times \mathbf{E} = - \frac{\partial \mathbf{B}}{\partial t}
</code></pre>
<h4 id="method3">Method 3</h4>
<p>@pandoc</p>
<p>~~~markdown
test
test
test
# test
~~~</p>
<p>~~~ {#mycode .markdown .numberLines startFrom=“100”}
test
test
test
# test
~~~</p>
<h2 id="block-quotes">Block-quotes</h2>
<p>@markdown</p>
<blockquote>
<h4 id="test">Test</h4>
<p>test</p>
<blockquote>
<p>test</p>
<p>test</p>
</blockquote>
<ul>
<li><p>test</p></li>
<li><p>test</p></li>
</ul>
</blockquote>
<h3 id="block-quotesquotingcodes">Block-quotes Quoting Codes</h3>
<p>@markdown</p>
<blockquote>
<pre><code>\newcommand...
</code></pre>
</blockquote>
<h2 id="lineblocks">Line Blocks</h2>
<p>@ghpages(partial) @pandoc</p>
<p>| The limerick packs laughs anatomical
| In space that is quite economical.
| But the good ones I’ve seen
| So seldom are clean
| And the clean ones so seldom are comical</p>
<p>| 200 Main St.
| Berkeley, CA 94718</p>
<h2 id="tables">Tables</h2>
<h3 id="method1">Method 1</h3>
<p>@ghpages @pandoc @mmd</p>
<dl>
<dt>| Right | Left | Default | Center |</dt>
<dt>|——:|:—–|———|:——:|</dt>
<dt>| 12 | 12 | 12 | 12 |</dt>
<dt>| 123 | 123 | 123 | 123 |</dt>
<dt>| 1 | 1 | 1 | 1 |</dt>
<dd>Notice how pandoc can have optional caption like this</dd>
</dl>
<h3 id="method2">Method 2</h3>
<p>@mmd</p>
<table>
<caption id="tablecaption">Table Caption</caption>
<colgroup>
<col style="text-align:left;"/>
<col style="text-align:right;"/>
<col style="text-align:center;"/>
</colgroup>
<thead>
<tr>
<th style="text-align:left;"></th>
<th style="text-align:right;" colspan="2">Grouping</th>
</tr>
<tr>
<th style="text-align:left;">Left align</th>
<th style="text-align:right;">Right align</th>
<th style="text-align:center;">Center align</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">This</td>
<td style="text-align:right;">This</td>
<td style="text-align:center;">This</td>
</tr>
<tr>
<td style="text-align:left;">column</td>
<td style="text-align:right;">column</td>
<td style="text-align:center;">column</td>
</tr>
<tr>
<td style="text-align:left;">will</td>
<td style="text-align:right;">will</td>
<td style="text-align:center;">will</td>
</tr>
<tr>
<td style="text-align:left;">be</td>
<td style="text-align:right;">be</td>
<td style="text-align:center;">be</td>
</tr>
<tr>
<td style="text-align:left;">left</td>
<td style="text-align:right;">right</td>
<td style="text-align:center;">center</td>
</tr>
<tr>
<td style="text-align:left;">aligned</td>
<td style="text-align:right;">aligned</td>
<td style="text-align:center;">aligned</td>
</tr>
<tr>
<td style="text-align:left;" colspan="3">And a big grouping is like this</td>
</tr>
</tbody>
</table>
<h3 id="method3">Method 3</h3>
<p>@pandoc</p>
<p>Right Left Center Default
——- —— ———- ——-
12 12 12 12
123 123 123 123
1 1 1 1</p>
<p>Table: Demonstration of simple table syntax.</p>
<h3 id="method4">Method 4</h3>
<p>@pandoc</p>
<hr />
<p>Centered Default Right Left
Header Aligned Aligned Aligned
———– ——- ————— ————————-
First row 12.0 Example of a row that
spans multiple lines.</p>
<p>Second row 5.0 Here’s another one. Note
the blank line between</p>
<pre><code> rows.
</code></pre>
<hr />
<p>Table: Here’s the caption. It, too, may span
multiple lines.</p>
<h3 id="method5">Method 5</h3>
<dl>
<dt>@pandoc</dt>
<dd>Sample grid table.</dd>
</dl>
<p>+—————+—————+——————–+
| Fruit | Price | Advantages |
+===============+===============+====================+
| Bananas | $1.34 | - built-in wrapper |
| | | - bright color |
+—————+—————+——————–+
| Oranges | $2.10 | - cures scurvy |
| | | - tasty |
+—————+—————+——————–+ </p>
<h3 id="method6">Method 6</h3>
<p>@ghpages</p>
<!-- \begin{comment} -->
<table>
<colgroup>
<col/>
<col style="text-align:left;"/>
<col style="text-align:center;"/>
<col style="text-align:right;"/>
</colgroup>
<thead>
<tr>
<th>—————–+————+—————–+—————-</th>
</tr>
<tr>
<th>Default aligned</th>
<th style="text-align:left;">Left aligned</th>
<th style="text-align:center;">Center aligned</th>
<th style="text-align:right;">Right aligned</th>
</tr>
</thead>
<tbody>
<tr>
<td>First body part</td>
<td style="text-align:left;">Second cell</td>
<td style="text-align:center;">Third cell</td>
<td style="text-align:right;">fourth cell</td>
</tr>
<tr>
<td>Second line</td>
<td style="text-align:left;">foo</td>
<td style="text-align:center;"><strong>strong</strong></td>
<td style="text-align:right;">blah</td>
</tr>
<tr>
<td>Third line</td>
<td style="text-align:left;">blah</td>
<td style="text-align:center;">blah</td>
<td style="text-align:right;">bar</td>
</tr>
<tr>
<td>—————–+————+—————–+—————-</td>
</tr>
<tr>
<td>Second body</td>
<td style="text-align:left;"></td>
<td style="text-align:center;"></td>
<td style="text-align:right;"></td>
</tr>
<tr>
<td>2 line</td>
<td style="text-align:left;"></td>
<td style="text-align:center;"></td>
<td style="text-align:right;"></td>
</tr>
<tr>
<td>=================+============+=================+================</td>
</tr>
<tr>
<td>Footer row</td>
<td style="text-align:left;"></td>
<td style="text-align:center;"></td>
<td style="text-align:right;"></td>
</tr>
<tr>
<td>—————–+————+—————–+—————-</td>
</tr>
</tbody>
</table>
<!-- \end{comment} -->
<p>See <a href="http://kramdown.gettalong.org/syntax.html#tables">Syntax | kramdown</a> </p>
<h2 id="links">Links</h2>
<ul>
<li>https://www.wikipedia.org @pandoc(+autolink_bare_uris)</li>
<li><a href="https://www.wikipedia.org">https://www.wikipedia.org</a> @markdown</li>
<li><a href="https://www.wikipedia.org">Wikipedia.org</a> @markdown</li>
<li><a href="https://www.wikipedia.org" title="a title">Wikipedia.org</a> @markdown</li>
<li><a href="mailto:support@github.com">Mail to GitHub</a> @markdown</li>
</ul>
<h3 id="referencelinks">Reference Links</h3>
<ul>
<li><a href="https://www.google.com">Search here</a> @markdown</li>
<li>A <a href="image.png" title="Title" class="external" style="border: solid black 1px;">link</a> with attributes. @mmd</li>
<li><a href="image.png" title="Title" class="external" style="border: solid black 1px;">Another link to the link above</a>. @mmd</li>
<li>A <a href="/foo/bar.html" title="My title, optional">link1</a> with attributes. @markdown</li>
<li><a href="http://fsf.org" title="The free software foundation">Another link</a>. @markdown</li>
<li><a href="/bar#special" title="A title in single quotes">link3</a>. @markdown</li>
</ul>
<h2 id="footnotes">Footnotes</h2>
<ul>
<li>Footnotes <a href="#fn:1" id="fnref:1" title="see footnote" class="footnote">[1]</a> @mmd</li>
<li>Footnotes ^[This is a pandoc inline footnote] @pandoc</li>
</ul>
<h3 id="referencefootnotes">Reference Footnotes</h3>
<ul>
<li>Footnotes<a href="#fn:2" id="fnref:2" title="see footnote" class="footnote">[2]</a> @markdown</li>
<li>Long Footnotes <a href="#fn:3" id="fnref:3" title="see footnote" class="footnote">[3]</a> @pandoc @ghpages @mmd</li>
</ul>
<p>This paragraph won’t be part of the note, because it
isn’t indented.</p>
<h3 id="glossaries">Glossaries</h3>
<p>A special kind of footnote <a href="#fn:4" id="fnref:4" title="see footnote" class="footnote glossary">[4]</a>. @mmd</p>
<p>See more at <a href="http://fletcher.github.io/MultiMarkdown-5/glossary.html">Glossary—MultiMarkdown Documentation</a>.</p>
<h3 id="citations">Citations</h3>
<p>It can looks like footnotes in <abbr title="HyperText Markup Language">HTML</abbr> output.</p>
<h4 id="multimarkdown">MultiMarkdown</h4>
<p>@mmd</p>
<ul>
<li>This is a statement that should be attributed to its source <a class="citation" href="#fn:5" title="Jump to citation">[<span class="locator">p. 23</span>, 5]<span class="citekey" style="display:none">Doe:2006</span></a>.</li>
</ul>
<p><span class="notcited" id="6"><span class="citekey" style="display:none">notcited</span></span></p>
<p>See more at <a href="http://fletcher.github.io/MultiMarkdown-5/citations.html">Citations—MultiMarkdown Documentation</a>.</p>
<h4 id="pandoc">Pandoc</h4>
<p>@pandoc</p>
<p>Very powerful but complicated. See more at <a href="http://pandoc.org/README.html#citations">Citations—Pandoc Documentation</a>.</p>
<h2 id="images">Images</h2>
<ul>
<li><img src="image.png" alt="Alt Text" title="Optional Title" /> @markdown</li>
</ul>
<h3 id="referenceimages">Reference Images</h3>
<ul>
<li><img src="image.png" alt="Alt Text" id="imageid" title="Optional Title" /> @markdown</li>
<li><img src="image.png" alt="An Image with Attributes" id="wikipedia" title="Title of the Image" style="height:40px;width:40px;" /> @mmd @pandoc(+mmd_link_attributes)</li>
<li><img src="image.png" alt="An Image with Attributes" />{#id .class width=30 height=20px} @pandoc @phpextra(partial)</li>
<li>a reference ![image][ref] with attributes. @pandoc @phpextra(partial)</li>
</ul>
<p>[ref]: image.png “optional title” {#id .class key=val key2=“val 2”}</p>
<h3 id="imagewithlinksbynestingimageandlink">Image with Links by Nesting Image and Link</h3>
<ul>
<li><a href="https://www.wikipedia.org/"><img src="image.png" alt="Image Link" /></a> @markdown</li>
</ul>
<h3 id="blocklevelimages">Block Level Images</h3>
<ul>
<li>Block level: <abbr title="HyperText Markup Language">HTML</abbr> <code>figure</code> element in MultiMarkdown @mmd @pandoc</li>
</ul>
<figure>
<img src="image.png" alt="Block Level" title="Optional Title" />
<figcaption><strong><em>Block</em></strong> <strong>Level</strong></figcaption>
</figure>
<p><img src="image.png" alt="Not Block Level" title="Optional Title" />
</p>
<h2 id="raw">RAW</h2>
<h3 id="html">HTML</h3>
<ul>
<li><div>This should <em>not</em> be markdown (or is it?) </div> @markdown</li>
<li><div>This <em>is</em> markdown</div> @mmd @pandoc(+markdown_attribute)</li>
</ul>
<p>See more at <a href="http://fletcher.github.io/MultiMarkdown-5/raw.html">Raw—MultiMarkdown Documentation</a>. See test in [Babelmark 2 - Compare markdown implementations](http://johnmacfarlane.net/babelmark2/?normalize=1&text=%3Cdiv%3EThis+should+<em>not</em>+be+markdown+(or+is+it%3F%29+%3C%2Fdiv%3E%0A%3Cdiv+markdown%3D1%3EThis+<em>is</em>+markdown%3C%2Fdiv%3E).</p>
<h3 id="latex">LaTeX</h3>
<ul>
<li><!-- \newcommand\rawlatex{} --> @mmd</li>
<li>\newcommand\rawlatex{} @pandoc(parsed)</li>
<li>\begin{…} @pandoc</li>
</ul>
<h1 id="othersyntaxes">Other Syntaxes</h1>
<h2 id="metadata">Metadata</h2>
<p>Note: mmd accepts capitalized metadata keys but others do not. For maximum compatibility, <code>author(s)</code>, <code>title</code>, etc. should be in lower cases.</p>
<h3 id="multimarkdownmetadatablock">MultiMarkdown Metadata Block</h3>
<p>@mmd @pandoc(+mmd_title_block)</p>
<pre><code>title: A Sample MultiMarkdown Document
author: Fletcher T. Penney
date: February 9, 2011
comment: This is a comment intended to demonstrate
metadata that spans multiple lines, yet