rpeg-multimarkdown 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. data/LICENSE +94 -0
  2. data/README.markdown +58 -0
  3. data/Rakefile +171 -0
  4. data/bin/rpeg-multimarkdown +128 -0
  5. data/ext/extconf.h +3 -0
  6. data/ext/extconf.rb +15 -0
  7. data/ext/markdown.c +88 -0
  8. data/ext/markdown_lib.c +211 -0
  9. data/ext/markdown_lib.h +28 -0
  10. data/ext/markdown_output.c +2704 -0
  11. data/ext/markdown_parser.c +8275 -0
  12. data/ext/markdown_peg.h +142 -0
  13. data/ext/odf.c +179 -0
  14. data/ext/odf.h +3 -0
  15. data/ext/parsing_functions.c +182 -0
  16. data/ext/utility_functions.c +535 -0
  17. data/lib/multimarkdown.rb +1 -0
  18. data/lib/peg_multimarkdown.rb +74 -0
  19. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.html +76 -0
  20. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +64 -0
  21. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.text +38 -0
  22. data/test/MultiMarkdownTest/MarkdownTest.pl +182 -0
  23. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.html +42 -0
  24. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex +47 -0
  25. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.text +46 -0
  26. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.html +20 -0
  27. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.tex +19 -0
  28. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.text +16 -0
  29. data/test/MultiMarkdownTest/MemoirTests/BibTeX.html +17 -0
  30. data/test/MultiMarkdownTest/MemoirTests/BibTeX.tex +12 -0
  31. data/test/MultiMarkdownTest/MemoirTests/BibTeX.text +11 -0
  32. data/test/MultiMarkdownTest/MemoirTests/Citations.html +63 -0
  33. data/test/MultiMarkdownTest/MemoirTests/Citations.tex +48 -0
  34. data/test/MultiMarkdownTest/MemoirTests/Citations.text +43 -0
  35. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.html +61 -0
  36. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +63 -0
  37. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.text +40 -0
  38. data/test/MultiMarkdownTest/MemoirTests/Dutch.html +23 -0
  39. data/test/MultiMarkdownTest/MemoirTests/Dutch.tex +18 -0
  40. data/test/MultiMarkdownTest/MemoirTests/Dutch.text +17 -0
  41. data/test/MultiMarkdownTest/MemoirTests/Email.html +48 -0
  42. data/test/MultiMarkdownTest/MemoirTests/Email.tex +61 -0
  43. data/test/MultiMarkdownTest/MemoirTests/Email.text +32 -0
  44. data/test/MultiMarkdownTest/MemoirTests/English.html +23 -0
  45. data/test/MultiMarkdownTest/MemoirTests/English.tex +18 -0
  46. data/test/MultiMarkdownTest/MemoirTests/English.text +17 -0
  47. data/test/MultiMarkdownTest/MemoirTests/Footnotes.html +47 -0
  48. data/test/MultiMarkdownTest/MemoirTests/Footnotes.tex +28 -0
  49. data/test/MultiMarkdownTest/MemoirTests/Footnotes.text +26 -0
  50. data/test/MultiMarkdownTest/MemoirTests/French.html +23 -0
  51. data/test/MultiMarkdownTest/MemoirTests/French.tex +18 -0
  52. data/test/MultiMarkdownTest/MemoirTests/French.text +17 -0
  53. data/test/MultiMarkdownTest/MemoirTests/German.html +23 -0
  54. data/test/MultiMarkdownTest/MemoirTests/German.tex +18 -0
  55. data/test/MultiMarkdownTest/MemoirTests/German.text +17 -0
  56. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.html +23 -0
  57. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.tex +18 -0
  58. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.text +17 -0
  59. data/test/MultiMarkdownTest/MemoirTests/Glossary.html +47 -0
  60. data/test/MultiMarkdownTest/MemoirTests/Glossary.tex +30 -0
  61. data/test/MultiMarkdownTest/MemoirTests/Glossary.text +29 -0
  62. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.html +21 -0
  63. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.tex +16 -0
  64. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.text +16 -0
  65. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.html +40 -0
  66. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.tex +61 -0
  67. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.text +51 -0
  68. data/test/MultiMarkdownTest/MemoirTests/Math.html +22 -0
  69. data/test/MultiMarkdownTest/MemoirTests/Math.tex +16 -0
  70. data/test/MultiMarkdownTest/MemoirTests/Math.text +16 -0
  71. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.html +24 -0
  72. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.tex +23 -0
  73. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.text +20 -0
  74. data/test/MultiMarkdownTest/MemoirTests/MetaData.html +22 -0
  75. data/test/MultiMarkdownTest/MemoirTests/MetaData.tex +14 -0
  76. data/test/MultiMarkdownTest/MemoirTests/MetaData.text +15 -0
  77. data/test/MultiMarkdownTest/MemoirTests/Sanity.html +100 -0
  78. data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +101 -0
  79. data/test/MultiMarkdownTest/MemoirTests/Sanity.text +78 -0
  80. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.html +26 -0
  81. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.tex +21 -0
  82. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.text +19 -0
  83. data/test/MultiMarkdownTest/MemoirTests/Swedish.html +23 -0
  84. data/test/MultiMarkdownTest/MemoirTests/Swedish.tex +18 -0
  85. data/test/MultiMarkdownTest/MemoirTests/Swedish.text +17 -0
  86. data/test/MultiMarkdownTest/MemoirTests/Tables.html +221 -0
  87. data/test/MultiMarkdownTest/MemoirTests/Tables.tex +134 -0
  88. data/test/MultiMarkdownTest/MemoirTests/Tables.text +64 -0
  89. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +41 -0
  90. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.tex +46 -0
  91. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.text +45 -0
  92. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +20 -0
  93. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex +19 -0
  94. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text +16 -0
  95. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +16 -0
  96. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex +11 -0
  97. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text +10 -0
  98. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +62 -0
  99. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.tex +47 -0
  100. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.text +42 -0
  101. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +60 -0
  102. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +62 -0
  103. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.text +39 -0
  104. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +23 -0
  105. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.tex +18 -0
  106. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.text +17 -0
  107. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +47 -0
  108. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.tex +54 -0
  109. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.text +31 -0
  110. data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +23 -0
  111. data/test/MultiMarkdownTest/MultiMarkdownTests/English.tex +18 -0
  112. data/test/MultiMarkdownTest/MultiMarkdownTests/English.text +17 -0
  113. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +16 -0
  114. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.tex +11 -0
  115. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.text +11 -0
  116. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +46 -0
  117. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.tex +24 -0
  118. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.text +25 -0
  119. data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +23 -0
  120. data/test/MultiMarkdownTest/MultiMarkdownTests/French.tex +18 -0
  121. data/test/MultiMarkdownTest/MultiMarkdownTests/French.text +17 -0
  122. data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +23 -0
  123. data/test/MultiMarkdownTest/MultiMarkdownTests/German.tex +18 -0
  124. data/test/MultiMarkdownTest/MultiMarkdownTests/German.text +17 -0
  125. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +23 -0
  126. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.tex +18 -0
  127. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.text +17 -0
  128. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +46 -0
  129. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.tex +26 -0
  130. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.text +28 -0
  131. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +46 -0
  132. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +52 -0
  133. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +49 -0
  134. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +20 -0
  135. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.tex +15 -0
  136. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.text +15 -0
  137. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +54 -0
  138. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.tex +60 -0
  139. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.text +50 -0
  140. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +20 -0
  141. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.tex +17 -0
  142. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.text +11 -0
  143. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +19 -0
  144. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.tex +13 -0
  145. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.text +19 -0
  146. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +21 -0
  147. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.tex +15 -0
  148. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.text +15 -0
  149. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +21 -0
  150. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex +13 -0
  151. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text +14 -0
  152. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +104 -0
  153. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +100 -0
  154. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text +77 -0
  155. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +29 -0
  156. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.tex +24 -0
  157. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.text +22 -0
  158. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +23 -0
  159. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.tex +18 -0
  160. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.text +17 -0
  161. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +230 -0
  162. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +133 -0
  163. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +63 -0
  164. data/test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib +119 -0
  165. data/test/MultiMarkdownTest/README.md +58 -0
  166. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.html +17 -0
  167. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.text +21 -0
  168. data/test/MultiMarkdownTest/Tests/Auto links.html +18 -0
  169. data/test/MultiMarkdownTest/Tests/Auto links.text +13 -0
  170. data/test/MultiMarkdownTest/Tests/Backslash escapes.html +118 -0
  171. data/test/MultiMarkdownTest/Tests/Backslash escapes.text +120 -0
  172. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.html +15 -0
  173. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.text +11 -0
  174. data/test/MultiMarkdownTest/Tests/Code Blocks.html +18 -0
  175. data/test/MultiMarkdownTest/Tests/Code Blocks.text +14 -0
  176. data/test/MultiMarkdownTest/Tests/Code Spans.html +6 -0
  177. data/test/MultiMarkdownTest/Tests/Code Spans.text +6 -0
  178. data/test/MultiMarkdownTest/Tests/Compatibility.html +5 -0
  179. data/test/MultiMarkdownTest/Tests/Compatibility.text +9 -0
  180. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
  181. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
  182. data/test/MultiMarkdownTest/Tests/Horizontal rules.html +71 -0
  183. data/test/MultiMarkdownTest/Tests/Horizontal rules.text +67 -0
  184. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).html +15 -0
  185. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).text +15 -0
  186. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).html +72 -0
  187. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).text +69 -0
  188. data/test/MultiMarkdownTest/Tests/Inline HTML comments.html +13 -0
  189. data/test/MultiMarkdownTest/Tests/Inline HTML comments.text +13 -0
  190. data/test/MultiMarkdownTest/Tests/Links, inline style.html +11 -0
  191. data/test/MultiMarkdownTest/Tests/Links, inline style.text +12 -0
  192. data/test/MultiMarkdownTest/Tests/Links, reference style.html +52 -0
  193. data/test/MultiMarkdownTest/Tests/Links, reference style.text +71 -0
  194. data/test/MultiMarkdownTest/Tests/Links, shortcut references.html +9 -0
  195. data/test/MultiMarkdownTest/Tests/Links, shortcut references.text +20 -0
  196. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.html +3 -0
  197. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.text +7 -0
  198. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.html +314 -0
  199. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.text +306 -0
  200. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.html +942 -0
  201. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.text +888 -0
  202. data/test/MultiMarkdownTest/Tests/Nested blockquotes.html +9 -0
  203. data/test/MultiMarkdownTest/Tests/Nested blockquotes.text +5 -0
  204. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.html +148 -0
  205. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.text +131 -0
  206. data/test/MultiMarkdownTest/Tests/Strong and em together.html +7 -0
  207. data/test/MultiMarkdownTest/Tests/Strong and em together.text +7 -0
  208. data/test/MultiMarkdownTest/Tests/Tabs.html +25 -0
  209. data/test/MultiMarkdownTest/Tests/Tabs.text +21 -0
  210. data/test/MultiMarkdownTest/Tests/Tidyness.html +8 -0
  211. data/test/MultiMarkdownTest/Tests/Tidyness.text +5 -0
  212. data/test/benchmark.rb +49 -0
  213. data/test/multimarkdown_test.rb +89 -0
  214. metadata +280 -0
@@ -0,0 +1,18 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown French 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 French Test
3
+ quoteslanguage: french
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,23 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>MultiMarkdown German 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>&#8218;this is a single quote&#8216;</p>
12
+
13
+ <p>&#8222;this is a double quote&#8220;</p>
14
+
15
+ <p>this isn&#8217;t an apostrophe.</p>
16
+
17
+ <p>this is an em &#8212; dash</p>
18
+
19
+ <p>this is an en &#8211; dash</p>
20
+
21
+ <p>and an ellipsis&#8230;</p>
22
+ </body>
23
+ </html>
@@ -0,0 +1,18 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown German 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 German Test
3
+ quoteslanguage: german
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,23 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>MultiMarkdown German Guillemets 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>&#8250;this is a single quote&#8249;</p>
12
+
13
+ <p>&#187;this is a double quote&#171;</p>
14
+
15
+ <p>this isn&#8217;t an apostrophe.</p>
16
+
17
+ <p>this is an em &#8212; dash</p>
18
+
19
+ <p>this is an en &#8211; dash</p>
20
+
21
+ <p>and an ellipsis&#8230;</p>
22
+ </body>
23
+ </html>
@@ -0,0 +1,18 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown German Guillemets 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 German Guillemets Test
3
+ quoteslanguage: germanguillemets
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,47 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>MultiMarkdown Glossary Test</title>
7
+ <link type="text/css" rel="stylesheet" href="http://fletcherpenney.net/css/document.css"/>
8
+ <meta name="latexmode" content="memoir"/>
9
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
10
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
11
+ </head>
12
+ <body>
13
+ <p>MultiMarkdown has a special format for footnotes that should represent
14
+ glossary terms. This doesn&#8217;t make much difference in XHTML (because there is
15
+ no such thing as a glossary in XHTML), but can be used to generate a glossary
16
+ within LaTeX documents.</p>
17
+
18
+ <p>For example, let&#8217;s have an entry for <code>glossary</code>.<a href="#fn:1" id="fnref:1" title="see footnote" class="footnote glossary">[1]</a> And what about
19
+ ampersands?<a href="#fn:2" id="fnref:2" title="see footnote" class="footnote glossary">[2]</a></p>
20
+
21
+ <p>Since we want the ampersand entry to be sorted with the a&#8217;s, and not with
22
+ symbols, we put in the optional sort key <code>ampersand</code> to control sorting.</p>
23
+
24
+ <pre><code>[^glossary]: glossary: Glossary
25
+ A section at the end ...
26
+
27
+ [^amp]: glossary: &amp; (ampersand)
28
+ A punctuation mark ...
29
+ </code></pre>
30
+
31
+ <div class="footnotes">
32
+ <hr />
33
+ <ol>
34
+
35
+ <li id="fn:1">
36
+ <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>
37
+ </li>
38
+
39
+ <li id="fn:2">
40
+ <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>
41
+ </li>
42
+
43
+ </ol>
44
+ </div>
45
+
46
+ </body>
47
+ </html>
@@ -0,0 +1,30 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Glossary Test}
3
+ \def\latexmode{memoir}
4
+ \input{mmd-article-begin-doc}
5
+ MultiMarkdown has a special format for footnotes that should represent
6
+ glossary terms. This doesn't make much difference in XHTML (because there is
7
+ no such thing as a glossary in XHTML), but can be used to generate a glossary
8
+ within LaTeX documents.
9
+
10
+ For example, let's have an entry for \texttt{glossary}.\newglossaryentry{Glossary }{name={Glossary },description={A section at the end {\ldots}}}\glsadd{Glossary } And what about
11
+ ampersands?\newglossaryentry{& }{sort={ampersand},name={\& },description={A punctuation mark {\ldots}}}\glsadd{& }
12
+
13
+ Since we want the ampersand entry to be sorted with the a's, and not with
14
+ symbols, we put in the optional sort key \texttt{ampersand} to control sorting.
15
+
16
+ \begin{adjustwidth}{2.5em}{2.5em}
17
+ \begin{verbatim}
18
+
19
+ [^glossary]: glossary: Glossary
20
+ A section at the end ...
21
+
22
+ [^amp]: glossary: & (ampersand)
23
+ A punctuation mark ...
24
+
25
+ \end{verbatim}
26
+ \end{adjustwidth}
27
+
28
+ \input{mmd-memoir-footer}
29
+
30
+ \end{document}
@@ -0,0 +1,29 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Glossary Test
3
+ CSS: http://fletcherpenney.net/css/document.css
4
+ latex mode: memoir
5
+ latex input: mmd-article-begin-doc
6
+ latex footer: mmd-memoir-footer
7
+
8
+ MultiMarkdown has a special format for footnotes that should represent
9
+ glossary terms. This doesn't make much difference in XHTML (because there is
10
+ no such thing as a glossary in XHTML), but can be used to generate a glossary
11
+ within LaTeX documents.
12
+
13
+ For example, let's have an entry for `glossary`.[^glossary] And what about
14
+ ampersands?[^amp]
15
+
16
+ Since we want the ampersand entry to be sorted with the a's, and not with
17
+ symbols, we put in the optional sort key `ampersand` to control sorting.
18
+
19
+ [^glossary]: glossary: Glossary
20
+ A section at the end ...
21
+
22
+ [^amp]: glossary: & (ampersand)
23
+ A punctuation mark ...
24
+
25
+ [^glossary]: glossary: Glossary
26
+ A section at the end ...
27
+
28
+ [^amp]: glossary: & (ampersand)
29
+ A punctuation mark ...
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>Line Break Test</title>
7
+ <meta name="latexmode" content="memoir"/>
8
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
9
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
10
+ </head>
11
+ <body>
12
+ <p>This is a paragraph.
13
+ This is the same paragraph.</p>
14
+
15
+ <p>New paragraph.<br/>
16
+ Second line in same paragraph.</p>
17
+
18
+ <p>New paragraph.<br/>
19
+ Second line in same paragraph with linebreak at end. </p>
20
+ </body>
21
+ </html>
@@ -0,0 +1,16 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{Line Break Test}
3
+ \def\latexmode{memoir}
4
+ \input{mmd-article-begin-doc}
5
+ This is a paragraph.
6
+ This is the same paragraph.
7
+
8
+ New paragraph.\\
9
+ Second line in same paragraph.
10
+
11
+ New paragraph.\\
12
+ Second line in same paragraph with linebreak at end.
13
+
14
+ \input{mmd-memoir-footer}
15
+
16
+ \end{document}
@@ -0,0 +1,16 @@
1
+ latex input: mmd-article-header
2
+ Title: Line Break Test
3
+ latex mode: memoir
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer
6
+
7
+
8
+ This is a paragraph.
9
+ This is the same paragraph.
10
+
11
+ New paragraph.
12
+ Second line in same paragraph.
13
+
14
+ New paragraph.
15
+ Second line in same paragraph with linebreak at end.
16
+
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>Link Attributes Test</title>
7
+ <meta name="latexmode" content="memoir"/>
8
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
9
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
10
+ </head>
11
+ <body>
12
+ <p>This is a formatted <img src="http://path.to/image" id="image" alt="image" title="Image title" width="40px" height="400px" /> and a <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a> with attributes.</p>
13
+
14
+ <p><img src="http://path.to/image" id="image2" alt="image2" title="Image title" height="400px" /></p>
15
+
16
+ <p><img src="http://path.to/image" id="image3" alt="image3" title="Image title" width="40px" /></p>
17
+
18
+ <p><img src="http://path.to/image" id="image4" alt="image4" title="Image title" /></p>
19
+
20
+ <p>And <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">the link</a>, <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a> , and <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;"></a> again.</p>
21
+
22
+ <p><a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a></p>
23
+
24
+ <p><a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">the link</a></p>
25
+
26
+ <p>Test various identifiers:</p>
27
+
28
+ <p><a href="http://path.to/link-a.html">link-a</a></p>
29
+
30
+ <p><a href="http://path.to/link-1.html">link&#8211;1</a></p>
31
+
32
+ <p><a href="http://path.to/link--2.html">link&#8211;2</a></p>
33
+
34
+ <p><a href="http://path.to/link--a.html">link&#8211;a</a></p>
35
+
36
+ <p><a href="http://path.to/link---1.html">link&#8212;1</a></p>
37
+
38
+ <p>Test link and markup <img src="http://path.to/image" id="image-attr" alt="and this but not that" title="Test *this* and **this**" /></p>
39
+ </body>
40
+ </html>
@@ -0,0 +1,61 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{Link Attributes Test}
3
+ \def\latexmode{memoir}
4
+ \input{mmd-article-begin-doc}
5
+ This is a formatted \includegraphics[width=40pt,height=400pt]{http://path.to/image}
6
+ and a \href{http://path.to/link.html}{link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}} with attributes.
7
+
8
+ \begin{figure}[htbp]
9
+ \centering
10
+ \includegraphics[keepaspectratio,width=\textwidth,height=400pt]{http://path.to/image}
11
+ \caption{image2}
12
+ \label{image2}
13
+ \end{figure}
14
+
15
+
16
+
17
+ \begin{figure}[htbp]
18
+ \centering
19
+ \includegraphics[keepaspectratio,width=40pt,height=0.75\textheight]{http://path.to/image}
20
+ \caption{image3}
21
+ \label{image3}
22
+ \end{figure}
23
+
24
+
25
+
26
+
27
+ \begin{figure}[htbp]
28
+ \centering
29
+ \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://path.to/image}
30
+ \caption{image4}
31
+ \label{image4}
32
+ \end{figure}
33
+
34
+
35
+
36
+
37
+
38
+ And \href{http://path.to/link.html}{the link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}}, \href{http://path.to/link.html}{link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}} , and \href{http://path.to/link.html}{}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}} again.
39
+
40
+ \href{http://path.to/link.html}{link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}}
41
+
42
+ \href{http://path.to/link.html}{the link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}}
43
+
44
+ Test various identifiers:
45
+
46
+ \href{http://path.to/link-a.html}{link-a}\footnote{\href{http://path.to/link-a.html}{http:/\slash path.to\slash link-a.html}}
47
+
48
+ \href{http://path.to/link-1.html}{link--1}\footnote{\href{http://path.to/link-1.html}{http:/\slash path.to\slash link-1.html}}
49
+
50
+ \href{http://path.to/link--2.html}{link--2}\footnote{\href{http://path.to/link--2.html}{http:/\slash path.to\slash link--2.html}}
51
+
52
+ \href{http://path.to/link--a.html}{link--a}\footnote{\href{http://path.to/link--a.html}{http:/\slash path.to\slash link--a.html}}
53
+
54
+ \href{http://path.to/link---1.html}{link---1}\footnote{\href{http://path.to/link---1.html}{http:/\slash path.to\slash link---1.html}}
55
+
56
+ Test link and markup \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://path.to/image}
57
+
58
+
59
+ \input{mmd-memoir-footer}
60
+
61
+ \end{document}
@@ -0,0 +1,51 @@
1
+ latex input: mmd-article-header
2
+ Title: Link Attributes Test
3
+ latex mode: memoir
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer
6
+
7
+ This is a formatted ![image][] and a [link][] with attributes.
8
+
9
+ ![image2]
10
+
11
+ ![image3]
12
+
13
+ ![image4]
14
+
15
+ And [the link][link], [link] , and [][link] again.
16
+
17
+ [link]
18
+
19
+ [the link][link]
20
+
21
+ [image]: http://path.to/image "Image title" width=40px height=400px
22
+ [image2]: http://path.to/image "Image title" height=400px
23
+ [image3]: http://path.to/image "Image title" width=40px
24
+ [image4]: http://path.to/image "Image title"
25
+ [link]: http://path.to/link.html "Some Link" class=external
26
+ style="border: solid black 1px;"
27
+
28
+
29
+ Test various identifiers:
30
+
31
+ [link-a]
32
+
33
+ [link-1]
34
+
35
+ [link--2]
36
+
37
+ [link--a]
38
+
39
+ [link---1]
40
+
41
+
42
+ [link-a]: http://path.to/link-a.html
43
+ [link-1]: http://path.to/link-1.html
44
+ [link--a]: http://path.to/link--a.html
45
+ [link--2]: http://path.to/link--2.html
46
+ [link---1]: http://path.to/link---1.html
47
+
48
+
49
+ Test link and markup ![and *this* but not **that**][image-attr]
50
+
51
+ [image-attr]: http://path.to/image "Test *this* and **this**"