rpeg-multimarkdown 0.1.1 → 0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. checksums.yaml +7 -0
  2. data/README.markdown +7 -4
  3. data/Rakefile +3 -3
  4. data/bin/rpeg-multimarkdown +7 -7
  5. data/ext/extconf.rb +2 -2
  6. data/ext/markdown.c +14 -0
  7. data/ext/markdown_lib.c +72 -18
  8. data/ext/markdown_lib.h +18 -8
  9. data/ext/markdown_output.c +187 -58
  10. data/ext/markdown_parser.c +8315 -6224
  11. data/ext/markdown_peg.h +5 -4
  12. data/ext/odf.c +7 -1
  13. data/ext/odf.h +8 -0
  14. data/ext/parsing_functions.c +42 -2
  15. data/ext/parsing_functions.h +17 -0
  16. data/ext/utility_functions.c +60 -56
  17. data/ext/utility_functions.h +93 -0
  18. data/lib/peg_multimarkdown.rb +16 -16
  19. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +2 -2
  20. data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.html +35 -0
  21. data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.text +45 -0
  22. data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.html +14 -0
  23. data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.text +16 -0
  24. data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.html +9 -0
  25. data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.text +10 -0
  26. data/test/MultiMarkdownTest/CompatibilityTests/Citations.html +40 -0
  27. data/test/MultiMarkdownTest/CompatibilityTests/Citations.text +42 -0
  28. data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.html +40 -0
  29. data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.text +39 -0
  30. data/test/MultiMarkdownTest/CompatibilityTests/Dutch.html +17 -0
  31. data/test/MultiMarkdownTest/CompatibilityTests/Dutch.text +17 -0
  32. data/test/MultiMarkdownTest/CompatibilityTests/Email.html +40 -0
  33. data/test/MultiMarkdownTest/CompatibilityTests/Email.text +31 -0
  34. data/test/MultiMarkdownTest/CompatibilityTests/English.html +17 -0
  35. data/test/MultiMarkdownTest/CompatibilityTests/English.text +17 -0
  36. data/test/MultiMarkdownTest/CompatibilityTests/Errors.html +9 -0
  37. data/test/MultiMarkdownTest/CompatibilityTests/Errors.text +11 -0
  38. data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.html +23 -0
  39. data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.text +25 -0
  40. data/test/MultiMarkdownTest/CompatibilityTests/French.html +17 -0
  41. data/test/MultiMarkdownTest/CompatibilityTests/French.text +17 -0
  42. data/test/MultiMarkdownTest/CompatibilityTests/German.html +17 -0
  43. data/test/MultiMarkdownTest/CompatibilityTests/German.text +17 -0
  44. data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.html +17 -0
  45. data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.text +17 -0
  46. data/test/MultiMarkdownTest/CompatibilityTests/Glossary.html +29 -0
  47. data/test/MultiMarkdownTest/CompatibilityTests/Glossary.text +28 -0
  48. data/test/MultiMarkdownTest/CompatibilityTests/Headers.html +42 -0
  49. data/test/MultiMarkdownTest/CompatibilityTests/Headers.text +51 -0
  50. data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.html +13 -0
  51. data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.text +15 -0
  52. data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.html +35 -0
  53. data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.text +51 -0
  54. data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.html +13 -0
  55. data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.text +11 -0
  56. data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.html +13 -0
  57. data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.text +19 -0
  58. data/test/MultiMarkdownTest/CompatibilityTests/Math.html +14 -0
  59. data/test/MultiMarkdownTest/CompatibilityTests/Math.text +15 -0
  60. data/test/MultiMarkdownTest/CompatibilityTests/MetaData.html +14 -0
  61. data/test/MultiMarkdownTest/CompatibilityTests/MetaData.text +14 -0
  62. data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.html +3 -0
  63. data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.text +4 -0
  64. data/test/MultiMarkdownTest/CompatibilityTests/Sanity.html +77 -0
  65. data/test/MultiMarkdownTest/CompatibilityTests/Sanity.text +77 -0
  66. data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.html +22 -0
  67. data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.text +22 -0
  68. data/test/MultiMarkdownTest/CompatibilityTests/Swedish.html +17 -0
  69. data/test/MultiMarkdownTest/CompatibilityTests/Swedish.text +17 -0
  70. data/test/MultiMarkdownTest/CompatibilityTests/Tables.html +65 -0
  71. data/test/MultiMarkdownTest/CompatibilityTests/Tables.text +71 -0
  72. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +5 -10
  73. data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +2 -2
  74. data/test/MultiMarkdownTest/MemoirTests/Tables.tex +10 -10
  75. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +4 -2
  76. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +4 -2
  77. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +4 -2
  78. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +6 -4
  79. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +9 -12
  80. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +5 -10
  81. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +4 -2
  82. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +4 -2
  83. data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +4 -2
  84. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +4 -2
  85. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +7 -5
  86. data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +4 -2
  87. data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +4 -2
  88. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +4 -2
  89. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +6 -4
  90. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +6 -2
  91. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +2 -0
  92. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +2 -0
  93. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +4 -2
  94. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +4 -2
  95. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +4 -2
  96. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +4 -2
  97. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +4 -2
  98. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +4 -2
  99. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.html +3 -0
  100. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.tex +3 -0
  101. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.text +4 -0
  102. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +4 -2
  103. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +2 -2
  104. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +4 -2
  105. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +4 -2
  106. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +45 -2
  107. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +32 -10
  108. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +8 -0
  109. data/test/multimarkdown_test.rb +5 -5
  110. metadata +92 -50
@@ -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,65 @@
1
+ <p>latex input: mmd-article-header
2
+ Title: MultiMarkdown Table Test<br/>
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer</p>
5
+
6
+ <p>| | Grouping ||<br/>
7
+ First Header | Second Header | Third Header |<br/>
8
+ | ---------- | :----------------: | -----------: |<br/>
9
+ Content | <em>Long Cell</em> ||<br/>
10
+ Content | <strong>Cell</strong> | Cell | </p>
11
+
12
+ <p>New section | More | Data |<br/>
13
+ And more | With an escaped '|' ||<br/>
14
+ [Prototype table caption][Prototype table] </p>
15
+
16
+ <p>And this is a link to the [Prototype table].</p>
17
+
18
+ <p>And now a table with only a caption.</p>
19
+
20
+ <p>| | Grouping ||<br/>
21
+ First Header | Second Header | Third Header |<br/>
22
+ | ---------- | :----------------: | -----------: |<br/>
23
+ Content | <em>Long Cell</em> ||<br/>
24
+ Content | <strong>Cell</strong> | Cell | </p>
25
+
26
+ <p>New section | More | Data |<br/>
27
+ And more | With an escaped '|' ||<br/>
28
+ [Caption but no label] </p>
29
+
30
+ <p>And a link to the second [table][Caption but no label].</p>
31
+
32
+ <p>And two tables in close proximity:</p>
33
+
34
+ <p>[MultiMarkdown vs. Crayons]<br/>
35
+ | Features | MultiMarkdown | Crayons |<br/>
36
+ ----------------------------------- | :-----------: | :------: |<br/>
37
+ Melts in warm places | No | Yes |<br/>
38
+ Mistakes can be easily fixed | Yes | No |<br/>
39
+ Easy to copy documents for friends | Yes | No |<br/>
40
+ Fun at parties | No | Why not? | </p>
41
+
42
+ <p>Minimum markup1 for maximum quality? | Yes | No | </p>
43
+
44
+ <p>[MultiMarkdown vs. Crayons2]<br/>
45
+ | Features | MultiMarkdown | Crayons |<br/>
46
+ ----------------------------------- | :-----------: | :------: |<br/>
47
+ Melts in warm places | No | Yes |<br/>
48
+ Mistakes can be easily fixed | Yes | No |<br/>
49
+ Easy to copy documents for friends | Yes | No |<br/>
50
+ Fun at parties | No | Why not? | </p>
51
+
52
+ <p>Minimum markup2 for maximum quality? | Yes | No | </p>
53
+
54
+ <p>[Caption only]<br/>
55
+ Col 1 | Col 2<br/>
56
+ ----- | -----<br/>
57
+ One | Two </p>
58
+
59
+ <p>[Line Wrapping Test]<br/>
60
+ | Long Cell | MultiMarkdown | Crayons |<br/>
61
+ ----------------------------------+ | :-----------: | :------: |<br/>
62
+ Melts in warm places | No | Yes |<br/>
63
+ Mistakes can be easily fixed | Yes | No |<br/>
64
+ Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature | Yes | No |<br/>
65
+ Fun at parties | No | Why not? | </p>
@@ -0,0 +1,71 @@
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
+
64
+
65
+ [Line Wrapping Test]
66
+ | Long Cell | MultiMarkdown | Crayons |
67
+ ----------------------------------+ | :-----------: | :------: |
68
+ Melts in warm places | No | Yes |
69
+ Mistakes can be easily fixed | Yes | No |
70
+ Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature | Yes | No |
71
+ Fun at parties | No | Why not? |
@@ -4,23 +4,19 @@
4
4
  \input{mmd-article-begin-doc}
5
5
  \begin{description}
6
6
 
7
- \item[Term 1
8
- ]
7
+ \item[Term 1]
9
8
 
10
- \item[Term 2
11
- ]
9
+ \item[Term 2]
12
10
 
13
11
  Definition a
14
12
 
15
- \item[Term 3
16
- ]
13
+ \item[Term 3]
17
14
 
18
15
  Definition b
19
16
 
20
17
  Definition c
21
18
 
22
- \item[Term 1
23
- ]
19
+ \item[Term 1]
24
20
 
25
21
  This is a definition with two paragraphs. Lorem ipsum
26
22
  dolor sit amet, consectetuer adipiscing elit. Aliquam
@@ -32,8 +28,7 @@ vitae, risus.
32
28
  Second definition for term 1, also wrapped in a paragraph
33
29
  because of the blank line preceding it.
34
30
 
35
- \item[Term 2
36
- ]
31
+ \item[Term 2]
37
32
 
38
33
  This definition has a code block, a blockquote and a list.
39
34
 
@@ -84,14 +84,14 @@ Nowhere \autoref{nowhere}
84
84
  \small
85
85
  \caption{table}
86
86
  \label{table}
87
- \begin{tabular}{@{}ll@{}} \toprule
87
+ \begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
88
88
  a&b\\
89
89
  \midrule
90
90
  x&y\\
91
91
 
92
92
  \bottomrule
93
93
 
94
- \end{tabular}
94
+ \end{tabulary}
95
95
  \end{minipage}
96
96
  \end{table}
97
97
 
@@ -9,7 +9,7 @@
9
9
  \small
10
10
  \caption{Prototype table caption}
11
11
  \label{prototypetable}
12
- \begin{tabular}{@{}lcr@{}} \toprule
12
+ \begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
13
13
  &\multicolumn{2}{c}{Grouping}\\
14
14
  First Header&Second Header&Third Header\\
15
15
  \midrule
@@ -22,7 +22,7 @@ And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
22
22
 
23
23
  \bottomrule
24
24
 
25
- \end{tabular}
25
+ \end{tabulary}
26
26
  \end{minipage}
27
27
  \end{table}
28
28
 
@@ -38,7 +38,7 @@ And now a table with only a caption.
38
38
  \small
39
39
  \caption{Caption but no label}
40
40
  \label{captionbutnolabel}
41
- \begin{tabular}{@{}lcr@{}} \toprule
41
+ \begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
42
42
  &\multicolumn{2}{c}{Grouping}\\
43
43
  First Header&Second Header&Third Header\\
44
44
  \midrule
@@ -51,7 +51,7 @@ And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
51
51
 
52
52
  \bottomrule
53
53
 
54
- \end{tabular}
54
+ \end{tabulary}
55
55
  \end{minipage}
56
56
  \end{table}
57
57
 
@@ -67,7 +67,7 @@ And two tables in close proximity:
67
67
  \small
68
68
  \caption{MultiMarkdown vs. Crayons}
69
69
  \label{multimarkdownvs.crayons}
70
- \begin{tabular}{@{}lcc@{}} \toprule
70
+ \begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
71
71
  Features&MultiMarkdown&Crayons\\
72
72
  \midrule
73
73
  Melts in warm places&No&Yes\\
@@ -80,7 +80,7 @@ Minimum markup1 for maximum quality?&Yes&No\\
80
80
 
81
81
  \bottomrule
82
82
 
83
- \end{tabular}
83
+ \end{tabulary}
84
84
  \end{minipage}
85
85
  \end{table}
86
86
 
@@ -92,7 +92,7 @@ Minimum markup1 for maximum quality?&Yes&No\\
92
92
  \small
93
93
  \caption{MultiMarkdown vs. Crayons2}
94
94
  \label{multimarkdownvs.crayons2}
95
- \begin{tabular}{@{}lcc@{}} \toprule
95
+ \begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
96
96
  Features&MultiMarkdown&Crayons\\
97
97
  \midrule
98
98
  Melts in warm places&No&Yes\\
@@ -105,7 +105,7 @@ Minimum markup2 for maximum quality?&Yes&No\\
105
105
 
106
106
  \bottomrule
107
107
 
108
- \end{tabular}
108
+ \end{tabulary}
109
109
  \end{minipage}
110
110
  \end{table}
111
111
 
@@ -117,14 +117,14 @@ Minimum markup2 for maximum quality?&Yes&No\\
117
117
  \small
118
118
  \caption{Caption only}
119
119
  \label{captiononly}
120
- \begin{tabular}{@{}ll@{}} \toprule
120
+ \begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
121
121
  Col 1&Col 2\\
122
122
  \midrule
123
123
  One&Two \\
124
124
 
125
125
  \bottomrule
126
126
 
127
- \end{tabular}
127
+ \end{tabulary}
128
128
  \end{minipage}
129
129
  \end{table}
130
130
 
@@ -1,13 +1,14 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
1
  <!DOCTYPE html>
3
- <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <html>
4
3
  <head>
4
+ <meta charset="utf-8"/>
5
5
  <meta name="latexinput" content="mmd-article-header"/>
6
6
  <title>MultiMarkdown Autoreference Test</title>
7
7
  <meta name="latexinput" content="mmd-article-begin-doc"/>
8
8
  <meta name="latexfooter" content="mmd-memoir-footer"/>
9
9
  </head>
10
10
  <body>
11
+
11
12
  <h2 id="muststartwithalpha">109&amp;^*&amp;#^() Must Start With Alpha</h2>
12
13
 
13
14
  <h2 id="stripoutcharacters">Strip out &amp;^% characters ^&amp;*^</h2>
@@ -37,5 +38,6 @@
37
38
  <h2 id="label2">Manual Header 2</h2>
38
39
 
39
40
  <h3 id="label3">Manual Header 3</h3>
41
+
40
42
  </body>
41
43
  </html>
@@ -1,7 +1,7 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
1
  <!DOCTYPE html>
3
- <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <html>
4
3
  <head>
4
+ <meta charset="utf-8"/>
5
5
  <meta name="latexinput" content="mmd-article-header"/>
6
6
  <title>MultiMarkdown Base Header Level Test</title>
7
7
  <meta name="latexmode" content="memoir"/>
@@ -9,6 +9,7 @@
9
9
  <meta name="latexfooter" content="mmd-memoir-footer"/>
10
10
  </head>
11
11
  <body>
12
+
12
13
  <h2 id="thisshouldbeh2">This should be h2</h2>
13
14
 
14
15
  <h3 id="thisshouldbeh3">This should be h3</h3>
@@ -16,5 +17,6 @@
16
17
  <h6 id="thisshouldbeh6">This should be h6</h6>
17
18
 
18
19
  <h6 id="thisshouldbeh6inhtmlh7inlatex">This should be h6 in HTML h7 in LaTeX</h6>
20
+
19
21
  </body>
20
22
  </html>
@@ -1,7 +1,7 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
1
  <!DOCTYPE html>
3
- <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <html>
4
3
  <head>
4
+ <meta charset="utf-8"/>
5
5
  <meta name="latexinput" content="mmd-article-header"/>
6
6
  <title>MultiMarkdown BibTeX Test</title>
7
7
  <meta name="bibtex" content="bibtex"/>
@@ -9,8 +9,10 @@
9
9
  <meta name="latexfooter" content="mmd-memoir-footer"/>
10
10
  </head>
11
11
  <body>
12
+
12
13
  <p>This is a test of BibTeX Support.<span class="externalcitation">[#Knuth:1968]</span></p>
13
14
 
14
15
  <p>And a locator.<span class="externalcitation">[p. 123][#Knuth:1981]</span></p>
16
+
15
17
  </body>
16
18
  </html>
@@ -1,7 +1,7 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
1
  <!DOCTYPE html>
3
- <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <html>
4
3
  <head>
4
+ <meta charset="utf-8"/>
5
5
  <meta name="latexinput" content="mmd-article-header"/>
6
6
  <title>MultiMarkdown Citation Test</title>
7
7
  <link type="text/css" rel="stylesheet" href="http://fletcherpenney.net/css/document.css"/>
@@ -10,6 +10,7 @@
10
10
  <meta name="latexfooter" content="mmd-memoir-footer"/>
11
11
  </head>
12
12
  <body>
13
+
13
14
  <p>This is a test of citations<a class="citation" href="#fn:1" title="Jump to citation">[1]<span class="citekey" style="display:none">first</span></a> for<a href="#fn:2" id="fnref:2" title="see footnote" class="footnote">[2]</a> MultiMarkdown<a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a>.</p>
14
15
 
15
16
  <p>And an unlisted citation.<span class="externalcitation">[#Author:1988]</span>.</p>
@@ -42,14 +43,14 @@
42
43
  </li>
43
44
 
44
45
  <li id="fn:2">
45
- <p>A footnote for good measure.</p> <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a>
46
+ <p>A footnote for good measure. <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
46
47
  </li>
47
48
 
48
49
  <li id="fn:3" class="citation"><span class="citekey" style="display:none">second</span><p>Jane Doe. <em>Another Totally Fake Book</em>. Vanity Press, 2008.</p>
49
50
  </li>
50
51
 
51
52
  <li id="fn:4">
52
- <p>And another footnote</p> <a href="#fnref:4" title="return to article" class="reversefootnote">&#160;&#8617;</a>
53
+ <p>And another footnote <a href="#fnref:4" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
53
54
  </li>
54
55
 
55
56
  <li id="fn:5" class="citation"><span class="citekey" style="display:none">third</span><p>Jim Doe. <em>Yet Another Fake Book</em>. Vanity Press, 2010.</p>
@@ -58,5 +59,6 @@
58
59
  </ol>
59
60
  </div>
60
61
 
62
+
61
63
  </body>
62
64
  </html>
@@ -1,28 +1,25 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
1
  <!DOCTYPE html>
3
- <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <html>
4
3
  <head>
4
+ <meta charset="utf-8"/>
5
5
  <meta name="latexinput" content="mmd-article-header"/>
6
6
  <title>MultiMarkdown Definition List Test</title>
7
7
  <meta name="latexinput" content="mmd-article-begin-doc"/>
8
8
  <meta name="latexfooter" content="mmd-memoir-footer"/>
9
9
  </head>
10
10
  <body>
11
+
11
12
  <dl>
12
- <dt>Term 1
13
- </dt>
14
- <dt>Term 2
15
- </dt>
13
+ <dt>Term 1</dt>
14
+ <dt>Term 2</dt>
16
15
  <dd>Definition a</dd>
17
16
 
18
- <dt>Term 3
19
- </dt>
17
+ <dt>Term 3</dt>
20
18
  <dd>Definition b</dd>
21
19
 
22
20
  <dd>Definition c</dd>
23
21
 
24
- <dt>Term 1
25
- </dt>
22
+ <dt>Term 1</dt>
26
23
  <dd>
27
24
  <p>This is a definition with two paragraphs. Lorem ipsum
28
25
  dolor sit amet, consectetuer adipiscing elit. Aliquam
@@ -35,8 +32,7 @@ vitae, risus.</p></dd>
35
32
  <p>Second definition for term 1, also wrapped in a paragraph
36
33
  because of the blank line preceding it.</p></dd>
37
34
 
38
- <dt>Term 2
39
- </dt>
35
+ <dt>Term 2</dt>
40
36
  <dd>
41
37
  <p>This definition has a code block, a blockquote and a list.</p>
42
38
 
@@ -56,5 +52,6 @@ on two lines.</p>
56
52
 
57
53
 
58
54
  <p>And this is a regular paragraph.</p>
55
+
59
56
  </body>
60
57
  </html>