rpeg-multimarkdown 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +94 -0
- data/README.markdown +58 -0
- data/Rakefile +171 -0
- data/bin/rpeg-multimarkdown +128 -0
- data/ext/extconf.h +3 -0
- data/ext/extconf.rb +15 -0
- data/ext/markdown.c +88 -0
- data/ext/markdown_lib.c +211 -0
- data/ext/markdown_lib.h +28 -0
- data/ext/markdown_output.c +2704 -0
- data/ext/markdown_parser.c +8275 -0
- data/ext/markdown_peg.h +142 -0
- data/ext/odf.c +179 -0
- data/ext/odf.h +3 -0
- data/ext/parsing_functions.c +182 -0
- data/ext/utility_functions.c +535 -0
- data/lib/multimarkdown.rb +1 -0
- data/lib/peg_multimarkdown.rb +74 -0
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.html +76 -0
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +64 -0
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.text +38 -0
- data/test/MultiMarkdownTest/MarkdownTest.pl +182 -0
- data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.html +42 -0
- data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex +47 -0
- data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.text +46 -0
- data/test/MultiMarkdownTest/MemoirTests/Base Header Level.html +20 -0
- data/test/MultiMarkdownTest/MemoirTests/Base Header Level.tex +19 -0
- data/test/MultiMarkdownTest/MemoirTests/Base Header Level.text +16 -0
- data/test/MultiMarkdownTest/MemoirTests/BibTeX.html +17 -0
- data/test/MultiMarkdownTest/MemoirTests/BibTeX.tex +12 -0
- data/test/MultiMarkdownTest/MemoirTests/BibTeX.text +11 -0
- data/test/MultiMarkdownTest/MemoirTests/Citations.html +63 -0
- data/test/MultiMarkdownTest/MemoirTests/Citations.tex +48 -0
- data/test/MultiMarkdownTest/MemoirTests/Citations.text +43 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.html +61 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +63 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.text +40 -0
- data/test/MultiMarkdownTest/MemoirTests/Dutch.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/Dutch.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/Dutch.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Email.html +48 -0
- data/test/MultiMarkdownTest/MemoirTests/Email.tex +61 -0
- data/test/MultiMarkdownTest/MemoirTests/Email.text +32 -0
- data/test/MultiMarkdownTest/MemoirTests/English.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/English.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/English.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Footnotes.html +47 -0
- data/test/MultiMarkdownTest/MemoirTests/Footnotes.tex +28 -0
- data/test/MultiMarkdownTest/MemoirTests/Footnotes.text +26 -0
- data/test/MultiMarkdownTest/MemoirTests/French.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/French.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/French.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/German.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/German.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/German.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Glossary.html +47 -0
- data/test/MultiMarkdownTest/MemoirTests/Glossary.tex +30 -0
- data/test/MultiMarkdownTest/MemoirTests/Glossary.text +29 -0
- data/test/MultiMarkdownTest/MemoirTests/Line Breaks.html +21 -0
- data/test/MultiMarkdownTest/MemoirTests/Line Breaks.tex +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Line Breaks.text +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Link Attributes.html +40 -0
- data/test/MultiMarkdownTest/MemoirTests/Link Attributes.tex +61 -0
- data/test/MultiMarkdownTest/MemoirTests/Link Attributes.text +51 -0
- data/test/MultiMarkdownTest/MemoirTests/Math.html +22 -0
- data/test/MultiMarkdownTest/MemoirTests/Math.tex +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Math.text +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.html +24 -0
- data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.tex +23 -0
- data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.text +20 -0
- data/test/MultiMarkdownTest/MemoirTests/MetaData.html +22 -0
- data/test/MultiMarkdownTest/MemoirTests/MetaData.tex +14 -0
- data/test/MultiMarkdownTest/MemoirTests/MetaData.text +15 -0
- data/test/MultiMarkdownTest/MemoirTests/Sanity.html +100 -0
- data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +101 -0
- data/test/MultiMarkdownTest/MemoirTests/Sanity.text +78 -0
- data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.html +26 -0
- data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.tex +21 -0
- data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.text +19 -0
- data/test/MultiMarkdownTest/MemoirTests/Swedish.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/Swedish.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/Swedish.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Tables.html +221 -0
- data/test/MultiMarkdownTest/MemoirTests/Tables.tex +134 -0
- data/test/MultiMarkdownTest/MemoirTests/Tables.text +64 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +41 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.tex +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.text +45 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +20 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex +19 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text +16 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +16 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text +10 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +62 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.tex +47 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.text +42 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +60 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +62 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.text +39 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +47 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.tex +54 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.text +31 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +16 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.tex +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.text +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.tex +24 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.text +25 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.tex +26 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.text +28 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +52 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +49 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +20 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.tex +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.text +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +54 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.tex +60 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.text +50 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +20 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.tex +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.text +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +19 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.tex +13 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.text +19 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +21 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.tex +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.text +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +21 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex +13 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text +14 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +104 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +100 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text +77 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +29 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.tex +24 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.text +22 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +230 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +133 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +63 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib +119 -0
- data/test/MultiMarkdownTest/README.md +58 -0
- data/test/MultiMarkdownTest/Tests/Amps and angle encoding.html +17 -0
- data/test/MultiMarkdownTest/Tests/Amps and angle encoding.text +21 -0
- data/test/MultiMarkdownTest/Tests/Auto links.html +18 -0
- data/test/MultiMarkdownTest/Tests/Auto links.text +13 -0
- data/test/MultiMarkdownTest/Tests/Backslash escapes.html +118 -0
- data/test/MultiMarkdownTest/Tests/Backslash escapes.text +120 -0
- data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.html +15 -0
- data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.text +11 -0
- data/test/MultiMarkdownTest/Tests/Code Blocks.html +18 -0
- data/test/MultiMarkdownTest/Tests/Code Blocks.text +14 -0
- data/test/MultiMarkdownTest/Tests/Code Spans.html +6 -0
- data/test/MultiMarkdownTest/Tests/Code Spans.text +6 -0
- data/test/MultiMarkdownTest/Tests/Compatibility.html +5 -0
- data/test/MultiMarkdownTest/Tests/Compatibility.text +9 -0
- data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
- data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
- data/test/MultiMarkdownTest/Tests/Horizontal rules.html +71 -0
- data/test/MultiMarkdownTest/Tests/Horizontal rules.text +67 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).html +15 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).text +15 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).html +72 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).text +69 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML comments.html +13 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML comments.text +13 -0
- data/test/MultiMarkdownTest/Tests/Links, inline style.html +11 -0
- data/test/MultiMarkdownTest/Tests/Links, inline style.text +12 -0
- data/test/MultiMarkdownTest/Tests/Links, reference style.html +52 -0
- data/test/MultiMarkdownTest/Tests/Links, reference style.text +71 -0
- data/test/MultiMarkdownTest/Tests/Links, shortcut references.html +9 -0
- data/test/MultiMarkdownTest/Tests/Links, shortcut references.text +20 -0
- data/test/MultiMarkdownTest/Tests/Literal quotes in titles.html +3 -0
- data/test/MultiMarkdownTest/Tests/Literal quotes in titles.text +7 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.html +314 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.text +306 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.html +942 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.text +888 -0
- data/test/MultiMarkdownTest/Tests/Nested blockquotes.html +9 -0
- data/test/MultiMarkdownTest/Tests/Nested blockquotes.text +5 -0
- data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.html +148 -0
- data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.text +131 -0
- data/test/MultiMarkdownTest/Tests/Strong and em together.html +7 -0
- data/test/MultiMarkdownTest/Tests/Strong and em together.text +7 -0
- data/test/MultiMarkdownTest/Tests/Tabs.html +25 -0
- data/test/MultiMarkdownTest/Tests/Tabs.text +21 -0
- data/test/MultiMarkdownTest/Tests/Tidyness.html +8 -0
- data/test/MultiMarkdownTest/Tests/Tidyness.text +5 -0
- data/test/benchmark.rb +49 -0
- data/test/multimarkdown_test.rb +89 -0
- metadata +280 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>MultiMarkdown Swedish Test</title>
|
7
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<p>’this is a single quote’</p>
|
12
|
+
|
13
|
+
<p>”this is a double quote”</p>
|
14
|
+
|
15
|
+
<p>this isn’t an apostrophe.</p>
|
16
|
+
|
17
|
+
<p>this is an em — dash</p>
|
18
|
+
|
19
|
+
<p>this is an en – dash</p>
|
20
|
+
|
21
|
+
<p>and an ellipsis…</p>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{MultiMarkdown Swedish Test}
|
3
|
+
\input{mmd-article-begin-doc}
|
4
|
+
'this is a single quote'
|
5
|
+
|
6
|
+
''this is a double quote''
|
7
|
+
|
8
|
+
this isn't an apostrophe.
|
9
|
+
|
10
|
+
this is an em --- dash
|
11
|
+
|
12
|
+
this is an en -- dash
|
13
|
+
|
14
|
+
and an ellipsis{\ldots}
|
15
|
+
|
16
|
+
\input{mmd-memoir-footer}
|
17
|
+
|
18
|
+
\end{document}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Swedish Test
|
3
|
+
quoteslanguage: swedish
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer
|
6
|
+
|
7
|
+
'this is a single quote'
|
8
|
+
|
9
|
+
"this is a double quote"
|
10
|
+
|
11
|
+
this isn't an apostrophe.
|
12
|
+
|
13
|
+
this is an em --- dash
|
14
|
+
|
15
|
+
this is an en -- dash
|
16
|
+
|
17
|
+
and an ellipsis...
|
@@ -0,0 +1,230 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>MultiMarkdown Table Test</title>
|
7
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
|
12
|
+
|
13
|
+
<table>
|
14
|
+
<caption id="prototypetable">Prototype table caption</caption>
|
15
|
+
<colgroup>
|
16
|
+
<col style="text-align:left;"/>
|
17
|
+
<col style="text-align:center;"/>
|
18
|
+
<col style="text-align:right;"/>
|
19
|
+
</colgroup>
|
20
|
+
|
21
|
+
<thead>
|
22
|
+
<tr>
|
23
|
+
<th style="text-align:left;"></th>
|
24
|
+
<th style="text-align:center;" colspan="2">Grouping</th>
|
25
|
+
</tr>
|
26
|
+
<tr>
|
27
|
+
<th style="text-align:left;">First Header</th>
|
28
|
+
<th style="text-align:center;">Second Header</th>
|
29
|
+
<th style="text-align:right;">Third Header</th>
|
30
|
+
</tr>
|
31
|
+
</thead>
|
32
|
+
|
33
|
+
<tbody>
|
34
|
+
<tr>
|
35
|
+
<td style="text-align:left;">Content</td>
|
36
|
+
<td style="text-align:center;" colspan="2"><em>Long Cell</em></td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td style="text-align:left;">Content</td>
|
40
|
+
<td style="text-align:center;"><strong>Cell</strong></td>
|
41
|
+
<td style="text-align:right;">Cell</td>
|
42
|
+
</tr>
|
43
|
+
</tbody>
|
44
|
+
|
45
|
+
<tbody>
|
46
|
+
<tr>
|
47
|
+
<td style="text-align:left;">New section</td>
|
48
|
+
<td style="text-align:center;">More</td>
|
49
|
+
<td style="text-align:right;">Data</td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td style="text-align:left;">And more</td>
|
53
|
+
<td style="text-align:center;" colspan="2">With an escaped ‘|’</td>
|
54
|
+
</tr>
|
55
|
+
</tbody>
|
56
|
+
</table>
|
57
|
+
<p>And this is a link to the <a href="#prototypetable">Prototype table</a>.</p>
|
58
|
+
|
59
|
+
<p>And now a table with only a caption.</p>
|
60
|
+
|
61
|
+
<table>
|
62
|
+
<caption id="captionbutnolabel">Caption but no label</caption>
|
63
|
+
<colgroup>
|
64
|
+
<col style="text-align:left;"/>
|
65
|
+
<col style="text-align:center;"/>
|
66
|
+
<col style="text-align:right;"/>
|
67
|
+
</colgroup>
|
68
|
+
|
69
|
+
<thead>
|
70
|
+
<tr>
|
71
|
+
<th style="text-align:left;"></th>
|
72
|
+
<th style="text-align:center;" colspan="2">Grouping</th>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<th style="text-align:left;">First Header</th>
|
76
|
+
<th style="text-align:center;">Second Header</th>
|
77
|
+
<th style="text-align:right;">Third Header</th>
|
78
|
+
</tr>
|
79
|
+
</thead>
|
80
|
+
|
81
|
+
<tbody>
|
82
|
+
<tr>
|
83
|
+
<td style="text-align:left;">Content</td>
|
84
|
+
<td style="text-align:center;" colspan="2"><em>Long Cell</em></td>
|
85
|
+
</tr>
|
86
|
+
<tr>
|
87
|
+
<td style="text-align:left;">Content</td>
|
88
|
+
<td style="text-align:center;"><strong>Cell</strong></td>
|
89
|
+
<td style="text-align:right;">Cell</td>
|
90
|
+
</tr>
|
91
|
+
</tbody>
|
92
|
+
|
93
|
+
<tbody>
|
94
|
+
<tr>
|
95
|
+
<td style="text-align:left;">New section</td>
|
96
|
+
<td style="text-align:center;">More</td>
|
97
|
+
<td style="text-align:right;">Data</td>
|
98
|
+
</tr>
|
99
|
+
<tr>
|
100
|
+
<td style="text-align:left;">And more</td>
|
101
|
+
<td style="text-align:center;" colspan="2">With an escaped ‘|’</td>
|
102
|
+
</tr>
|
103
|
+
</tbody>
|
104
|
+
</table>
|
105
|
+
<p>And a link to the second <a href="#captionbutnolabel">table</a>.</p>
|
106
|
+
|
107
|
+
<p>And two tables in close proximity:</p>
|
108
|
+
|
109
|
+
<table>
|
110
|
+
<caption id="multimarkdownvs.crayons">MultiMarkdown vs. Crayons</caption>
|
111
|
+
<colgroup>
|
112
|
+
<col style="text-align:left;"/>
|
113
|
+
<col style="text-align:center;"/>
|
114
|
+
<col style="text-align:center;"/>
|
115
|
+
</colgroup>
|
116
|
+
|
117
|
+
<thead>
|
118
|
+
<tr>
|
119
|
+
<th style="text-align:left;">Features</th>
|
120
|
+
<th style="text-align:center;">MultiMarkdown</th>
|
121
|
+
<th style="text-align:center;">Crayons</th>
|
122
|
+
</tr>
|
123
|
+
</thead>
|
124
|
+
|
125
|
+
<tbody>
|
126
|
+
<tr>
|
127
|
+
<td style="text-align:left;">Melts in warm places</td>
|
128
|
+
<td style="text-align:center;">No</td>
|
129
|
+
<td style="text-align:center;">Yes</td>
|
130
|
+
</tr>
|
131
|
+
<tr>
|
132
|
+
<td style="text-align:left;">Mistakes can be easily fixed</td>
|
133
|
+
<td style="text-align:center;">Yes</td>
|
134
|
+
<td style="text-align:center;">No</td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<td style="text-align:left;">Easy to copy documents for friends</td>
|
138
|
+
<td style="text-align:center;">Yes</td>
|
139
|
+
<td style="text-align:center;">No</td>
|
140
|
+
</tr>
|
141
|
+
<tr>
|
142
|
+
<td style="text-align:left;">Fun at parties</td>
|
143
|
+
<td style="text-align:center;">No</td>
|
144
|
+
<td style="text-align:center;">Why not?</td>
|
145
|
+
</tr>
|
146
|
+
</tbody>
|
147
|
+
|
148
|
+
<tbody>
|
149
|
+
<tr>
|
150
|
+
<td style="text-align:left;">Minimum markup1 for maximum quality?</td>
|
151
|
+
<td style="text-align:center;">Yes</td>
|
152
|
+
<td style="text-align:center;">No</td>
|
153
|
+
</tr>
|
154
|
+
</tbody>
|
155
|
+
</table>
|
156
|
+
|
157
|
+
|
158
|
+
<table>
|
159
|
+
<caption id="multimarkdownvs.crayons2">MultiMarkdown vs. Crayons2</caption>
|
160
|
+
<colgroup>
|
161
|
+
<col style="text-align:left;"/>
|
162
|
+
<col style="text-align:center;"/>
|
163
|
+
<col style="text-align:center;"/>
|
164
|
+
</colgroup>
|
165
|
+
|
166
|
+
<thead>
|
167
|
+
<tr>
|
168
|
+
<th style="text-align:left;">Features</th>
|
169
|
+
<th style="text-align:center;">MultiMarkdown</th>
|
170
|
+
<th style="text-align:center;">Crayons</th>
|
171
|
+
</tr>
|
172
|
+
</thead>
|
173
|
+
|
174
|
+
<tbody>
|
175
|
+
<tr>
|
176
|
+
<td style="text-align:left;">Melts in warm places</td>
|
177
|
+
<td style="text-align:center;">No</td>
|
178
|
+
<td style="text-align:center;">Yes</td>
|
179
|
+
</tr>
|
180
|
+
<tr>
|
181
|
+
<td style="text-align:left;">Mistakes can be easily fixed</td>
|
182
|
+
<td style="text-align:center;">Yes</td>
|
183
|
+
<td style="text-align:center;">No</td>
|
184
|
+
</tr>
|
185
|
+
<tr>
|
186
|
+
<td style="text-align:left;">Easy to copy documents for friends</td>
|
187
|
+
<td style="text-align:center;">Yes</td>
|
188
|
+
<td style="text-align:center;">No</td>
|
189
|
+
</tr>
|
190
|
+
<tr>
|
191
|
+
<td style="text-align:left;">Fun at parties</td>
|
192
|
+
<td style="text-align:center;">No</td>
|
193
|
+
<td style="text-align:center;">Why not?</td>
|
194
|
+
</tr>
|
195
|
+
</tbody>
|
196
|
+
|
197
|
+
<tbody>
|
198
|
+
<tr>
|
199
|
+
<td style="text-align:left;">Minimum markup2 for maximum quality?</td>
|
200
|
+
<td style="text-align:center;">Yes</td>
|
201
|
+
<td style="text-align:center;">No</td>
|
202
|
+
</tr>
|
203
|
+
</tbody>
|
204
|
+
</table>
|
205
|
+
|
206
|
+
|
207
|
+
<table>
|
208
|
+
<caption id="captiononly">Caption only</caption>
|
209
|
+
<colgroup>
|
210
|
+
<col style="text-align:left;"/>
|
211
|
+
<col style="text-align:left;"/>
|
212
|
+
</colgroup>
|
213
|
+
|
214
|
+
<thead>
|
215
|
+
<tr>
|
216
|
+
<th style="text-align:left;">Col 1</th>
|
217
|
+
<th style="text-align:left;">Col 2</th>
|
218
|
+
</tr>
|
219
|
+
</thead>
|
220
|
+
|
221
|
+
<tbody>
|
222
|
+
<tr>
|
223
|
+
<td style="text-align:left;">One</td>
|
224
|
+
<td style="text-align:left;">Two </td>
|
225
|
+
</tr>
|
226
|
+
</tbody>
|
227
|
+
</table>
|
228
|
+
|
229
|
+
</body>
|
230
|
+
</html>
|
@@ -0,0 +1,133 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{MultiMarkdown Table Test}
|
3
|
+
\input{mmd-article-begin-doc}
|
4
|
+
\begin{table}[htbp]
|
5
|
+
\begin{minipage}{\linewidth}
|
6
|
+
\setlength{\tymax}{0.5\linewidth}
|
7
|
+
\centering
|
8
|
+
\small
|
9
|
+
\caption{Prototype table caption}
|
10
|
+
\label{prototypetable}
|
11
|
+
\begin{tabular}{@{}lcr@{}} \toprule
|
12
|
+
&\multicolumn{2}{c}{Grouping}\\
|
13
|
+
First Header&Second Header&Third Header\\
|
14
|
+
\midrule
|
15
|
+
Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
|
16
|
+
Content&\textbf{Cell}&Cell\\
|
17
|
+
|
18
|
+
\midrule
|
19
|
+
New section&More&Data\\
|
20
|
+
And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
|
21
|
+
|
22
|
+
\bottomrule
|
23
|
+
|
24
|
+
\end{tabular}
|
25
|
+
\end{minipage}
|
26
|
+
\end{table}
|
27
|
+
|
28
|
+
|
29
|
+
And this is a link to the Prototype table (\autoref{prototypetable}).
|
30
|
+
|
31
|
+
And now a table with only a caption.
|
32
|
+
|
33
|
+
\begin{table}[htbp]
|
34
|
+
\begin{minipage}{\linewidth}
|
35
|
+
\setlength{\tymax}{0.5\linewidth}
|
36
|
+
\centering
|
37
|
+
\small
|
38
|
+
\caption{Caption but no label}
|
39
|
+
\label{captionbutnolabel}
|
40
|
+
\begin{tabular}{@{}lcr@{}} \toprule
|
41
|
+
&\multicolumn{2}{c}{Grouping}\\
|
42
|
+
First Header&Second Header&Third Header\\
|
43
|
+
\midrule
|
44
|
+
Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
|
45
|
+
Content&\textbf{Cell}&Cell\\
|
46
|
+
|
47
|
+
\midrule
|
48
|
+
New section&More&Data\\
|
49
|
+
And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
|
50
|
+
|
51
|
+
\bottomrule
|
52
|
+
|
53
|
+
\end{tabular}
|
54
|
+
\end{minipage}
|
55
|
+
\end{table}
|
56
|
+
|
57
|
+
|
58
|
+
And a link to the second table (\autoref{captionbutnolabel}).
|
59
|
+
|
60
|
+
And two tables in close proximity:
|
61
|
+
|
62
|
+
\begin{table}[htbp]
|
63
|
+
\begin{minipage}{\linewidth}
|
64
|
+
\setlength{\tymax}{0.5\linewidth}
|
65
|
+
\centering
|
66
|
+
\small
|
67
|
+
\caption{MultiMarkdown vs. Crayons}
|
68
|
+
\label{multimarkdownvs.crayons}
|
69
|
+
\begin{tabular}{@{}lcc@{}} \toprule
|
70
|
+
Features&MultiMarkdown&Crayons\\
|
71
|
+
\midrule
|
72
|
+
Melts in warm places&No&Yes\\
|
73
|
+
Mistakes can be easily fixed&Yes&No\\
|
74
|
+
Easy to copy documents for friends&Yes&No\\
|
75
|
+
Fun at parties&No&Why not?\\
|
76
|
+
|
77
|
+
\midrule
|
78
|
+
Minimum markup1 for maximum quality?&Yes&No\\
|
79
|
+
|
80
|
+
\bottomrule
|
81
|
+
|
82
|
+
\end{tabular}
|
83
|
+
\end{minipage}
|
84
|
+
\end{table}
|
85
|
+
|
86
|
+
|
87
|
+
\begin{table}[htbp]
|
88
|
+
\begin{minipage}{\linewidth}
|
89
|
+
\setlength{\tymax}{0.5\linewidth}
|
90
|
+
\centering
|
91
|
+
\small
|
92
|
+
\caption{MultiMarkdown vs. Crayons2}
|
93
|
+
\label{multimarkdownvs.crayons2}
|
94
|
+
\begin{tabular}{@{}lcc@{}} \toprule
|
95
|
+
Features&MultiMarkdown&Crayons\\
|
96
|
+
\midrule
|
97
|
+
Melts in warm places&No&Yes\\
|
98
|
+
Mistakes can be easily fixed&Yes&No\\
|
99
|
+
Easy to copy documents for friends&Yes&No\\
|
100
|
+
Fun at parties&No&Why not?\\
|
101
|
+
|
102
|
+
\midrule
|
103
|
+
Minimum markup2 for maximum quality?&Yes&No\\
|
104
|
+
|
105
|
+
\bottomrule
|
106
|
+
|
107
|
+
\end{tabular}
|
108
|
+
\end{minipage}
|
109
|
+
\end{table}
|
110
|
+
|
111
|
+
|
112
|
+
\begin{table}[htbp]
|
113
|
+
\begin{minipage}{\linewidth}
|
114
|
+
\setlength{\tymax}{0.5\linewidth}
|
115
|
+
\centering
|
116
|
+
\small
|
117
|
+
\caption{Caption only}
|
118
|
+
\label{captiononly}
|
119
|
+
\begin{tabular}{@{}ll@{}} \toprule
|
120
|
+
Col 1&Col 2\\
|
121
|
+
\midrule
|
122
|
+
One&Two \\
|
123
|
+
|
124
|
+
\bottomrule
|
125
|
+
|
126
|
+
\end{tabular}
|
127
|
+
\end{minipage}
|
128
|
+
\end{table}
|
129
|
+
|
130
|
+
|
131
|
+
\input{mmd-memoir-footer}
|
132
|
+
|
133
|
+
\end{document}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Table Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
|
7
|
+
| | Grouping ||
|
8
|
+
First Header | Second Header | Third Header |
|
9
|
+
| ---------- | :----------------: | -----------: |
|
10
|
+
Content | *Long Cell* ||
|
11
|
+
Content | **Cell** | Cell |
|
12
|
+
|
13
|
+
New section | More | Data |
|
14
|
+
And more | With an escaped '\|' ||
|
15
|
+
[Prototype table caption][Prototype table]
|
16
|
+
|
17
|
+
|
18
|
+
And this is a link to the [Prototype table].
|
19
|
+
|
20
|
+
|
21
|
+
And now a table with only a caption.
|
22
|
+
|
23
|
+
|
24
|
+
| | Grouping ||
|
25
|
+
First Header | Second Header | Third Header |
|
26
|
+
| ---------- | :----------------: | -----------: |
|
27
|
+
Content | *Long Cell* ||
|
28
|
+
Content | **Cell** | Cell |
|
29
|
+
|
30
|
+
New section | More | Data |
|
31
|
+
And more | With an escaped '\|' ||
|
32
|
+
[Caption but no label]
|
33
|
+
|
34
|
+
And a link to the second [table][Caption but no label].
|
35
|
+
|
36
|
+
And two tables in close proximity:
|
37
|
+
|
38
|
+
[MultiMarkdown vs. Crayons]
|
39
|
+
| Features | MultiMarkdown | Crayons |
|
40
|
+
----------------------------------- | :-----------: | :------: |
|
41
|
+
Melts in warm places | No | Yes |
|
42
|
+
Mistakes can be easily fixed | Yes | No |
|
43
|
+
Easy to copy documents for friends | Yes | No |
|
44
|
+
Fun at parties | No | Why not? |
|
45
|
+
|
46
|
+
Minimum markup1 for maximum quality? | Yes | No |
|
47
|
+
|
48
|
+
[MultiMarkdown vs. Crayons2]
|
49
|
+
| Features | MultiMarkdown | Crayons |
|
50
|
+
----------------------------------- | :-----------: | :------: |
|
51
|
+
Melts in warm places | No | Yes |
|
52
|
+
Mistakes can be easily fixed | Yes | No |
|
53
|
+
Easy to copy documents for friends | Yes | No |
|
54
|
+
Fun at parties | No | Why not? |
|
55
|
+
|
56
|
+
Minimum markup2 for maximum quality? | Yes | No |
|
57
|
+
|
58
|
+
|
59
|
+
[Caption only]
|
60
|
+
Col 1 | Col 2
|
61
|
+
----- | -----
|
62
|
+
One | Two
|
63
|
+
|