rpeg-multimarkdown2 2.0.1

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 (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,24 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{SmartQuotes Test}
3
+ \input{mmd-article-begin-doc}
4
+ Some rather complicated tests for smart quotes with non-ascii input.
5
+
6
+ l'année l'année
7
+
8
+ l'été l'année
9
+
10
+ l'été l'été
11
+
12
+ l'année l'été
13
+
14
+ ``Smart'' `quote'
15
+
16
+ An escaped `\textbar{}'
17
+
18
+ Another test of smart `.quotes'
19
+
20
+ And again ``.quotes''
21
+
22
+ \input{mmd-memoir-footer}
23
+
24
+ \end{document}
@@ -0,0 +1,22 @@
1
+ latex input: mmd-article-header
2
+ Title: SmartQuotes Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+ Some rather complicated tests for smart quotes with non-ascii input.
7
+
8
+ l'année l'année
9
+
10
+ l'été l'année
11
+
12
+ l'été l'été
13
+
14
+ l'année l'été
15
+
16
+ "Smart" 'quote'
17
+
18
+ An escaped '|'
19
+
20
+ Another test of smart '.quotes'
21
+
22
+ And again ".quotes"
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>MultiMarkdown Swedish Test</title>
7
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
8
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
9
+ </head>
10
+ <body>
11
+
12
+ <p>&#8217;this is a single quote&#8217;</p>
13
+
14
+ <p>&#8221;this is a double quote&#8221;</p>
15
+
16
+ <p>this isn&#8217;t an apostrophe.</p>
17
+
18
+ <p>this is an em &#8212; dash</p>
19
+
20
+ <p>this is an en &#8211; dash</p>
21
+
22
+ <p>and an ellipsis&#8230;</p>
23
+
24
+ </body>
25
+ </html>
@@ -0,0 +1,18 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Swedish Test}
3
+ \input{mmd-article-begin-doc}
4
+ 'this is a single quote'
5
+
6
+ ''this is a double quote''
7
+
8
+ this isn't an apostrophe.
9
+
10
+ this is an em --- dash
11
+
12
+ this is an en -- dash
13
+
14
+ and an ellipsis{\ldots}
15
+
16
+ \input{mmd-memoir-footer}
17
+
18
+ \end{document}
@@ -0,0 +1,17 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Swedish Test
3
+ quoteslanguage: swedish
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer
6
+
7
+ 'this is a single quote'
8
+
9
+ "this is a double quote"
10
+
11
+ this isn't an apostrophe.
12
+
13
+ this is an em --- dash
14
+
15
+ this is an en -- dash
16
+
17
+ and an ellipsis...
@@ -0,0 +1,273 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>MultiMarkdown Table Test</title>
7
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
8
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
9
+ </head>
10
+ <body>
11
+
12
+
13
+
14
+ <table>
15
+ <caption id="prototypetable">Prototype table caption</caption>
16
+ <colgroup>
17
+ <col style="text-align:left;"/>
18
+ <col style="text-align:center;"/>
19
+ <col style="text-align:right;"/>
20
+ </colgroup>
21
+
22
+ <thead>
23
+ <tr>
24
+ <th style="text-align:left;"></th>
25
+ <th style="text-align:center;" colspan="2">Grouping</th>
26
+ </tr>
27
+ <tr>
28
+ <th style="text-align:left;">First Header</th>
29
+ <th style="text-align:center;">Second Header</th>
30
+ <th style="text-align:right;">Third Header</th>
31
+ </tr>
32
+ </thead>
33
+
34
+ <tbody>
35
+ <tr>
36
+ <td style="text-align:left;">Content</td>
37
+ <td style="text-align:center;" colspan="2"><em>Long Cell</em></td>
38
+ </tr>
39
+ <tr>
40
+ <td style="text-align:left;">Content</td>
41
+ <td style="text-align:center;"><strong>Cell</strong></td>
42
+ <td style="text-align:right;">Cell</td>
43
+ </tr>
44
+ </tbody>
45
+
46
+ <tbody>
47
+ <tr>
48
+ <td style="text-align:left;">New section</td>
49
+ <td style="text-align:center;">More</td>
50
+ <td style="text-align:right;">Data</td>
51
+ </tr>
52
+ <tr>
53
+ <td style="text-align:left;">And more</td>
54
+ <td style="text-align:center;" colspan="2">With an escaped &#8216;|&#8217;</td>
55
+ </tr>
56
+ </tbody>
57
+ </table>
58
+ <p>And this is a link to the <a href="#prototypetable">Prototype table</a>.</p>
59
+
60
+ <p>And now a table with only a caption.</p>
61
+
62
+ <table>
63
+ <caption id="captionbutnolabel">Caption but no label</caption>
64
+ <colgroup>
65
+ <col style="text-align:left;"/>
66
+ <col style="text-align:center;"/>
67
+ <col style="text-align:right;"/>
68
+ </colgroup>
69
+
70
+ <thead>
71
+ <tr>
72
+ <th style="text-align:left;"></th>
73
+ <th style="text-align:center;" colspan="2">Grouping</th>
74
+ </tr>
75
+ <tr>
76
+ <th style="text-align:left;">First Header</th>
77
+ <th style="text-align:center;">Second Header</th>
78
+ <th style="text-align:right;">Third Header</th>
79
+ </tr>
80
+ </thead>
81
+
82
+ <tbody>
83
+ <tr>
84
+ <td style="text-align:left;">Content</td>
85
+ <td style="text-align:center;" colspan="2"><em>Long Cell</em></td>
86
+ </tr>
87
+ <tr>
88
+ <td style="text-align:left;">Content</td>
89
+ <td style="text-align:center;"><strong>Cell</strong></td>
90
+ <td style="text-align:right;">Cell</td>
91
+ </tr>
92
+ </tbody>
93
+
94
+ <tbody>
95
+ <tr>
96
+ <td style="text-align:left;">New section</td>
97
+ <td style="text-align:center;">More</td>
98
+ <td style="text-align:right;">Data</td>
99
+ </tr>
100
+ <tr>
101
+ <td style="text-align:left;">And more</td>
102
+ <td style="text-align:center;" colspan="2">With an escaped &#8216;|&#8217;</td>
103
+ </tr>
104
+ </tbody>
105
+ </table>
106
+ <p>And a link to the second <a href="#captionbutnolabel">table</a>.</p>
107
+
108
+ <p>And two tables in close proximity:</p>
109
+
110
+ <table>
111
+ <caption id="multimarkdownvs.crayons">MultiMarkdown vs. Crayons</caption>
112
+ <colgroup>
113
+ <col style="text-align:left;"/>
114
+ <col style="text-align:center;"/>
115
+ <col style="text-align:center;"/>
116
+ </colgroup>
117
+
118
+ <thead>
119
+ <tr>
120
+ <th style="text-align:left;">Features</th>
121
+ <th style="text-align:center;">MultiMarkdown</th>
122
+ <th style="text-align:center;">Crayons</th>
123
+ </tr>
124
+ </thead>
125
+
126
+ <tbody>
127
+ <tr>
128
+ <td style="text-align:left;">Melts in warm places</td>
129
+ <td style="text-align:center;">No</td>
130
+ <td style="text-align:center;">Yes</td>
131
+ </tr>
132
+ <tr>
133
+ <td style="text-align:left;">Mistakes can be easily fixed</td>
134
+ <td style="text-align:center;">Yes</td>
135
+ <td style="text-align:center;">No</td>
136
+ </tr>
137
+ <tr>
138
+ <td style="text-align:left;">Easy to copy documents for friends</td>
139
+ <td style="text-align:center;">Yes</td>
140
+ <td style="text-align:center;">No</td>
141
+ </tr>
142
+ <tr>
143
+ <td style="text-align:left;">Fun at parties</td>
144
+ <td style="text-align:center;">No</td>
145
+ <td style="text-align:center;">Why not?</td>
146
+ </tr>
147
+ </tbody>
148
+
149
+ <tbody>
150
+ <tr>
151
+ <td style="text-align:left;">Minimum markup1 for maximum quality?</td>
152
+ <td style="text-align:center;">Yes</td>
153
+ <td style="text-align:center;">No</td>
154
+ </tr>
155
+ </tbody>
156
+ </table>
157
+
158
+
159
+ <table>
160
+ <caption id="multimarkdownvs.crayons2">MultiMarkdown vs. Crayons2</caption>
161
+ <colgroup>
162
+ <col style="text-align:left;"/>
163
+ <col style="text-align:center;"/>
164
+ <col style="text-align:center;"/>
165
+ </colgroup>
166
+
167
+ <thead>
168
+ <tr>
169
+ <th style="text-align:left;">Features</th>
170
+ <th style="text-align:center;">MultiMarkdown</th>
171
+ <th style="text-align:center;">Crayons</th>
172
+ </tr>
173
+ </thead>
174
+
175
+ <tbody>
176
+ <tr>
177
+ <td style="text-align:left;">Melts in warm places</td>
178
+ <td style="text-align:center;">No</td>
179
+ <td style="text-align:center;">Yes</td>
180
+ </tr>
181
+ <tr>
182
+ <td style="text-align:left;">Mistakes can be easily fixed</td>
183
+ <td style="text-align:center;">Yes</td>
184
+ <td style="text-align:center;">No</td>
185
+ </tr>
186
+ <tr>
187
+ <td style="text-align:left;">Easy to copy documents for friends</td>
188
+ <td style="text-align:center;">Yes</td>
189
+ <td style="text-align:center;">No</td>
190
+ </tr>
191
+ <tr>
192
+ <td style="text-align:left;">Fun at parties</td>
193
+ <td style="text-align:center;">No</td>
194
+ <td style="text-align:center;">Why not?</td>
195
+ </tr>
196
+ </tbody>
197
+
198
+ <tbody>
199
+ <tr>
200
+ <td style="text-align:left;">Minimum markup2 for maximum quality?</td>
201
+ <td style="text-align:center;">Yes</td>
202
+ <td style="text-align:center;">No</td>
203
+ </tr>
204
+ </tbody>
205
+ </table>
206
+
207
+
208
+ <table>
209
+ <caption id="captiononly">Caption only</caption>
210
+ <colgroup>
211
+ <col style="text-align:left;"/>
212
+ <col style="text-align:left;"/>
213
+ </colgroup>
214
+
215
+ <thead>
216
+ <tr>
217
+ <th style="text-align:left;">Col 1</th>
218
+ <th style="text-align:left;">Col 2</th>
219
+ </tr>
220
+ </thead>
221
+
222
+ <tbody>
223
+ <tr>
224
+ <td style="text-align:left;">One</td>
225
+ <td style="text-align:left;">Two </td>
226
+ </tr>
227
+ </tbody>
228
+ </table>
229
+
230
+
231
+ <table>
232
+ <caption id="linewrappingtest">Line Wrapping Test</caption>
233
+ <colgroup>
234
+ <col style="text-align:left;" class="extended"/>
235
+ <col style="text-align:center;"/>
236
+ <col style="text-align:center;"/>
237
+ </colgroup>
238
+
239
+ <thead>
240
+ <tr>
241
+ <th style="text-align:left;">Long Cell</th>
242
+ <th style="text-align:center;">MultiMarkdown</th>
243
+ <th style="text-align:center;">Crayons</th>
244
+ </tr>
245
+ </thead>
246
+
247
+ <tbody>
248
+ <tr>
249
+ <td style="text-align:left;">Melts in warm places</td>
250
+ <td style="text-align:center;">No</td>
251
+ <td style="text-align:center;">Yes</td>
252
+ </tr>
253
+ <tr>
254
+ <td style="text-align:left;">Mistakes can be easily fixed</td>
255
+ <td style="text-align:center;">Yes</td>
256
+ <td style="text-align:center;">No</td>
257
+ </tr>
258
+ <tr>
259
+ <td style="text-align:left;">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</td>
260
+ <td style="text-align:center;">Yes</td>
261
+ <td style="text-align:center;">No</td>
262
+ </tr>
263
+ <tr>
264
+ <td style="text-align:left;">Fun at parties</td>
265
+ <td style="text-align:center;">No</td>
266
+ <td style="text-align:center;">Why not?</td>
267
+ </tr>
268
+ </tbody>
269
+ </table>
270
+
271
+
272
+ </body>
273
+ </html>
@@ -0,0 +1,155 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Table Test}
3
+ \input{mmd-article-begin-doc}
4
+ \begin{table}[htbp]
5
+ \begin{minipage}{\linewidth}
6
+ \setlength{\tymax}{0.5\linewidth}
7
+ \centering
8
+ \small
9
+ \caption{Prototype table caption}
10
+ \label{prototypetable}
11
+ \begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
12
+ &\multicolumn{2}{c}{Grouping}\\
13
+ First Header&Second Header&Third Header\\
14
+ \midrule
15
+ Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
16
+ Content&\textbf{Cell}&Cell\\
17
+
18
+ \midrule
19
+ New section&More&Data\\
20
+ And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
21
+
22
+ \bottomrule
23
+
24
+ \end{tabulary}
25
+ \end{minipage}
26
+ \end{table}
27
+
28
+
29
+ And this is a link to the Prototype table (\autoref{prototypetable}).
30
+
31
+ And now a table with only a caption.
32
+
33
+ \begin{table}[htbp]
34
+ \begin{minipage}{\linewidth}
35
+ \setlength{\tymax}{0.5\linewidth}
36
+ \centering
37
+ \small
38
+ \caption{Caption but no label}
39
+ \label{captionbutnolabel}
40
+ \begin{tabulary}{\textwidth}{@{}LCR@{}} \toprule
41
+ &\multicolumn{2}{c}{Grouping}\\
42
+ First Header&Second Header&Third Header\\
43
+ \midrule
44
+ Content&\multicolumn{2}{c}{\emph{Long Cell}}\\
45
+ Content&\textbf{Cell}&Cell\\
46
+
47
+ \midrule
48
+ New section&More&Data\\
49
+ And more&\multicolumn{2}{c}{With an escaped `\textbar{}'}\\
50
+
51
+ \bottomrule
52
+
53
+ \end{tabulary}
54
+ \end{minipage}
55
+ \end{table}
56
+
57
+
58
+ And a link to the second table (\autoref{captionbutnolabel}).
59
+
60
+ And two tables in close proximity:
61
+
62
+ \begin{table}[htbp]
63
+ \begin{minipage}{\linewidth}
64
+ \setlength{\tymax}{0.5\linewidth}
65
+ \centering
66
+ \small
67
+ \caption{MultiMarkdown vs. Crayons}
68
+ \label{multimarkdownvs.crayons}
69
+ \begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
70
+ Features&MultiMarkdown&Crayons\\
71
+ \midrule
72
+ Melts in warm places&No&Yes\\
73
+ Mistakes can be easily fixed&Yes&No\\
74
+ Easy to copy documents for friends&Yes&No\\
75
+ Fun at parties&No&Why not?\\
76
+
77
+ \midrule
78
+ Minimum markup1 for maximum quality?&Yes&No\\
79
+
80
+ \bottomrule
81
+
82
+ \end{tabulary}
83
+ \end{minipage}
84
+ \end{table}
85
+
86
+
87
+ \begin{table}[htbp]
88
+ \begin{minipage}{\linewidth}
89
+ \setlength{\tymax}{0.5\linewidth}
90
+ \centering
91
+ \small
92
+ \caption{MultiMarkdown vs. Crayons2}
93
+ \label{multimarkdownvs.crayons2}
94
+ \begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
95
+ Features&MultiMarkdown&Crayons\\
96
+ \midrule
97
+ Melts in warm places&No&Yes\\
98
+ Mistakes can be easily fixed&Yes&No\\
99
+ Easy to copy documents for friends&Yes&No\\
100
+ Fun at parties&No&Why not?\\
101
+
102
+ \midrule
103
+ Minimum markup2 for maximum quality?&Yes&No\\
104
+
105
+ \bottomrule
106
+
107
+ \end{tabulary}
108
+ \end{minipage}
109
+ \end{table}
110
+
111
+
112
+ \begin{table}[htbp]
113
+ \begin{minipage}{\linewidth}
114
+ \setlength{\tymax}{0.5\linewidth}
115
+ \centering
116
+ \small
117
+ \caption{Caption only}
118
+ \label{captiononly}
119
+ \begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
120
+ Col 1&Col 2\\
121
+ \midrule
122
+ One&Two \\
123
+
124
+ \bottomrule
125
+
126
+ \end{tabulary}
127
+ \end{minipage}
128
+ \end{table}
129
+
130
+
131
+ \begin{table}[htbp]
132
+ \begin{minipage}{\linewidth}
133
+ \setlength{\tymax}{0.5\linewidth}
134
+ \centering
135
+ \small
136
+ \caption{Line Wrapping Test}
137
+ \label{linewrappingtest}
138
+ \begin{tabulary}{\textwidth}{@{}LCC@{}} \toprule
139
+ Long Cell&MultiMarkdown&Crayons\\
140
+ \midrule
141
+ Melts in warm places&No&Yes\\
142
+ Mistakes can be easily fixed&Yes&No\\
143
+ 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\\
144
+ Fun at parties&No&Why not?\\
145
+
146
+ \bottomrule
147
+
148
+ \end{tabulary}
149
+ \end{minipage}
150
+ \end{table}
151
+
152
+
153
+ \input{mmd-memoir-footer}
154
+
155
+ \end{document}
@@ -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? |