rpeg-multimarkdown 0.1.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 (214) hide show
  1. data/LICENSE +94 -0
  2. data/README.markdown +58 -0
  3. data/Rakefile +171 -0
  4. data/bin/rpeg-multimarkdown +128 -0
  5. data/ext/extconf.h +3 -0
  6. data/ext/extconf.rb +15 -0
  7. data/ext/markdown.c +88 -0
  8. data/ext/markdown_lib.c +211 -0
  9. data/ext/markdown_lib.h +28 -0
  10. data/ext/markdown_output.c +2704 -0
  11. data/ext/markdown_parser.c +8275 -0
  12. data/ext/markdown_peg.h +142 -0
  13. data/ext/odf.c +179 -0
  14. data/ext/odf.h +3 -0
  15. data/ext/parsing_functions.c +182 -0
  16. data/ext/utility_functions.c +535 -0
  17. data/lib/multimarkdown.rb +1 -0
  18. data/lib/peg_multimarkdown.rb +74 -0
  19. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.html +76 -0
  20. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +64 -0
  21. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.text +38 -0
  22. data/test/MultiMarkdownTest/MarkdownTest.pl +182 -0
  23. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.html +42 -0
  24. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex +47 -0
  25. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.text +46 -0
  26. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.html +20 -0
  27. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.tex +19 -0
  28. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.text +16 -0
  29. data/test/MultiMarkdownTest/MemoirTests/BibTeX.html +17 -0
  30. data/test/MultiMarkdownTest/MemoirTests/BibTeX.tex +12 -0
  31. data/test/MultiMarkdownTest/MemoirTests/BibTeX.text +11 -0
  32. data/test/MultiMarkdownTest/MemoirTests/Citations.html +63 -0
  33. data/test/MultiMarkdownTest/MemoirTests/Citations.tex +48 -0
  34. data/test/MultiMarkdownTest/MemoirTests/Citations.text +43 -0
  35. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.html +61 -0
  36. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +63 -0
  37. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.text +40 -0
  38. data/test/MultiMarkdownTest/MemoirTests/Dutch.html +23 -0
  39. data/test/MultiMarkdownTest/MemoirTests/Dutch.tex +18 -0
  40. data/test/MultiMarkdownTest/MemoirTests/Dutch.text +17 -0
  41. data/test/MultiMarkdownTest/MemoirTests/Email.html +48 -0
  42. data/test/MultiMarkdownTest/MemoirTests/Email.tex +61 -0
  43. data/test/MultiMarkdownTest/MemoirTests/Email.text +32 -0
  44. data/test/MultiMarkdownTest/MemoirTests/English.html +23 -0
  45. data/test/MultiMarkdownTest/MemoirTests/English.tex +18 -0
  46. data/test/MultiMarkdownTest/MemoirTests/English.text +17 -0
  47. data/test/MultiMarkdownTest/MemoirTests/Footnotes.html +47 -0
  48. data/test/MultiMarkdownTest/MemoirTests/Footnotes.tex +28 -0
  49. data/test/MultiMarkdownTest/MemoirTests/Footnotes.text +26 -0
  50. data/test/MultiMarkdownTest/MemoirTests/French.html +23 -0
  51. data/test/MultiMarkdownTest/MemoirTests/French.tex +18 -0
  52. data/test/MultiMarkdownTest/MemoirTests/French.text +17 -0
  53. data/test/MultiMarkdownTest/MemoirTests/German.html +23 -0
  54. data/test/MultiMarkdownTest/MemoirTests/German.tex +18 -0
  55. data/test/MultiMarkdownTest/MemoirTests/German.text +17 -0
  56. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.html +23 -0
  57. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.tex +18 -0
  58. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.text +17 -0
  59. data/test/MultiMarkdownTest/MemoirTests/Glossary.html +47 -0
  60. data/test/MultiMarkdownTest/MemoirTests/Glossary.tex +30 -0
  61. data/test/MultiMarkdownTest/MemoirTests/Glossary.text +29 -0
  62. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.html +21 -0
  63. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.tex +16 -0
  64. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.text +16 -0
  65. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.html +40 -0
  66. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.tex +61 -0
  67. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.text +51 -0
  68. data/test/MultiMarkdownTest/MemoirTests/Math.html +22 -0
  69. data/test/MultiMarkdownTest/MemoirTests/Math.tex +16 -0
  70. data/test/MultiMarkdownTest/MemoirTests/Math.text +16 -0
  71. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.html +24 -0
  72. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.tex +23 -0
  73. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.text +20 -0
  74. data/test/MultiMarkdownTest/MemoirTests/MetaData.html +22 -0
  75. data/test/MultiMarkdownTest/MemoirTests/MetaData.tex +14 -0
  76. data/test/MultiMarkdownTest/MemoirTests/MetaData.text +15 -0
  77. data/test/MultiMarkdownTest/MemoirTests/Sanity.html +100 -0
  78. data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +101 -0
  79. data/test/MultiMarkdownTest/MemoirTests/Sanity.text +78 -0
  80. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.html +26 -0
  81. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.tex +21 -0
  82. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.text +19 -0
  83. data/test/MultiMarkdownTest/MemoirTests/Swedish.html +23 -0
  84. data/test/MultiMarkdownTest/MemoirTests/Swedish.tex +18 -0
  85. data/test/MultiMarkdownTest/MemoirTests/Swedish.text +17 -0
  86. data/test/MultiMarkdownTest/MemoirTests/Tables.html +221 -0
  87. data/test/MultiMarkdownTest/MemoirTests/Tables.tex +134 -0
  88. data/test/MultiMarkdownTest/MemoirTests/Tables.text +64 -0
  89. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +41 -0
  90. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.tex +46 -0
  91. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.text +45 -0
  92. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +20 -0
  93. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex +19 -0
  94. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text +16 -0
  95. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +16 -0
  96. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex +11 -0
  97. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text +10 -0
  98. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +62 -0
  99. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.tex +47 -0
  100. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.text +42 -0
  101. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +60 -0
  102. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +62 -0
  103. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.text +39 -0
  104. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +23 -0
  105. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.tex +18 -0
  106. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.text +17 -0
  107. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +47 -0
  108. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.tex +54 -0
  109. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.text +31 -0
  110. data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +23 -0
  111. data/test/MultiMarkdownTest/MultiMarkdownTests/English.tex +18 -0
  112. data/test/MultiMarkdownTest/MultiMarkdownTests/English.text +17 -0
  113. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +16 -0
  114. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.tex +11 -0
  115. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.text +11 -0
  116. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +46 -0
  117. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.tex +24 -0
  118. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.text +25 -0
  119. data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +23 -0
  120. data/test/MultiMarkdownTest/MultiMarkdownTests/French.tex +18 -0
  121. data/test/MultiMarkdownTest/MultiMarkdownTests/French.text +17 -0
  122. data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +23 -0
  123. data/test/MultiMarkdownTest/MultiMarkdownTests/German.tex +18 -0
  124. data/test/MultiMarkdownTest/MultiMarkdownTests/German.text +17 -0
  125. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +23 -0
  126. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.tex +18 -0
  127. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.text +17 -0
  128. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +46 -0
  129. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.tex +26 -0
  130. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.text +28 -0
  131. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +46 -0
  132. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +52 -0
  133. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +49 -0
  134. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +20 -0
  135. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.tex +15 -0
  136. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.text +15 -0
  137. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +54 -0
  138. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.tex +60 -0
  139. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.text +50 -0
  140. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +20 -0
  141. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.tex +17 -0
  142. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.text +11 -0
  143. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +19 -0
  144. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.tex +13 -0
  145. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.text +19 -0
  146. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +21 -0
  147. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.tex +15 -0
  148. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.text +15 -0
  149. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +21 -0
  150. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex +13 -0
  151. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text +14 -0
  152. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +104 -0
  153. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +100 -0
  154. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text +77 -0
  155. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +29 -0
  156. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.tex +24 -0
  157. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.text +22 -0
  158. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +23 -0
  159. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.tex +18 -0
  160. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.text +17 -0
  161. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +230 -0
  162. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +133 -0
  163. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +63 -0
  164. data/test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib +119 -0
  165. data/test/MultiMarkdownTest/README.md +58 -0
  166. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.html +17 -0
  167. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.text +21 -0
  168. data/test/MultiMarkdownTest/Tests/Auto links.html +18 -0
  169. data/test/MultiMarkdownTest/Tests/Auto links.text +13 -0
  170. data/test/MultiMarkdownTest/Tests/Backslash escapes.html +118 -0
  171. data/test/MultiMarkdownTest/Tests/Backslash escapes.text +120 -0
  172. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.html +15 -0
  173. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.text +11 -0
  174. data/test/MultiMarkdownTest/Tests/Code Blocks.html +18 -0
  175. data/test/MultiMarkdownTest/Tests/Code Blocks.text +14 -0
  176. data/test/MultiMarkdownTest/Tests/Code Spans.html +6 -0
  177. data/test/MultiMarkdownTest/Tests/Code Spans.text +6 -0
  178. data/test/MultiMarkdownTest/Tests/Compatibility.html +5 -0
  179. data/test/MultiMarkdownTest/Tests/Compatibility.text +9 -0
  180. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
  181. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
  182. data/test/MultiMarkdownTest/Tests/Horizontal rules.html +71 -0
  183. data/test/MultiMarkdownTest/Tests/Horizontal rules.text +67 -0
  184. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).html +15 -0
  185. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).text +15 -0
  186. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).html +72 -0
  187. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).text +69 -0
  188. data/test/MultiMarkdownTest/Tests/Inline HTML comments.html +13 -0
  189. data/test/MultiMarkdownTest/Tests/Inline HTML comments.text +13 -0
  190. data/test/MultiMarkdownTest/Tests/Links, inline style.html +11 -0
  191. data/test/MultiMarkdownTest/Tests/Links, inline style.text +12 -0
  192. data/test/MultiMarkdownTest/Tests/Links, reference style.html +52 -0
  193. data/test/MultiMarkdownTest/Tests/Links, reference style.text +71 -0
  194. data/test/MultiMarkdownTest/Tests/Links, shortcut references.html +9 -0
  195. data/test/MultiMarkdownTest/Tests/Links, shortcut references.text +20 -0
  196. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.html +3 -0
  197. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.text +7 -0
  198. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.html +314 -0
  199. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.text +306 -0
  200. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.html +942 -0
  201. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.text +888 -0
  202. data/test/MultiMarkdownTest/Tests/Nested blockquotes.html +9 -0
  203. data/test/MultiMarkdownTest/Tests/Nested blockquotes.text +5 -0
  204. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.html +148 -0
  205. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.text +131 -0
  206. data/test/MultiMarkdownTest/Tests/Strong and em together.html +7 -0
  207. data/test/MultiMarkdownTest/Tests/Strong and em together.text +7 -0
  208. data/test/MultiMarkdownTest/Tests/Tabs.html +25 -0
  209. data/test/MultiMarkdownTest/Tests/Tabs.text +21 -0
  210. data/test/MultiMarkdownTest/Tests/Tidyness.html +8 -0
  211. data/test/MultiMarkdownTest/Tests/Tidyness.text +5 -0
  212. data/test/benchmark.rb +49 -0
  213. data/test/multimarkdown_test.rb +89 -0
  214. metadata +280 -0
@@ -0,0 +1,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>
@@ -0,0 +1,12 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown BibTeX Test}
3
+ \def\latexmode{memoir}
4
+ \def\bibliocommand{\bibliography{bibtex}}
5
+ \input{mmd-article-begin-doc}
6
+ This is a test of BibTeX Support.~\citep{Knuth:1968}
7
+
8
+ And a locator.~\citep[p. 123]{Knuth:1981}
9
+
10
+ \input{mmd-memoir-footer}
11
+
12
+ \end{document}
@@ -0,0 +1,11 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown BibTeX Test
3
+ latex mode: memoir
4
+ BibTeX: bibtex
5
+ latex input: mmd-article-begin-doc
6
+ latex footer: mmd-memoir-footer
7
+
8
+ This is a test of BibTeX Support.[#Knuth:1968]
9
+
10
+ And a locator.[p. 123][#Knuth:1981]
11
+
@@ -0,0 +1,63 @@
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 Citation Test</title>
7
+ <link type="text/css" rel="stylesheet" href="http://fletcherpenney.net/css/document.css"/>
8
+ <meta name="bibtex" content="fake"/>
9
+ <meta name="latexmode" content="memoir"/>
10
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
11
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
12
+ </head>
13
+ <body>
14
+ <p>This is a test of citations<a class="citation" href="#fn:1" title="Jump to citation">[1]<span class="citekey" style="display:none">first</span></a> for<a href="#fn:2" id="fnref:2" title="see footnote" class="footnote">[2]</a> MultiMarkdown<a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a>.</p>
15
+
16
+ <p>And an unlisted citation.<span class="externalcitation">[#Author:1988]</span>.</p>
17
+
18
+ <p>And now some repeats&#8230;<a href="#fn:4" id="fnref:4" title="see footnote" class="footnote">[4]</a></p>
19
+
20
+ <p>This is a test of citations<a class="citation" href="#fn:1" title="Jump to citation">[<span class="locator">p. 123</span>, 1]<span class="citekey" style="display:none">first</span></a> for MultiMarkdown<a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a>.</p>
21
+
22
+ <p>And an unlisted citation<span class="externalcitation">[#Author:1988]</span>.</p>
23
+
24
+ <p>Unlisted with locator.<span class="externalcitation">[test][#Author:1988]</span></p>
25
+
26
+ <p>Empty locator.<a class="citation" href="#fn:1" title="Jump to citation">[1]<span class="citekey" style="display:none">first</span></a></p>
27
+
28
+ <p>Consecutive citations.<a class="citation" href="#fn:1" title="Jump to citation">[1]<span class="citekey" style="display:none">first</span></a><a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a></p>
29
+
30
+ <p>Consecutive citations.<a class="citation" href="#fn:1" title="Jump to citation">[1]<span class="citekey" style="display:none">first</span></a><a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a></p>
31
+
32
+ <p>An &#8220;improperly&#8221; formed citation.<a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a></p>
33
+
34
+ <p>And an &#8220;improper&#8221; sequence.<a class="citation" href="#fn:1" title="Jump to citation">[1]<span class="citekey" style="display:none">first</span></a><a class="citation" href="#fn:3" title="Jump to citation">[3]<span class="citekey" style="display:none">second</span></a></p>
35
+
36
+ <p><span class="notcited" id="5"><span class="citekey" style="display:none">third</span></span></p>
37
+
38
+ <div class="footnotes">
39
+ <hr />
40
+ <ol>
41
+
42
+ <li id="fn:1" class="citation"><span class="citekey" style="display:none">first</span><p>John Doe. <em>A Totally Fake Book</em>. Vanity Press, 2006.</p>
43
+ </li>
44
+
45
+ <li id="fn:2">
46
+ <p>A footnote for good measure.</p> <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a>
47
+ </li>
48
+
49
+ <li id="fn:3" class="citation"><span class="citekey" style="display:none">second</span><p>Jane Doe. <em>Another Totally Fake Book</em>. Vanity Press, 2008.</p>
50
+ </li>
51
+
52
+ <li id="fn:4">
53
+ <p>And another footnote</p> <a href="#fnref:4" title="return to article" class="reversefootnote">&#160;&#8617;</a>
54
+ </li>
55
+
56
+ <li id="fn:5" class="citation"><span class="citekey" style="display:none">third</span><p>Jim Doe. <em>Yet Another Fake Book</em>. Vanity Press, 2010.</p>
57
+ </li>
58
+
59
+ </ol>
60
+ </div>
61
+
62
+ </body>
63
+ </html>
@@ -0,0 +1,48 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Citation Test}
3
+ \def\bibliocommand{\bibliography{fake}}
4
+ \def\latexmode{memoir}
5
+ \input{mmd-article-begin-doc}
6
+ This is a test of citations~\citep{first} for\footnote{A footnote for good measure.} MultiMarkdown~\citep{second}.
7
+
8
+ And an unlisted citation.~\citep{Author:1988}.
9
+
10
+ And now some repeats{\ldots}\footnote{And another footnote}
11
+
12
+ This is a test of citations~\citep[p. 123]{first} for MultiMarkdown~\citep{second}.
13
+
14
+ And an unlisted citation~\citep{Author:1988}.
15
+
16
+ Unlisted with locator.~\citep[test]{Author:1988}
17
+
18
+ Empty locator.~\citep{first}
19
+
20
+ Consecutive citations.~\citep{first}~\citep{second}
21
+
22
+ Consecutive citations.~\citep{first}~\citep{second}
23
+
24
+ An ``improperly'' formed citation.~\citep{second}
25
+
26
+ And an ``improper'' sequence.~\citep{first}~\citep{second}
27
+
28
+ ~\nocite{third}
29
+
30
+ \begin{thebibliography}{0}
31
+
32
+ \bibitem{first}
33
+ John Doe. \emph{A Totally Fake Book}. Vanity Press, 2006.
34
+
35
+
36
+ \bibitem{second}
37
+ Jane Doe. \emph{Another Totally Fake Book}. Vanity Press, 2008.
38
+
39
+
40
+ \bibitem{third}
41
+ Jim Doe. \emph{Yet Another Fake Book}. Vanity Press, 2010.
42
+
43
+
44
+ \end{thebibliography}
45
+
46
+ \input{mmd-memoir-footer}
47
+
48
+ \end{document}
@@ -0,0 +1,43 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Citation Test
3
+ CSS: http://fletcherpenney.net/css/document.css
4
+ BibTex: fake
5
+ latex mode: memoir
6
+ latex input: mmd-article-begin-doc
7
+ latex footer: mmd-memoir-footer
8
+
9
+ This is a test of citations[#first] for[^note] MultiMarkdown[#second].
10
+
11
+ And an unlisted citation.[#Author:1988].
12
+
13
+ And now some repeats...[^note2]
14
+
15
+ This is a test of citations[p. 123][#first] for MultiMarkdown[#second].
16
+
17
+ And an unlisted citation[#Author:1988].
18
+
19
+ Unlisted with locator.[test][#Author:1988]
20
+
21
+ Empty locator.[#first][]
22
+
23
+ Consecutive citations.[#first][#second]
24
+
25
+ Consecutive citations.[#first][][#second][]
26
+
27
+ An "improperly" formed citation.[][#second]
28
+
29
+ And an "improper" sequence.[][#first][][#second]
30
+
31
+
32
+ [not cited][#third]
33
+
34
+
35
+ [#first]: John Doe. *A Totally Fake Book*. Vanity Press, 2006.
36
+
37
+ [#second]: Jane Doe. *Another Totally Fake Book*. Vanity Press, 2008.
38
+
39
+ [#third]: Jim Doe. *Yet Another Fake Book*. Vanity Press, 2010.
40
+
41
+ [^note]: A footnote for good measure.
42
+
43
+ [^note2]: And another footnote
@@ -0,0 +1,61 @@
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 Definition List 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
+ <dl>
13
+ <dt>Term 1
14
+ </dt>
15
+ <dt>Term 2
16
+ </dt>
17
+ <dd>Definition a</dd>
18
+
19
+ <dt>Term 3
20
+ </dt>
21
+ <dd>Definition b</dd>
22
+
23
+ <dd>Definition c</dd>
24
+
25
+ <dt>Term 1
26
+ </dt>
27
+ <dd>
28
+ <p>This is a definition with two paragraphs. Lorem ipsum
29
+ dolor sit amet, consectetuer adipiscing elit. Aliquam
30
+ hendrerit mi posuere lectus.</p>
31
+
32
+ <p>Vestibulum enim wisi, viverra nec, fringilla in, laoreet
33
+ vitae, risus.</p></dd>
34
+
35
+ <dd>
36
+ <p>Second definition for term 1, also wrapped in a paragraph
37
+ because of the blank line preceding it.</p></dd>
38
+
39
+ <dt>Term 2
40
+ </dt>
41
+ <dd>
42
+ <p>This definition has a code block, a blockquote and a list.</p>
43
+
44
+ <pre><code>code block.
45
+ </code></pre>
46
+
47
+ <blockquote>
48
+ <p>block quote
49
+ on two lines.</p>
50
+ </blockquote>
51
+
52
+ <ol>
53
+ <li>first list item</li>
54
+ <li>second list item</li>
55
+ </ol></dd>
56
+ </dl>
57
+
58
+
59
+ <p>And this is a regular paragraph.</p>
60
+ </body>
61
+ </html>
@@ -0,0 +1,63 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Definition List Test}
3
+ \def\latexmode{memoir}
4
+ \input{mmd-article-begin-doc}
5
+ \begin{description}
6
+
7
+ \item[Term 1
8
+ ]
9
+
10
+ \item[Term 2
11
+ ]
12
+
13
+ Definition a
14
+
15
+ \item[Term 3
16
+ ]
17
+
18
+ Definition b
19
+
20
+ Definition c
21
+
22
+ \item[Term 1
23
+ ]
24
+
25
+ This is a definition with two paragraphs. Lorem ipsum
26
+ dolor sit amet, consectetuer adipiscing elit. Aliquam
27
+ hendrerit mi posuere lectus.
28
+
29
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet
30
+ vitae, risus.
31
+
32
+ Second definition for term 1, also wrapped in a paragraph
33
+ because of the blank line preceding it.
34
+
35
+ \item[Term 2
36
+ ]
37
+
38
+ This definition has a code block, a blockquote and a list.
39
+
40
+ \begin{verbatim}
41
+ code block.
42
+ \end{verbatim}
43
+
44
+
45
+ \begin{quote}
46
+
47
+ block quote
48
+ on two lines.
49
+ \end{quote}
50
+
51
+ \begin{enumerate}
52
+ \item first list item
53
+
54
+ \item second list item
55
+
56
+ \end{enumerate}
57
+ \end{description}
58
+
59
+ And this is a regular paragraph.
60
+
61
+ \input{mmd-memoir-footer}
62
+
63
+ \end{document}