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
@@ -3,23 +3,19 @@
3
3
  \input{mmd-article-begin-doc}
4
4
  \begin{description}
5
5
 
6
- \item[Term 1
7
- ]
6
+ \item[Term 1]
8
7
 
9
- \item[Term 2
10
- ]
8
+ \item[Term 2]
11
9
 
12
10
  Definition a
13
11
 
14
- \item[Term 3
15
- ]
12
+ \item[Term 3]
16
13
 
17
14
  Definition b
18
15
 
19
16
  Definition c
20
17
 
21
- \item[Term 1
22
- ]
18
+ \item[Term 1]
23
19
 
24
20
  This is a definition with two paragraphs. Lorem ipsum
25
21
  dolor sit amet, consectetuer adipiscing elit. Aliquam
@@ -31,8 +27,7 @@ vitae, risus.
31
27
  Second definition for term 1, also wrapped in a paragraph
32
28
  because of the blank line preceding it.
33
29
 
34
- \item[Term 2
35
- ]
30
+ \item[Term 2]
36
31
 
37
32
  This definition has a code block, a blockquote and a list.
38
33
 
@@ -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 Dutch 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
  <p>&#8216;this is a single quote&#8217;</p>
12
13
 
13
14
  <p>&#8222;this is a double quote&#8221;</p>
@@ -19,5 +20,6 @@
19
20
  <p>this is an en &#8211; dash</p>
20
21
 
21
22
  <p>and an ellipsis&#8230;</p>
23
+
22
24
  </body>
23
25
  </html>
@@ -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>Email 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
  <p>Link: <a href="&#x6d;&#x61;&#x69;&#108;&#116;&#111;&#58;&#117;&#x73;&#x65;&#114;&#x36;&#55;&#64;&#x65;&#x78;&#x61;&#x6d;&#112;&#108;&#x65;&#x2e;&#x63;&#x6f;&#109;">&#x75;&#x73;&#101;&#114;&#x36;&#x37;&#64;&#101;&#x78;&#97;&#x6d;&#x70;&#x6c;&#x65;&#x2e;&#x63;&#111;&#x6d;</a>.</p>
12
13
 
13
14
  <ul>
@@ -43,5 +44,6 @@
43
44
 
44
45
  <pre><code>or here: &lt;mailto:user67@example.com&gt;
45
46
  </code></pre>
47
+
46
48
  </body>
47
49
  </html>
@@ -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 English 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
  <p>&#8216;this is a single quote&#8217;</p>
12
13
 
13
14
  <p>&#8220;this is a double quote&#8221;</p>
@@ -19,5 +20,6 @@
19
20
  <p>this is an en &#8211; dash</p>
20
21
 
21
22
  <p>and an ellipsis&#8230;</p>
23
+
22
24
  </body>
23
25
  </html>
@@ -1,16 +1,18 @@
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 Error 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
  <p>This document contains &#8220;errors&#8221; - the output shouldn&#8217;t match what was
12
13
  intended, but it shouldn&#8217;t crash MMD.</p>
13
14
 
14
15
  <p>This is a missing link reference [some text][missing] and ![missing image][missing2].</p>
16
+
15
17
  </body>
16
18
  </html>
@@ -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 Footer 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
  <p>Here is some text containing a footnote.<a href="#fn:1" id="fnref:1" title="see footnote" class="footnote">[1]</a></p>
12
13
 
13
14
  <blockquote>
@@ -28,19 +29,20 @@
28
29
  <ol>
29
30
 
30
31
  <li id="fn:1">
31
- <p>Here is the text of the footnote itself. It also has a <a href="http://somelink.com">link</a>.</p> <a href="#fnref:1" title="return to article" class="reversefootnote">&#160;&#8617;</a>
32
+ <p>Here is the text of the footnote itself. It also has a <a href="http://somelink.com">link</a>. <a href="#fnref:1" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
32
33
  </li>
33
34
 
34
35
  <li id="fn:2">
35
- <p>Note # 2.</p> <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a>
36
+ <p>Note # 2. <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
36
37
  </li>
37
38
 
38
39
  <li id="fn:3">
39
- <p>Finis</p> <a href="#fnref:3" title="return to article" class="reversefootnote">&#160;&#8617;</a>
40
+ <p>Finis <a href="#fnref:3" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
40
41
  </li>
41
42
 
42
43
  </ol>
43
44
  </div>
44
45
 
46
+
45
47
  </body>
46
48
  </html>
@@ -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 French 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
  <p>&#39;this is a single quote&#8217;</p>
12
13
 
13
14
  <p>&#171;this is a double quote&#187;</p>
@@ -19,5 +20,6 @@
19
20
  <p>this is an en &#8211; dash</p>
20
21
 
21
22
  <p>and an ellipsis&#8230;</p>
23
+
22
24
  </body>
23
25
  </html>
@@ -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 German 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
  <p>&#8218;this is a single quote&#8216;</p>
12
13
 
13
14
  <p>&#8222;this is a double quote&#8220;</p>
@@ -19,5 +20,6 @@
19
20
  <p>this is an en &#8211; dash</p>
20
21
 
21
22
  <p>and an ellipsis&#8230;</p>
23
+
22
24
  </body>
23
25
  </html>
@@ -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 German Guillemets 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
  <p>&#8250;this is a single quote&#8249;</p>
12
13
 
13
14
  <p>&#187;this is a double quote&#171;</p>
@@ -19,5 +20,6 @@
19
20
  <p>this is an en &#8211; dash</p>
20
21
 
21
22
  <p>and an ellipsis&#8230;</p>
23
+
22
24
  </body>
23
25
  </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 Glossary Test</title>
7
7
  <link type="text/css" rel="stylesheet" href="http://fletcherpenney.net/css/document.css"/>
@@ -9,6 +9,7 @@
9
9
  <meta name="latexfooter" content="mmd-memoir-footer"/>
10
10
  </head>
11
11
  <body>
12
+
12
13
  <p>MultiMarkdown has a special format for footnotes that should represent
13
14
  glossary terms. This doesn&#8217;t make much difference in XHTML (because there is
14
15
  no such thing as a glossary in XHTML), but can be used to generate a glossary
@@ -32,15 +33,16 @@ symbols, we put in the optional sort key <code>ampersand</code> to control sorti
32
33
  <ol>
33
34
 
34
35
  <li id="fn:1">
35
- <span class="glossary name">Glossary </span>: <p>A section at the end &#8230;</p> <a href="#fnref:1" title="return to article" class="reversefootnote">&#160;&#8617;</a>
36
+ <span class="glossary name">Glossary </span>: <p>A section at the end &#8230; <a href="#fnref:1" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
36
37
  </li>
37
38
 
38
39
  <li id="fn:2">
39
- <span class="glossary name">&amp; </span><span class="glossary sort" style="display:none">ampersand</span>: <p>A punctuation mark &#8230;</p> <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a>
40
+ <span class="glossary name">&amp; </span><span class="glossary sort" style="display:none">ampersand</span>: <p>A punctuation mark &#8230; <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
40
41
  </li>
41
42
 
42
43
  </ol>
43
44
  </div>
44
45
 
46
+
45
47
  </body>
46
48
  </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 Headers 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
  <h3 id="normalheader">Normal Header</h3>
13
14
 
14
15
  <p>plain text</p>
@@ -42,5 +43,8 @@
42
43
  <h3 id="referencelinknotlabellabel">Reference link not label <a href="http://example.com/">label</a></h3>
43
44
 
44
45
  <h3 id="linknotlabel">Link <a href="http://example.net/">not label</a></h3>
46
+
47
+ <p>And link to [label2] and <a href="http://example.com/">label1</a> and <a href="#label">label</a>.</p>
48
+
45
49
  </body>
46
50
  </html>
@@ -47,6 +47,8 @@ The following should still be detected as headers:
47
47
  \section{Link \href{http://example.net/}{not label}}
48
48
  \label{linknotlabel}
49
49
 
50
+ And link to [label2] and \href{http://example.com/}{label1}\footnote{\href{http://example.com/}{http:/\slash example.com\slash }} and label (\autoref{label}).
51
+
50
52
  \input{mmd-memoir-footer}
51
53
 
52
54
  \end{document}
@@ -47,3 +47,5 @@ The following should still be detected as headers:
47
47
  ## Link [not label](http://example.net/) ##
48
48
 
49
49
  [label1]: http://example.com/
50
+
51
+ And link to [label2] and [label1] and [label].
@@ -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>Line Break 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
  <p>This is a paragraph.
12
13
  This is the same paragraph.</p>
13
14
 
@@ -16,5 +17,6 @@ Second line in same paragraph.</p>
16
17
 
17
18
  <p>New paragraph.<br/>
18
19
  Second line in same paragraph with linebreak at end. </p>
20
+
19
21
  </body>
20
22
  </html>
@@ -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>Link Attributes 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
  <p>This is a formatted <img src="http://path.to/image" alt="image" id="image" title="Image title" style="height:400px;width:40px;" /> and a <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a> with attributes.</p>
12
13
 
13
14
  <figure>
@@ -50,5 +51,6 @@
50
51
  <p><a href="http://path.to/link---1.html">link&#8212;1</a></p>
51
52
 
52
53
  <p>Test link and markup <img src="http://path.to/image" alt="and this but not that" id="image-attr" title="Test *this* and **this**" /></p>
54
+
53
55
  </body>
54
56
  </html>
@@ -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>MMD List Parsing 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
  <ul>
12
13
  <li><p>Item 1</p>
13
14
 
@@ -16,5 +17,6 @@ The following blank line has 4 spaces.</p></li>
16
17
  </ul>
17
18
 
18
19
  <p>Paragraph following the list that shouldn&#8217;t be part of the list item.</p>
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>Markdown in HTML Test</title>
7
7
  <meta name="latexmode" content="memoir"/>
@@ -9,11 +9,13 @@
9
9
  <meta name="latexfooter" content="mmd-memoir-footer"/>
10
10
  </head>
11
11
  <body>
12
+
12
13
  <div>This is *not* Markdown **encoded**.</div>
13
14
  <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
14
15
  <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
15
16
  <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
16
17
  <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
17
18
  <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
19
+
18
20
  </body>
19
21
  </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 Math Example</title>
7
7
  <meta name="latexinput" content="mmd-article-begin-doc"/>
@@ -9,6 +9,7 @@
9
9
  <script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script>
10
10
  </head>
11
11
  <body>
12
+
12
13
  <p>An example of math within a paragraph &#8212; <span class="math">\({e}^{i\pi }+1=0\)</span> &#8212; easy
13
14
  enough.</p>
14
15
 
@@ -17,5 +18,6 @@ enough.</p>
17
18
  <p><span class="math">\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]</span></p>
18
19
 
19
20
  <p>That&#8217;s it.</p>
21
+
20
22
  </body>
21
23
  </html>