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,77 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Sanity Test
3
+ quoteslanguage: english
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer
6
+
7
+ # Section #
8
+
9
+ Sanity check by Jonathan Coulombe
10
+
11
+ Reference to [Section]
12
+ Citation[#Citation]
13
+ Figure [figure]
14
+ Table [table]
15
+ Link [link]
16
+ Nowhere [Nowhere]
17
+
18
+ Reference to [][Section]
19
+ Citation[][#Citation]
20
+ <!--Figure [][figure]-->
21
+ Table [][table]
22
+ <!--Link [][link]-->
23
+ Nowhere [][Nowhere]
24
+
25
+ Reference to [Section][]
26
+ Citation[#Citation][]
27
+ Figure [figure][]
28
+ Table [table][]
29
+ Link [link][]
30
+ Nowhere [Nowhere][]
31
+
32
+ Reference to [option][Section]
33
+ Citation[option][#Citation]
34
+ Figure [option][figure]
35
+ Table [option][table]
36
+ Link [option][link]
37
+ Nowhere [option][Nowhere]
38
+
39
+ Reference to [Section][option]
40
+ Citation[#Citation][option]
41
+ Figure [figure][option]
42
+ Table [table][option]
43
+ Link [link][option]
44
+ Nowhere [Nowhere][option]
45
+
46
+ Reference to [Section](Section)
47
+ Citation[#Citation](Citation)
48
+ Figure [figure](figure)
49
+ Table [table](table)
50
+ Link [link](link)
51
+ Nowhere [Nowhere](nowhere)
52
+
53
+ <!--Reference to [](Section)-->
54
+ <!--Citation[](Citation)-->
55
+ <!--Figure [](figure)-->
56
+ <!--Table [](table)-->
57
+ <!--Link [](link)-->
58
+ <!--Nowhere [](nowhere)-->
59
+
60
+ Reference to [](#Section)
61
+ Citation[](#Citation)
62
+ Figure [](#figure)
63
+ Table [](#table)
64
+ Link [](#link)
65
+ Nowhere [](#nowhere)
66
+
67
+
68
+ ![figure][]
69
+
70
+ [figure]: file.png
71
+
72
+ [table]
73
+ | a | b |
74
+ |---|---|
75
+ | x | y |
76
+
77
+ [link]: www.com
@@ -0,0 +1,22 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: SmartQuotes Test<br/>
3
+ latex input: mmd-article-begin-doc<br/>
4
+ latex footer: mmd-memoir-footer </p>
5
+
6
+ <p>Some rather complicated tests for smart quotes with non-ascii input.</p>
7
+
8
+ <p>l'année l'année</p>
9
+
10
+ <p>l'été l'année</p>
11
+
12
+ <p>l'été l'été</p>
13
+
14
+ <p>l'année l'été</p>
15
+
16
+ <p>&quot;Smart&quot; 'quote'</p>
17
+
18
+ <p>An escaped '|'</p>
19
+
20
+ <p>Another test of smart '.quotes'</p>
21
+
22
+ <p>And again &quot;.quotes&quot;</p>
@@ -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,17 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown Swedish Test<br/>
3
+ quoteslanguage: swedish<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 Swedish Test
3
+ quoteslanguage: swedish
4
+ latex input: mmd-article-begin-doc
5
+ latex footer: mmd-memoir-footer
6
+
7
+ 'this is a single quote'
8
+
9
+ "this is a double quote"
10
+
11
+ this isn't an apostrophe.
12
+
13
+ this is an em --- dash
14
+
15
+ this is an en -- dash
16
+
17
+ and an ellipsis...
@@ -0,0 +1,65 @@
1
+ <p>latex input: mmd-article-header
2
+ Title: MultiMarkdown Table Test<br/>
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer</p>
5
+
6
+ <p>| | Grouping ||<br/>
7
+ First Header | Second Header | Third Header |<br/>
8
+ | ---------- | :----------------: | -----------: |<br/>
9
+ Content | <em>Long Cell</em> ||<br/>
10
+ Content | <strong>Cell</strong> | Cell | </p>
11
+
12
+ <p>New section | More | Data |<br/>
13
+ And more | With an escaped '|' ||<br/>
14
+ [Prototype table caption][Prototype table] </p>
15
+
16
+ <p>And this is a link to the [Prototype table].</p>
17
+
18
+ <p>And now a table with only a caption.</p>
19
+
20
+ <p>| | Grouping ||<br/>
21
+ First Header | Second Header | Third Header |<br/>
22
+ | ---------- | :----------------: | -----------: |<br/>
23
+ Content | <em>Long Cell</em> ||<br/>
24
+ Content | <strong>Cell</strong> | Cell | </p>
25
+
26
+ <p>New section | More | Data |<br/>
27
+ And more | With an escaped '|' ||<br/>
28
+ [Caption but no label] </p>
29
+
30
+ <p>And a link to the second [table][Caption but no label].</p>
31
+
32
+ <p>And two tables in close proximity:</p>
33
+
34
+ <p>[MultiMarkdown vs. Crayons]<br/>
35
+ | Features | MultiMarkdown | Crayons |<br/>
36
+ ----------------------------------- | :-----------: | :------: |<br/>
37
+ Melts in warm places | No | Yes |<br/>
38
+ Mistakes can be easily fixed | Yes | No |<br/>
39
+ Easy to copy documents for friends | Yes | No |<br/>
40
+ Fun at parties | No | Why not? | </p>
41
+
42
+ <p>Minimum markup1 for maximum quality? | Yes | No | </p>
43
+
44
+ <p>[MultiMarkdown vs. Crayons2]<br/>
45
+ | Features | MultiMarkdown | Crayons |<br/>
46
+ ----------------------------------- | :-----------: | :------: |<br/>
47
+ Melts in warm places | No | Yes |<br/>
48
+ Mistakes can be easily fixed | Yes | No |<br/>
49
+ Easy to copy documents for friends | Yes | No |<br/>
50
+ Fun at parties | No | Why not? | </p>
51
+
52
+ <p>Minimum markup2 for maximum quality? | Yes | No | </p>
53
+
54
+ <p>[Caption only]<br/>
55
+ Col 1 | Col 2<br/>
56
+ ----- | -----<br/>
57
+ One | Two </p>
58
+
59
+ <p>[Line Wrapping Test]<br/>
60
+ | Long Cell | MultiMarkdown | Crayons |<br/>
61
+ ----------------------------------+ | :-----------: | :------: |<br/>
62
+ Melts in warm places | No | Yes |<br/>
63
+ Mistakes can be easily fixed | Yes | No |<br/>
64
+ Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature | Yes | No |<br/>
65
+ Fun at parties | No | Why not? | </p>
@@ -0,0 +1,71 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Table Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+
7
+ | | Grouping ||
8
+ First Header | Second Header | Third Header |
9
+ | ---------- | :----------------: | -----------: |
10
+ Content | *Long Cell* ||
11
+ Content | **Cell** | Cell |
12
+
13
+ New section | More | Data |
14
+ And more | With an escaped '\|' ||
15
+ [Prototype table caption][Prototype table]
16
+
17
+
18
+ And this is a link to the [Prototype table].
19
+
20
+
21
+ And now a table with only a caption.
22
+
23
+
24
+ | | Grouping ||
25
+ First Header | Second Header | Third Header |
26
+ | ---------- | :----------------: | -----------: |
27
+ Content | *Long Cell* ||
28
+ Content | **Cell** | Cell |
29
+
30
+ New section | More | Data |
31
+ And more | With an escaped '\|' ||
32
+ [Caption but no label]
33
+
34
+ And a link to the second [table][Caption but no label].
35
+
36
+ And two tables in close proximity:
37
+
38
+ [MultiMarkdown vs. Crayons]
39
+ | Features | MultiMarkdown | Crayons |
40
+ ----------------------------------- | :-----------: | :------: |
41
+ Melts in warm places | No | Yes |
42
+ Mistakes can be easily fixed | Yes | No |
43
+ Easy to copy documents for friends | Yes | No |
44
+ Fun at parties | No | Why not? |
45
+
46
+ Minimum markup1 for maximum quality? | Yes | No |
47
+
48
+ [MultiMarkdown vs. Crayons2]
49
+ | Features | MultiMarkdown | Crayons |
50
+ ----------------------------------- | :-----------: | :------: |
51
+ Melts in warm places | No | Yes |
52
+ Mistakes can be easily fixed | Yes | No |
53
+ Easy to copy documents for friends | Yes | No |
54
+ Fun at parties | No | Why not? |
55
+
56
+ Minimum markup2 for maximum quality? | Yes | No |
57
+
58
+
59
+ [Caption only]
60
+ Col 1 | Col 2
61
+ ----- | -----
62
+ One | Two
63
+
64
+
65
+ [Line Wrapping Test]
66
+ | Long Cell | MultiMarkdown | Crayons |
67
+ ----------------------------------+ | :-----------: | :------: |
68
+ Melts in warm places | No | Yes |
69
+ Mistakes can be easily fixed | Yes | No |
70
+ Easy to copy documents for friends with some extra words to try and force a line break in every output format to test the wrapping feature | Yes | No |
71
+ Fun at parties | No | Why not? |
@@ -0,0 +1,182 @@
1
+ #!/usr/bin/perl
2
+
3
+ #
4
+ # MarkdownTester -- Run tests for Markdown implementations
5
+ #
6
+ # Copyright (c) 2004-2005 John Gruber
7
+ # <http://daringfireball.net/projects/markdown/>
8
+ #
9
+
10
+ use strict;
11
+ use warnings;
12
+ use Getopt::Long;
13
+ use Benchmark;
14
+
15
+ our $VERSION = '1.0.2';
16
+ # Sat 24 Dec 2005
17
+
18
+ my $time_start = new Benchmark;
19
+ my $test_dir = "Tests";
20
+ my $script = "./Markdown.pl";
21
+ my $use_tidy = 0;
22
+ my ($flag_version);
23
+ my $flags = "";
24
+ my $file_ext = "\.html";
25
+ my $trail = "";
26
+
27
+ GetOptions (
28
+ "script=s" => \$script,
29
+ "testdir=s" => \$test_dir,
30
+ "tidy" => \$use_tidy,
31
+ "version" => \$flag_version,
32
+ "flags=s" => \$flags,
33
+ "ext=s" => \$file_ext,
34
+ "trailflags=s" => \$trail,
35
+ );
36
+
37
+ if($flag_version) {
38
+ my $progname = $0;
39
+ $progname =~ s{.*/}{};
40
+ die "$progname version $VERSION\n";
41
+ }
42
+
43
+ unless (-d $test_dir) { die "'$test_dir' is not a directory.\n"; }
44
+ unless (-f $script) { die "$script does not exist.\n"; }
45
+ unless (-x $script) { die "$script is not executable.\n"; }
46
+
47
+ my $tests_passed = 0;
48
+ my $tests_failed = 0;
49
+
50
+ TEST:
51
+ foreach my $testfile (glob "$test_dir/*.text") {
52
+ my $testname = $testfile;
53
+ $testname =~ s{.*/(.+)\.text$}{$1}i;
54
+ print "$testname ... ";
55
+
56
+ # Look for a corresponding .html file for each .text file:
57
+ my $resultfile = $testfile;
58
+ $resultfile =~ s{\.text$}{$file_ext}i;
59
+ unless (-f $resultfile) {
60
+ print "'$resultfile' does not exist.\n\n";
61
+ next TEST;
62
+ }
63
+
64
+ # open(TEST, $testfile) || die("Can't open testfile: $!");
65
+ open(RESULT, $resultfile) || die("Can't open resultfile: $!");
66
+ undef $/;
67
+ # my $t_input = <TEST>;
68
+ my $t_result = <RESULT>;
69
+
70
+ my $t_output = `'$script' $flags '$testfile' $trail`;
71
+
72
+ # Normalize the output and expected result strings:
73
+ $t_result =~ s/\s+\z//; # trim trailing whitespace
74
+ $t_output =~ s/\s+\z//; # trim trailing whitespace
75
+ if ($use_tidy) {
76
+ # Escape the strings, pass them through to CLI tidy tool for tag-level equivalency
77
+ $t_result =~ s{'}{'\\''}g; # escape ' chars for shell
78
+ $t_output =~ s{'}{'\\''}g;
79
+ $t_result = `echo '$t_result' | tidy --show-body-only 1 --quiet 1 --show-warnings 0`;
80
+ $t_output = `echo '$t_output' | tidy --show-body-only 1 --quiet 1 --show-warnings 0`;
81
+ }
82
+
83
+ if ($t_output eq $t_result) {
84
+ print "OK\n";
85
+ $tests_passed++;
86
+ }
87
+ else {
88
+ print "FAILED\n\n";
89
+ # This part added by JM to print diffs
90
+ open(OUT, '>tmp1') or die $!;
91
+ print OUT $t_output or die $!;
92
+ open(RES, '>tmp2') or die $!;
93
+ print RES $t_result or die $!;
94
+ print `diff tmp1 tmp2`;
95
+ close RES;
96
+ close OUT;
97
+ print "\n";
98
+ `rm tmp?`;
99
+ # End of added part
100
+ $tests_failed++;
101
+ }
102
+ }
103
+
104
+ print "\n\n";
105
+ print "$tests_passed passed; $tests_failed failed.\n";
106
+
107
+ my $time_end = new Benchmark;
108
+ my $time_diff = timediff($time_end, $time_start);
109
+ print "Benchmark: ", timestr($time_diff), "\n";
110
+
111
+
112
+ __END__
113
+
114
+ =pod
115
+
116
+ =head1 NAME
117
+
118
+ B<MarkdownTest>
119
+
120
+
121
+ =head1 SYNOPSIS
122
+
123
+ B<MarkdownTest.pl> [ B<--options> ] [ I<file> ... ]
124
+
125
+
126
+ =head1 DESCRIPTION
127
+
128
+
129
+ =head1 OPTIONS
130
+
131
+ Use "--" to end switch parsing. For example, to open a file named "-z", use:
132
+
133
+ MarkdownTest.pl -- -z
134
+
135
+ =over 4
136
+
137
+ =item B<--script>
138
+
139
+ Specify the path to the Markdown script to test. Defaults to
140
+ "./Markdown.pl". Example:
141
+
142
+ ./MarkdownTest.pl --script ./PHP-Markdown/php-markdown
143
+
144
+ =item B<--testdir>
145
+
146
+ Specify the path to a directory containing test data. Defaults to "Tests".
147
+
148
+ =item B<--tidy>
149
+
150
+ Flag to turn on using the command line 'tidy' tool to normalize HTML
151
+ output before comparing script output to the expected test result.
152
+ Assumes that the 'tidy' command is available in your PATH. Defaults to
153
+ off.
154
+
155
+ =back
156
+
157
+
158
+
159
+ =head1 BUGS
160
+
161
+
162
+
163
+ =head1 VERSION HISTORY
164
+
165
+ 1.0 Mon 13 Dec 2004-2005
166
+
167
+ 1.0.1 Mon 19 Sep 2005
168
+
169
+ + Better handling of case when foo.text exists, but foo.html doesn't.
170
+ It now prints a message and moves on, rather than dying.
171
+
172
+
173
+ =head1 COPYRIGHT AND LICENSE
174
+
175
+ Copyright (c) 2004-2005 John Gruber
176
+ <http://daringfireball.net/>
177
+ All rights reserved.
178
+
179
+ This is free software; you may redistribute it and/or modify it under
180
+ the same terms as Perl itself.
181
+
182
+ =cut
@@ -0,0 +1,42 @@
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 Autoreference 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
+ <h2 id="muststartwithalpha">109&amp;^*&amp;#^() Must Start With Alpha</h2>
13
+
14
+ <h2 id="stripoutcharacters">Strip out &amp;^% characters ^&amp;*^</h2>
15
+
16
+ <h2 id="specialcrossreferencecases">Special Cross Reference Cases</h2>
17
+
18
+ <h3 id="cross-references:specialcharacters">1 Cross-References: Special Characters!@#$%^&amp;*()&lt;&gt;</h3>
19
+
20
+ <p>And now, link to <a href="#cross-references:specialcharacters">1 Cross-References: Special Characters!@#$%^&amp;*()&lt;&gt;</a></p>
21
+
22
+ <h2 id="setext1">Setext 1</h2>
23
+
24
+ <h3 id="setext2">Setext 2</h3>
25
+
26
+ <h2 id="atx1">Atx 1</h2>
27
+
28
+ <p>Link to <a href="#setext1">Setext 1</a>.</p>
29
+
30
+ <p>And <a href="#setext2">Setext 2</a>.</p>
31
+
32
+ <p>And <a href="#atx1">Atx 1</a>.</p>
33
+
34
+ <p>And [Atx 2] should fail.</p>
35
+
36
+ <h2 id="label">Manual Header</h2>
37
+
38
+ <h2 id="label2">Manual Header 2</h2>
39
+
40
+ <h3 id="label3">Manual Header 3</h3>
41
+ </body>
42
+ </html>
@@ -0,0 +1,47 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Autoreference Test}
3
+ \def\latexmode{memoir}
4
+ \input{mmd-article-begin-doc}
5
+ \chapter{109\&\^{}*\&\#\^{}() Must Start With Alpha}
6
+ \label{muststartwithalpha}
7
+
8
+ \chapter{Strip out \&\^{}\% characters \^{}\&*\^{}}
9
+ \label{stripoutcharacters}
10
+
11
+ \chapter{Special Cross Reference Cases}
12
+ \label{specialcrossreferencecases}
13
+
14
+ \section{1 Cross-References: Special Characters!@\#\$\%\^{}\&*()$<$$>$}
15
+ \label{cross-references:specialcharacters}
16
+
17
+ And now, link to 1 Cross-References: Special Characters!@\#\$\%\^{}\&*()$<$$>$ (\autoref{cross-references:specialcharacters})
18
+
19
+ \chapter{Setext 1}
20
+ \label{setext1}
21
+
22
+ \section{Setext 2}
23
+ \label{setext2}
24
+
25
+ \chapter{Atx 1}
26
+ \label{atx1}
27
+
28
+ Link to Setext 1 (\autoref{setext1}).
29
+
30
+ And Setext 2 (\autoref{setext2}).
31
+
32
+ And Atx 1 (\autoref{atx1}).
33
+
34
+ And [Atx 2] should fail.
35
+
36
+ \chapter{Manual Header}
37
+ \label{label}
38
+
39
+ \chapter{Manual Header 2}
40
+ \label{label2}
41
+
42
+ \section{Manual Header 3}
43
+ \label{label3}
44
+
45
+ \input{mmd-memoir-footer}
46
+
47
+ \end{document}
@@ -0,0 +1,46 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Autoreference Test
3
+ base header level: 2
4
+ latex mode: memoir
5
+ latex input: mmd-article-begin-doc
6
+ latex footer: mmd-memoir-footer
7
+
8
+ # 109&^*&#^() Must Start With Alpha #
9
+
10
+ # Strip out &^% characters ^&*^ #
11
+
12
+
13
+ # Special Cross Reference Cases#
14
+
15
+ ## 1 Cross-References: Special Characters!@#$%^&*()<>##
16
+
17
+ And now, link to [1 Cross-References: Special Characters!@#$%^&*()<>][]
18
+
19
+
20
+ Setext 1
21
+ ========
22
+
23
+
24
+ Setext 2
25
+ --------
26
+
27
+ #Atx 1 #
28
+
29
+
30
+ Link to [Setext 1].
31
+
32
+ And [Setext 2].
33
+
34
+ And [Atx 1].
35
+
36
+ And [Atx 2] should fail.
37
+
38
+
39
+ # Manual Header [label] #
40
+
41
+
42
+ Manual Header 2 [label2]
43
+ ========================
44
+
45
+ Manual Header 3 [label3]
46
+ ------------------------
@@ -0,0 +1,20 @@
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 Base Header Level 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
+ <h2 id="thisshouldbeh2">This should be h2</h2>
13
+
14
+ <h3 id="thisshouldbeh3">This should be h3</h3>
15
+
16
+ <h6 id="thisshouldbeh6">This should be h6</h6>
17
+
18
+ <h6 id="thisshouldbeh6inhtmlh7inlatex">This should be h6 in HTML h7 in LaTeX</h6>
19
+ </body>
20
+ </html>
@@ -0,0 +1,19 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Base Header Level Test}
3
+ \def\latexmode{memoir}
4
+ \input{mmd-article-begin-doc}
5
+ \chapter{This should be h2}
6
+ \label{thisshouldbeh2}
7
+
8
+ \section{This should be h3}
9
+ \label{thisshouldbeh3}
10
+
11
+ \paragraph{This should be h6}
12
+ \label{thisshouldbeh6}
13
+
14
+ \subparagraph{This should be h6 in HTML h7 in LaTeX}
15
+ \label{thisshouldbeh6inhtmlh7inlatex}
16
+
17
+ \input{mmd-memoir-footer}
18
+
19
+ \end{document}
@@ -0,0 +1,16 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Base Header Level 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
+ # This should be h2 #
9
+
10
+ ## This should be h3 ##
11
+
12
+
13
+ ##### This should be h6 #####
14
+
15
+ ###### This should be h6 in HTML h7 in LaTeX ######
16
+
@@ -0,0 +1,17 @@
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 BibTeX Test</title>
7
+ <meta name="latexmode" content="memoir"/>
8
+ <meta name="bibtex" content="bibtex"/>
9
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
10
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
11
+ </head>
12
+ <body>
13
+ <p>This is a test of BibTeX Support.<span class="externalcitation">[#Knuth:1968]</span></p>
14
+
15
+ <p>And a locator.<span class="externalcitation">[p. 123][#Knuth:1981]</span></p>
16
+ </body>
17
+ </html>