rpeg-multimarkdown2 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. data/LICENSE +96 -0
  2. data/README.markdown +52 -0
  3. data/Rakefile +167 -0
  4. data/bin/rpeg-multimarkdown2 +128 -0
  5. data/ext/extconf.h +3 -0
  6. data/ext/extconf.rb +15 -0
  7. data/ext/markdown.c +102 -0
  8. data/ext/markdown_lib.c +265 -0
  9. data/ext/markdown_lib.h +33 -0
  10. data/ext/markdown_output.c +2832 -0
  11. data/ext/markdown_parser.c +9091 -0
  12. data/ext/markdown_peg.h +144 -0
  13. data/ext/odf.c +183 -0
  14. data/ext/odf.h +3 -0
  15. data/ext/parsing_functions.c +199 -0
  16. data/ext/utility_functions.c +566 -0
  17. data/lib/multimarkdown2.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/CompatibilityTests/Automatic Labels.html +35 -0
  23. data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.text +45 -0
  24. data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.html +14 -0
  25. data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.text +16 -0
  26. data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.html +9 -0
  27. data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.text +10 -0
  28. data/test/MultiMarkdownTest/CompatibilityTests/Citations.html +40 -0
  29. data/test/MultiMarkdownTest/CompatibilityTests/Citations.text +42 -0
  30. data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.html +40 -0
  31. data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.text +39 -0
  32. data/test/MultiMarkdownTest/CompatibilityTests/Dutch.html +17 -0
  33. data/test/MultiMarkdownTest/CompatibilityTests/Dutch.text +17 -0
  34. data/test/MultiMarkdownTest/CompatibilityTests/Email.html +40 -0
  35. data/test/MultiMarkdownTest/CompatibilityTests/Email.text +31 -0
  36. data/test/MultiMarkdownTest/CompatibilityTests/English.html +17 -0
  37. data/test/MultiMarkdownTest/CompatibilityTests/English.text +17 -0
  38. data/test/MultiMarkdownTest/CompatibilityTests/Errors.html +9 -0
  39. data/test/MultiMarkdownTest/CompatibilityTests/Errors.text +11 -0
  40. data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.html +23 -0
  41. data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.text +25 -0
  42. data/test/MultiMarkdownTest/CompatibilityTests/French.html +17 -0
  43. data/test/MultiMarkdownTest/CompatibilityTests/French.text +17 -0
  44. data/test/MultiMarkdownTest/CompatibilityTests/German.html +17 -0
  45. data/test/MultiMarkdownTest/CompatibilityTests/German.text +17 -0
  46. data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.html +17 -0
  47. data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.text +17 -0
  48. data/test/MultiMarkdownTest/CompatibilityTests/Glossary.html +29 -0
  49. data/test/MultiMarkdownTest/CompatibilityTests/Glossary.text +28 -0
  50. data/test/MultiMarkdownTest/CompatibilityTests/Headers.html +42 -0
  51. data/test/MultiMarkdownTest/CompatibilityTests/Headers.text +51 -0
  52. data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.html +13 -0
  53. data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.text +15 -0
  54. data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.html +35 -0
  55. data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.text +51 -0
  56. data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.html +13 -0
  57. data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.text +11 -0
  58. data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.html +13 -0
  59. data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.text +19 -0
  60. data/test/MultiMarkdownTest/CompatibilityTests/Math.html +14 -0
  61. data/test/MultiMarkdownTest/CompatibilityTests/Math.text +15 -0
  62. data/test/MultiMarkdownTest/CompatibilityTests/MetaData.html +14 -0
  63. data/test/MultiMarkdownTest/CompatibilityTests/MetaData.text +14 -0
  64. data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.html +3 -0
  65. data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.text +4 -0
  66. data/test/MultiMarkdownTest/CompatibilityTests/Sanity.html +77 -0
  67. data/test/MultiMarkdownTest/CompatibilityTests/Sanity.text +77 -0
  68. data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.html +22 -0
  69. data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.text +22 -0
  70. data/test/MultiMarkdownTest/CompatibilityTests/Swedish.html +17 -0
  71. data/test/MultiMarkdownTest/CompatibilityTests/Swedish.text +17 -0
  72. data/test/MultiMarkdownTest/CompatibilityTests/Tables.html +65 -0
  73. data/test/MultiMarkdownTest/CompatibilityTests/Tables.text +71 -0
  74. data/test/MultiMarkdownTest/MarkdownTest.pl +182 -0
  75. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.html +42 -0
  76. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex +47 -0
  77. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.text +46 -0
  78. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.html +20 -0
  79. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.tex +19 -0
  80. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.text +16 -0
  81. data/test/MultiMarkdownTest/MemoirTests/BibTeX.html +17 -0
  82. data/test/MultiMarkdownTest/MemoirTests/BibTeX.tex +12 -0
  83. data/test/MultiMarkdownTest/MemoirTests/BibTeX.text +11 -0
  84. data/test/MultiMarkdownTest/MemoirTests/Citations.html +63 -0
  85. data/test/MultiMarkdownTest/MemoirTests/Citations.tex +48 -0
  86. data/test/MultiMarkdownTest/MemoirTests/Citations.text +43 -0
  87. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.html +61 -0
  88. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +58 -0
  89. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.text +40 -0
  90. data/test/MultiMarkdownTest/MemoirTests/Dutch.html +23 -0
  91. data/test/MultiMarkdownTest/MemoirTests/Dutch.tex +18 -0
  92. data/test/MultiMarkdownTest/MemoirTests/Dutch.text +17 -0
  93. data/test/MultiMarkdownTest/MemoirTests/Email.html +48 -0
  94. data/test/MultiMarkdownTest/MemoirTests/Email.tex +61 -0
  95. data/test/MultiMarkdownTest/MemoirTests/Email.text +32 -0
  96. data/test/MultiMarkdownTest/MemoirTests/English.html +23 -0
  97. data/test/MultiMarkdownTest/MemoirTests/English.tex +18 -0
  98. data/test/MultiMarkdownTest/MemoirTests/English.text +17 -0
  99. data/test/MultiMarkdownTest/MemoirTests/Footnotes.html +47 -0
  100. data/test/MultiMarkdownTest/MemoirTests/Footnotes.tex +28 -0
  101. data/test/MultiMarkdownTest/MemoirTests/Footnotes.text +26 -0
  102. data/test/MultiMarkdownTest/MemoirTests/French.html +23 -0
  103. data/test/MultiMarkdownTest/MemoirTests/French.tex +18 -0
  104. data/test/MultiMarkdownTest/MemoirTests/French.text +17 -0
  105. data/test/MultiMarkdownTest/MemoirTests/German.html +23 -0
  106. data/test/MultiMarkdownTest/MemoirTests/German.tex +18 -0
  107. data/test/MultiMarkdownTest/MemoirTests/German.text +17 -0
  108. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.html +23 -0
  109. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.tex +18 -0
  110. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.text +17 -0
  111. data/test/MultiMarkdownTest/MemoirTests/Glossary.html +47 -0
  112. data/test/MultiMarkdownTest/MemoirTests/Glossary.tex +30 -0
  113. data/test/MultiMarkdownTest/MemoirTests/Glossary.text +29 -0
  114. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.html +21 -0
  115. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.tex +16 -0
  116. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.text +16 -0
  117. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.html +40 -0
  118. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.tex +61 -0
  119. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.text +51 -0
  120. data/test/MultiMarkdownTest/MemoirTests/Math.html +22 -0
  121. data/test/MultiMarkdownTest/MemoirTests/Math.tex +16 -0
  122. data/test/MultiMarkdownTest/MemoirTests/Math.text +16 -0
  123. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.html +24 -0
  124. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.tex +23 -0
  125. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.text +20 -0
  126. data/test/MultiMarkdownTest/MemoirTests/MetaData.html +22 -0
  127. data/test/MultiMarkdownTest/MemoirTests/MetaData.tex +14 -0
  128. data/test/MultiMarkdownTest/MemoirTests/MetaData.text +15 -0
  129. data/test/MultiMarkdownTest/MemoirTests/Sanity.html +100 -0
  130. data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +101 -0
  131. data/test/MultiMarkdownTest/MemoirTests/Sanity.text +78 -0
  132. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.html +26 -0
  133. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.tex +21 -0
  134. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.text +19 -0
  135. data/test/MultiMarkdownTest/MemoirTests/Swedish.html +23 -0
  136. data/test/MultiMarkdownTest/MemoirTests/Swedish.tex +18 -0
  137. data/test/MultiMarkdownTest/MemoirTests/Swedish.text +17 -0
  138. data/test/MultiMarkdownTest/MemoirTests/Tables.html +221 -0
  139. data/test/MultiMarkdownTest/MemoirTests/Tables.tex +134 -0
  140. data/test/MultiMarkdownTest/MemoirTests/Tables.text +64 -0
  141. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +43 -0
  142. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.tex +46 -0
  143. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.text +45 -0
  144. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +22 -0
  145. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex +19 -0
  146. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text +16 -0
  147. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +18 -0
  148. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex +11 -0
  149. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text +10 -0
  150. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +64 -0
  151. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.tex +47 -0
  152. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.text +42 -0
  153. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +57 -0
  154. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +57 -0
  155. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.text +39 -0
  156. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +25 -0
  157. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.tex +18 -0
  158. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.text +17 -0
  159. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +49 -0
  160. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.tex +54 -0
  161. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.text +31 -0
  162. data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +25 -0
  163. data/test/MultiMarkdownTest/MultiMarkdownTests/English.tex +18 -0
  164. data/test/MultiMarkdownTest/MultiMarkdownTests/English.text +17 -0
  165. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +18 -0
  166. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.tex +11 -0
  167. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.text +11 -0
  168. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +48 -0
  169. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.tex +24 -0
  170. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.text +25 -0
  171. data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +25 -0
  172. data/test/MultiMarkdownTest/MultiMarkdownTests/French.tex +18 -0
  173. data/test/MultiMarkdownTest/MultiMarkdownTests/French.text +17 -0
  174. data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +25 -0
  175. data/test/MultiMarkdownTest/MultiMarkdownTests/German.tex +18 -0
  176. data/test/MultiMarkdownTest/MultiMarkdownTests/German.text +17 -0
  177. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +25 -0
  178. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.tex +18 -0
  179. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.text +17 -0
  180. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +48 -0
  181. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.tex +26 -0
  182. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.text +28 -0
  183. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +50 -0
  184. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +54 -0
  185. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +51 -0
  186. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +22 -0
  187. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.tex +15 -0
  188. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.text +15 -0
  189. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +56 -0
  190. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.tex +60 -0
  191. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.text +50 -0
  192. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +22 -0
  193. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.tex +17 -0
  194. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.text +11 -0
  195. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +21 -0
  196. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.tex +13 -0
  197. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.text +19 -0
  198. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +23 -0
  199. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.tex +15 -0
  200. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.text +15 -0
  201. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +23 -0
  202. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex +13 -0
  203. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text +14 -0
  204. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.html +3 -0
  205. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.tex +3 -0
  206. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.text +4 -0
  207. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +106 -0
  208. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +100 -0
  209. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text +77 -0
  210. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +31 -0
  211. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.tex +24 -0
  212. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.text +22 -0
  213. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +25 -0
  214. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.tex +18 -0
  215. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.text +17 -0
  216. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +273 -0
  217. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +155 -0
  218. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +71 -0
  219. data/test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib +119 -0
  220. data/test/MultiMarkdownTest/README.md +58 -0
  221. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.html +17 -0
  222. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.text +21 -0
  223. data/test/MultiMarkdownTest/Tests/Auto links.html +18 -0
  224. data/test/MultiMarkdownTest/Tests/Auto links.text +13 -0
  225. data/test/MultiMarkdownTest/Tests/Backslash escapes.html +118 -0
  226. data/test/MultiMarkdownTest/Tests/Backslash escapes.text +120 -0
  227. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.html +15 -0
  228. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.text +11 -0
  229. data/test/MultiMarkdownTest/Tests/Code Blocks.html +18 -0
  230. data/test/MultiMarkdownTest/Tests/Code Blocks.text +14 -0
  231. data/test/MultiMarkdownTest/Tests/Code Spans.html +6 -0
  232. data/test/MultiMarkdownTest/Tests/Code Spans.text +6 -0
  233. data/test/MultiMarkdownTest/Tests/Compatibility.html +5 -0
  234. data/test/MultiMarkdownTest/Tests/Compatibility.text +9 -0
  235. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
  236. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
  237. data/test/MultiMarkdownTest/Tests/Horizontal rules.html +71 -0
  238. data/test/MultiMarkdownTest/Tests/Horizontal rules.text +67 -0
  239. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).html +15 -0
  240. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).text +15 -0
  241. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).html +72 -0
  242. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).text +69 -0
  243. data/test/MultiMarkdownTest/Tests/Inline HTML comments.html +13 -0
  244. data/test/MultiMarkdownTest/Tests/Inline HTML comments.text +13 -0
  245. data/test/MultiMarkdownTest/Tests/Links, inline style.html +11 -0
  246. data/test/MultiMarkdownTest/Tests/Links, inline style.text +12 -0
  247. data/test/MultiMarkdownTest/Tests/Links, reference style.html +52 -0
  248. data/test/MultiMarkdownTest/Tests/Links, reference style.text +71 -0
  249. data/test/MultiMarkdownTest/Tests/Links, shortcut references.html +9 -0
  250. data/test/MultiMarkdownTest/Tests/Links, shortcut references.text +20 -0
  251. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.html +3 -0
  252. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.text +7 -0
  253. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.html +314 -0
  254. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.text +306 -0
  255. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.html +942 -0
  256. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.text +888 -0
  257. data/test/MultiMarkdownTest/Tests/Nested blockquotes.html +9 -0
  258. data/test/MultiMarkdownTest/Tests/Nested blockquotes.text +5 -0
  259. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.html +148 -0
  260. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.text +131 -0
  261. data/test/MultiMarkdownTest/Tests/Strong and em together.html +7 -0
  262. data/test/MultiMarkdownTest/Tests/Strong and em together.text +7 -0
  263. data/test/MultiMarkdownTest/Tests/Tabs.html +25 -0
  264. data/test/MultiMarkdownTest/Tests/Tabs.text +21 -0
  265. data/test/MultiMarkdownTest/Tests/Tidyness.html +8 -0
  266. data/test/MultiMarkdownTest/Tests/Tidyness.text +5 -0
  267. data/test/benchmark.rb +49 -0
  268. data/test/multimarkdown_test.rb +89 -0
  269. metadata +318 -0
@@ -0,0 +1,25 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Footer Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+ Here is some text containing a footnote.[^somesamplefootnote]
7
+
8
+
9
+ > And here is a footnote within a blockquote, should be labelled #2.[^secondnote]
10
+
11
+ And this is a codeblock, that should not be a footnote:
12
+
13
+ This is code.[^somesamplefootnote]
14
+
15
+ And this is a short footnote for testing.[^shortnote]
16
+
17
+ And now, reuse a footnote.[^shortnote]
18
+
19
+ [^somesamplefootnote]: Here is the text of the footnote itself. It also has a [link][somesamplefootnote].
20
+
21
+ [somesamplefootnote]:http://somelink.com
22
+
23
+ [^secondnote]: Note # 2.
24
+
25
+ [^shortnote]: Finis
@@ -0,0 +1,17 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown French Test<br/>
3
+ quoteslanguage: french<br/>
4
+ latex input: mmd-article-begin-doc<br/>
5
+ latex footer: mmd-memoir-footer </p>
6
+
7
+ <p>'this is a single quote'</p>
8
+
9
+ <p>&quot;this is a double quote&quot;</p>
10
+
11
+ <p>this isn't an apostrophe.</p>
12
+
13
+ <p>this is an em --- dash</p>
14
+
15
+ <p>this is an en -- dash</p>
16
+
17
+ <p>and an ellipsis...</p>
@@ -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,17 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown German Test<br/>
3
+ quoteslanguage: german<br/>
4
+ latex input: mmd-article-begin-doc<br/>
5
+ latex footer: mmd-memoir-footer </p>
6
+
7
+ <p>'this is a single quote'</p>
8
+
9
+ <p>&quot;this is a double quote&quot;</p>
10
+
11
+ <p>this isn't an apostrophe.</p>
12
+
13
+ <p>this is an em --- dash</p>
14
+
15
+ <p>this is an en -- dash</p>
16
+
17
+ <p>and an ellipsis...</p>
@@ -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,17 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown German Guillemets Test<br/>
3
+ quoteslanguage: germanguillemets<br/>
4
+ latex input: mmd-article-begin-doc<br/>
5
+ latex footer: mmd-memoir-footer </p>
6
+
7
+ <p>'this is a single quote'</p>
8
+
9
+ <p>&quot;this is a double quote&quot;</p>
10
+
11
+ <p>this isn't an apostrophe.</p>
12
+
13
+ <p>this is an em --- dash</p>
14
+
15
+ <p>this is an en -- dash</p>
16
+
17
+ <p>and an ellipsis...</p>
@@ -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,29 @@
1
+ <p>latex input: mmd-article-header
2
+ Title: MultiMarkdown Glossary Test<br/>
3
+ CSS: http://fletcherpenney.net/css/document.css<br/>
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer</p>
6
+
7
+ <p>MultiMarkdown has a special format for footnotes that should represent
8
+ glossary terms. This doesn't make much difference in XHTML (because there is
9
+ no such thing as a glossary in XHTML), but can be used to generate a glossary
10
+ within LaTeX documents.</p>
11
+
12
+ <p>For example, let's have an entry for <code>glossary</code>.[^glossary] And what about
13
+ ampersands?[^amp]</p>
14
+
15
+ <p>Since we want the ampersand entry to be sorted with the a's, and not with
16
+ symbols, we put in the optional sort key <code>ampersand</code> to control sorting.</p>
17
+
18
+ <pre><code>[^glossary]: glossary: Glossary
19
+ A section at the end ...
20
+
21
+ [^amp]: glossary: &amp; (ampersand)
22
+ A punctuation mark ...
23
+ </code></pre>
24
+
25
+ <p>[^glossary]: glossary: Glossary
26
+ A section at the end ...</p>
27
+
28
+ <p>[^amp]: glossary: &amp; (ampersand)
29
+ A punctuation mark ...</p>
@@ -0,0 +1,28 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Glossary Test
3
+ CSS: http://fletcherpenney.net/css/document.css
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer
6
+
7
+ MultiMarkdown has a special format for footnotes that should represent
8
+ glossary terms. This doesn't make much difference in XHTML (because there is
9
+ no such thing as a glossary in XHTML), but can be used to generate a glossary
10
+ within LaTeX documents.
11
+
12
+ For example, let's have an entry for `glossary`.[^glossary] And what about
13
+ ampersands?[^amp]
14
+
15
+ Since we want the ampersand entry to be sorted with the a's, and not with
16
+ symbols, we put in the optional sort key `ampersand` to control sorting.
17
+
18
+ [^glossary]: glossary: Glossary
19
+ A section at the end ...
20
+
21
+ [^amp]: glossary: & (ampersand)
22
+ A punctuation mark ...
23
+
24
+ [^glossary]: glossary: Glossary
25
+ A section at the end ...
26
+
27
+ [^amp]: glossary: & (ampersand)
28
+ A punctuation mark ...
@@ -0,0 +1,42 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown Headers Test<br/>
3
+ latex mode: memoir<br/>
4
+ Base Header Level: 2<br/>
5
+ latex input: mmd-article-begin-doc<br/>
6
+ latex footer: mmd-memoir-footer </p>
7
+
8
+ <h2>Normal Header</h2>
9
+
10
+ <p>plain text</p>
11
+
12
+ <h2>Normal Header with trailing space</h2>
13
+
14
+ <h1>Normal Header with trailing space</h1>
15
+
16
+ <p>plain text</p>
17
+
18
+ <h2>Header with <a href="http://www.google.com">Link</a></h2>
19
+
20
+ <p>plain text</p>
21
+
22
+ <h2>Header with <a href="http://www.google.com">Link</a></h2>
23
+
24
+ <p>and more plain text</p>
25
+
26
+ <h2>Header with <a href="http://www.google.com">Link</a> and space</h2>
27
+
28
+ <p>and more plain text</p>
29
+
30
+ <p>The following should still be detected as headers:</p>
31
+
32
+ <h1>Broken label [ text [</h1>
33
+
34
+ <h2>Test Header 2 and [label]</h2>
35
+
36
+ <h2>Broken Reference Link [label][label2]</h2>
37
+
38
+ <h2>Reference link not label <a href="http://example.com/">label</a></h2>
39
+
40
+ <h2>Link <a href="http://example.net/">not label</a></h2>
41
+
42
+ <p>And link to [label2] and <a href="http://example.com/">label1</a> and [label].</p>
@@ -0,0 +1,51 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Headers Test
3
+ latex mode: memoir
4
+ Base Header Level: 2
5
+ latex input: mmd-article-begin-doc
6
+ latex footer: mmd-memoir-footer
7
+
8
+ ## Normal Header ##
9
+
10
+
11
+ plain text
12
+
13
+ Normal Header with trailing space
14
+ ---------------------------------
15
+
16
+ Normal Header with trailing space
17
+ =================================
18
+
19
+ plain text
20
+
21
+ ## Header with [Link](http://www.google.com) ##
22
+
23
+ plain text
24
+
25
+
26
+ Header with [Link](http://www.google.com)
27
+ -----------------------------------------
28
+
29
+ and more plain text
30
+
31
+ Header with [Link](http://www.google.com) and space
32
+ ---------------------------------------------------
33
+
34
+ and more plain text
35
+
36
+
37
+ The following should still be detected as headers:
38
+
39
+ # Broken label [ text [ #
40
+
41
+ ## Test Header 2 and [label] ##
42
+
43
+ ## Broken Reference Link [label] [label2] ##
44
+
45
+ ## Reference link not label [label] [label1] ##
46
+
47
+ ## Link [not label](http://example.net/) ##
48
+
49
+ [label1]: http://example.com/
50
+
51
+ And link to [label2] and [label1] and [label].
@@ -0,0 +1,13 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: Line Break Test<br/>
3
+ latex input: mmd-article-begin-doc<br/>
4
+ latex footer: mmd-memoir-footer </p>
5
+
6
+ <p>This is a paragraph.
7
+ This is the same paragraph.</p>
8
+
9
+ <p>New paragraph.<br/>
10
+ Second line in same paragraph.</p>
11
+
12
+ <p>New paragraph.<br/>
13
+ Second line in same paragraph with linebreak at end. </p>
@@ -0,0 +1,15 @@
1
+ latex input: mmd-article-header
2
+ Title: Line Break Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+
7
+ This is a paragraph.
8
+ This is the same paragraph.
9
+
10
+ New paragraph.
11
+ Second line in same paragraph.
12
+
13
+ New paragraph.
14
+ Second line in same paragraph with linebreak at end.
15
+
@@ -0,0 +1,35 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: Link Attributes Test<br/>
3
+ latex input: mmd-article-begin-doc<br/>
4
+ latex footer: mmd-memoir-footer </p>
5
+
6
+ <p>This is a formatted <img src="http://path.to/image" alt="image" title="Image title&quot; width=&quot;40px&quot; height=&quot;400px" /> and a [link][] with attributes.</p>
7
+
8
+ <p><img src="http://path.to/image" alt="image2" title="Image title&quot; height=&quot;400px" /></p>
9
+
10
+ <p><img src="http://path.to/image" alt="image3" title="Image title&quot; width=&quot;40px" /></p>
11
+
12
+ <p><img src="http://path.to/image" alt="image4" title="Image title" /></p>
13
+
14
+ <p>And [the link][link], [link] , and [][link] again.</p>
15
+
16
+ <p>[link]</p>
17
+
18
+ <p>[the link][link]</p>
19
+
20
+ <p>[link]: http://path.to/link.html &quot;Some Link&quot; class=external
21
+ style=&quot;border: solid black 1px;&quot;</p>
22
+
23
+ <p>Test various identifiers:</p>
24
+
25
+ <p><a href="http://path.to/link-a.html">link-a</a></p>
26
+
27
+ <p><a href="http://path.to/link-1.html">link-1</a></p>
28
+
29
+ <p><a href="http://path.to/link--2.html">link--2</a></p>
30
+
31
+ <p><a href="http://path.to/link--a.html">link--a</a></p>
32
+
33
+ <p><a href="http://path.to/link---1.html">link---1</a></p>
34
+
35
+ <p>Test link and markup <img src="http://path.to/image" alt="and this but not that" title="Test *this* and **this**" /></p>
@@ -0,0 +1,51 @@
1
+ latex input: mmd-article-header
2
+ Title: Link Attributes Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+ This is a formatted ![image][] and a [link][] with attributes.
7
+
8
+ ![image2]
9
+
10
+ ![image3]
11
+
12
+ ![image4]
13
+
14
+ And [the link][link], [link] , and [][link] again.
15
+
16
+ [link]
17
+
18
+ [the link][link]
19
+
20
+ [image]: http://path.to/image "Image title" width="40px" height="400px"
21
+ [image2]: http://path.to/image "Image title" height="400px"
22
+ [image3]: http://path.to/image "Image title" width="40px"
23
+ [image4]: http://path.to/image "Image title"
24
+ [link]: http://path.to/link.html "Some Link" class=external
25
+ style="border: solid black 1px;"
26
+
27
+
28
+ Test various identifiers:
29
+
30
+ [link-a]
31
+
32
+ [link-1]
33
+
34
+ [link--2]
35
+
36
+ [link--a]
37
+
38
+ [link---1]
39
+
40
+
41
+ [link-a]: http://path.to/link-a.html
42
+ [link-1]: http://path.to/link-1.html
43
+ [link--a]: http://path.to/link--a.html
44
+ [link--2]: http://path.to/link--2.html
45
+ [link---1]: http://path.to/link---1.html
46
+
47
+
48
+ Test link and markup ![and *this* but not **that**][image-attr]
49
+
50
+ [image-attr]: http://path.to/image "Test *this* and **this**"
51
+
@@ -0,0 +1,13 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MMD List Parsing Test<br/>
3
+ latex input: mmd-article-begin-doc<br/>
4
+ latex footer: mmd-memoir-footer </p>
5
+
6
+ <ul>
7
+ <li><p>Item 1</p>
8
+
9
+ <p>Second paragraph of item 1.
10
+ The following blank line has 4 spaces.</p></li>
11
+ </ul>
12
+
13
+ <p>Paragraph following the list that shouldn't be part of the list item.</p>
@@ -0,0 +1,11 @@
1
+ latex input: mmd-article-header
2
+ Title: MMD List Parsing Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+ - Item 1
7
+
8
+ Second paragraph of item 1.
9
+ The following blank line has 4 spaces.
10
+
11
+ Paragraph following the list that shouldn't be part of the list item.
@@ -0,0 +1,13 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: Markdown in HTML Test<br/>
3
+ latex mode: memoir<br/>
4
+ Base Header Level: 2<br/>
5
+ latex input: mmd-article-begin-doc<br/>
6
+ latex footer: mmd-memoir-footer </p>
7
+
8
+ <div>This is *not* Markdown **encoded**.</div>
9
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
10
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
11
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
12
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
13
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
@@ -0,0 +1,19 @@
1
+ latex input: mmd-article-header
2
+ Title: Markdown in HTML Test
3
+ latex mode: memoir
4
+ Base Header Level: 2
5
+ latex input: mmd-article-begin-doc
6
+ latex footer: mmd-memoir-footer
7
+
8
+ <div>This is *not* Markdown **encoded**.</div>
9
+
10
+ <div markdown=1>This *is* Markdown **encoded**.</div>
11
+
12
+ <div markdown="1">This *is* Markdown **encoded**.</div>
13
+
14
+ <div markdown = 1>This *is* Markdown **encoded**.</div>
15
+
16
+ <div markdown = "1">This *is* Markdown **encoded**.</div>
17
+
18
+
19
+ <div markdown = " 1 " >This *is* Markdown **encoded**.</div>
@@ -0,0 +1,14 @@
1
+ <p>latex input: mmd-article-header
2
+ Title: MultiMarkdown Math Example<br/>
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+ xhtml header: <script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script></p>
6
+
7
+ <p>An example of math within a paragraph --- \({e}^{i\pi }+1=0\) --- easy
8
+ enough.</p>
9
+
10
+ <p>And an equation on it's own:</p>
11
+
12
+ <p>\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]</p>
13
+
14
+ <p>That's it.</p>
@@ -0,0 +1,15 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Math Example
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+ xhtml header: <script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script>
6
+
7
+
8
+ An example of math within a paragraph --- \\({e}^{i\pi }+1=0\\) --- easy
9
+ enough.
10
+
11
+ And an equation on it's own:
12
+
13
+ \\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]
14
+
15
+ That's it.
@@ -0,0 +1,14 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: This should be a <title> element
3
+ Author: This should be the author
4
+ latex input: inputthisfile
5
+ bibtex: bibliographyfile
6
+ date: January 1, 2011
7
+ CSS: http://fletcherpenney.net/css/document.css
8
+ empty metadata:
9
+ XHTML HEADER: <meta name="testing"
10
+ content="This test should fail in LaTeX from XSLT"/>
11
+ latex input: mmd-article-begin-doc<br/>
12
+ latex footer: mmd-memoir-footer </p>
13
+
14
+ <p>And this should be the main text.</p>
@@ -0,0 +1,14 @@
1
+ latex input: mmd-article-header
2
+ Title: This should be a <title> element
3
+ Author: This should be the author
4
+ latex input: inputthisfile
5
+ bibtex: bibliographyfile
6
+ date: January 1, 2011
7
+ CSS: http://fletcherpenney.net/css/document.css
8
+ empty metadata:
9
+ XHTML HEADER: <meta name="testing"
10
+ content="This test should fail in LaTeX from XSLT"/>
11
+ latex input: mmd-article-begin-doc
12
+ latex footer: mmd-memoir-footer
13
+
14
+ And this should be the main text.
@@ -0,0 +1,3 @@
1
+ <p>http://www.example.net/</p>
2
+
3
+ <p>This should not be treated as metadata.</p>
@@ -0,0 +1,4 @@
1
+ http://www.example.net/
2
+
3
+
4
+ This should not be treated as metadata.
@@ -0,0 +1,77 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown Sanity Test<br/>
3
+ quoteslanguage: english<br/>
4
+ latex input: mmd-article-begin-doc<br/>
5
+ latex footer: mmd-memoir-footer </p>
6
+
7
+ <h1>Section</h1>
8
+
9
+ <p>Sanity check by Jonathan Coulombe</p>
10
+
11
+ <p>Reference to [Section]
12
+ Citation[#Citation]
13
+ Figure <a href="file.png">figure</a>
14
+ Table [table]
15
+ Link <a href="www.com">link</a>
16
+ Nowhere [Nowhere]</p>
17
+
18
+ <p>Reference to [][Section]
19
+ Citation[][#Citation]
20
+ <!--Figure [][figure]-->
21
+ Table [][table]
22
+ <!--Link [][link]-->
23
+ Nowhere [][Nowhere]</p>
24
+
25
+ <p>Reference to [Section][]
26
+ Citation[#Citation][]
27
+ Figure <a href="file.png">figure</a>
28
+ Table [table][]
29
+ Link <a href="www.com">link</a>
30
+ Nowhere [Nowhere][]</p>
31
+
32
+ <p>Reference to [option][Section]
33
+ Citation[option][#Citation]
34
+ Figure <a href="file.png">option</a>
35
+ Table [option][table]
36
+ Link <a href="www.com">option</a>
37
+ Nowhere [option][Nowhere]</p>
38
+
39
+ <p>Reference to [Section][option]
40
+ Citation[#Citation][option]
41
+ Figure [figure][option]
42
+ Table [table][option]
43
+ Link [link][option]
44
+ Nowhere [Nowhere][option]</p>
45
+
46
+ <p>Reference to <a href="Section">Section</a>
47
+ Citation<a href="Citation">#Citation</a>
48
+ Figure <a href="figure">figure</a>
49
+ Table <a href="table">table</a>
50
+ Link <a href="link">link</a>
51
+ Nowhere <a href="nowhere">Nowhere</a></p>
52
+
53
+ <!--Reference to [](Section)-->
54
+
55
+ <!--Citation[](Citation)-->
56
+
57
+ <!--Figure [](figure)-->
58
+
59
+ <!--Table [](table)-->
60
+
61
+ <!--Link [](link)-->
62
+
63
+ <!--Nowhere [](nowhere)-->
64
+
65
+ <p>Reference to <a href="#Section"></a>
66
+ Citation<a href="#Citation"></a>
67
+ Figure <a href="#figure"></a>
68
+ Table <a href="#table"></a>
69
+ Link <a href="#link"></a>
70
+ Nowhere <a href="#nowhere"></a></p>
71
+
72
+ <p><img src="file.png" alt="figure" /></p>
73
+
74
+ <p>[table]
75
+ | a | b |
76
+ |---|---|
77
+ | x | y |</p>