rpeg-multimarkdown 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. data/LICENSE +94 -0
  2. data/README.markdown +58 -0
  3. data/Rakefile +171 -0
  4. data/bin/rpeg-multimarkdown +128 -0
  5. data/ext/extconf.h +3 -0
  6. data/ext/extconf.rb +15 -0
  7. data/ext/markdown.c +88 -0
  8. data/ext/markdown_lib.c +211 -0
  9. data/ext/markdown_lib.h +28 -0
  10. data/ext/markdown_output.c +2704 -0
  11. data/ext/markdown_parser.c +8275 -0
  12. data/ext/markdown_peg.h +142 -0
  13. data/ext/odf.c +179 -0
  14. data/ext/odf.h +3 -0
  15. data/ext/parsing_functions.c +182 -0
  16. data/ext/utility_functions.c +535 -0
  17. data/lib/multimarkdown.rb +1 -0
  18. data/lib/peg_multimarkdown.rb +74 -0
  19. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.html +76 -0
  20. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +64 -0
  21. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.text +38 -0
  22. data/test/MultiMarkdownTest/MarkdownTest.pl +182 -0
  23. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.html +42 -0
  24. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex +47 -0
  25. data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.text +46 -0
  26. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.html +20 -0
  27. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.tex +19 -0
  28. data/test/MultiMarkdownTest/MemoirTests/Base Header Level.text +16 -0
  29. data/test/MultiMarkdownTest/MemoirTests/BibTeX.html +17 -0
  30. data/test/MultiMarkdownTest/MemoirTests/BibTeX.tex +12 -0
  31. data/test/MultiMarkdownTest/MemoirTests/BibTeX.text +11 -0
  32. data/test/MultiMarkdownTest/MemoirTests/Citations.html +63 -0
  33. data/test/MultiMarkdownTest/MemoirTests/Citations.tex +48 -0
  34. data/test/MultiMarkdownTest/MemoirTests/Citations.text +43 -0
  35. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.html +61 -0
  36. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +63 -0
  37. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.text +40 -0
  38. data/test/MultiMarkdownTest/MemoirTests/Dutch.html +23 -0
  39. data/test/MultiMarkdownTest/MemoirTests/Dutch.tex +18 -0
  40. data/test/MultiMarkdownTest/MemoirTests/Dutch.text +17 -0
  41. data/test/MultiMarkdownTest/MemoirTests/Email.html +48 -0
  42. data/test/MultiMarkdownTest/MemoirTests/Email.tex +61 -0
  43. data/test/MultiMarkdownTest/MemoirTests/Email.text +32 -0
  44. data/test/MultiMarkdownTest/MemoirTests/English.html +23 -0
  45. data/test/MultiMarkdownTest/MemoirTests/English.tex +18 -0
  46. data/test/MultiMarkdownTest/MemoirTests/English.text +17 -0
  47. data/test/MultiMarkdownTest/MemoirTests/Footnotes.html +47 -0
  48. data/test/MultiMarkdownTest/MemoirTests/Footnotes.tex +28 -0
  49. data/test/MultiMarkdownTest/MemoirTests/Footnotes.text +26 -0
  50. data/test/MultiMarkdownTest/MemoirTests/French.html +23 -0
  51. data/test/MultiMarkdownTest/MemoirTests/French.tex +18 -0
  52. data/test/MultiMarkdownTest/MemoirTests/French.text +17 -0
  53. data/test/MultiMarkdownTest/MemoirTests/German.html +23 -0
  54. data/test/MultiMarkdownTest/MemoirTests/German.tex +18 -0
  55. data/test/MultiMarkdownTest/MemoirTests/German.text +17 -0
  56. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.html +23 -0
  57. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.tex +18 -0
  58. data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.text +17 -0
  59. data/test/MultiMarkdownTest/MemoirTests/Glossary.html +47 -0
  60. data/test/MultiMarkdownTest/MemoirTests/Glossary.tex +30 -0
  61. data/test/MultiMarkdownTest/MemoirTests/Glossary.text +29 -0
  62. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.html +21 -0
  63. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.tex +16 -0
  64. data/test/MultiMarkdownTest/MemoirTests/Line Breaks.text +16 -0
  65. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.html +40 -0
  66. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.tex +61 -0
  67. data/test/MultiMarkdownTest/MemoirTests/Link Attributes.text +51 -0
  68. data/test/MultiMarkdownTest/MemoirTests/Math.html +22 -0
  69. data/test/MultiMarkdownTest/MemoirTests/Math.tex +16 -0
  70. data/test/MultiMarkdownTest/MemoirTests/Math.text +16 -0
  71. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.html +24 -0
  72. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.tex +23 -0
  73. data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.text +20 -0
  74. data/test/MultiMarkdownTest/MemoirTests/MetaData.html +22 -0
  75. data/test/MultiMarkdownTest/MemoirTests/MetaData.tex +14 -0
  76. data/test/MultiMarkdownTest/MemoirTests/MetaData.text +15 -0
  77. data/test/MultiMarkdownTest/MemoirTests/Sanity.html +100 -0
  78. data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +101 -0
  79. data/test/MultiMarkdownTest/MemoirTests/Sanity.text +78 -0
  80. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.html +26 -0
  81. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.tex +21 -0
  82. data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.text +19 -0
  83. data/test/MultiMarkdownTest/MemoirTests/Swedish.html +23 -0
  84. data/test/MultiMarkdownTest/MemoirTests/Swedish.tex +18 -0
  85. data/test/MultiMarkdownTest/MemoirTests/Swedish.text +17 -0
  86. data/test/MultiMarkdownTest/MemoirTests/Tables.html +221 -0
  87. data/test/MultiMarkdownTest/MemoirTests/Tables.tex +134 -0
  88. data/test/MultiMarkdownTest/MemoirTests/Tables.text +64 -0
  89. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +41 -0
  90. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.tex +46 -0
  91. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.text +45 -0
  92. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +20 -0
  93. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex +19 -0
  94. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text +16 -0
  95. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +16 -0
  96. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex +11 -0
  97. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text +10 -0
  98. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +62 -0
  99. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.tex +47 -0
  100. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.text +42 -0
  101. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +60 -0
  102. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +62 -0
  103. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.text +39 -0
  104. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +23 -0
  105. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.tex +18 -0
  106. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.text +17 -0
  107. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +47 -0
  108. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.tex +54 -0
  109. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.text +31 -0
  110. data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +23 -0
  111. data/test/MultiMarkdownTest/MultiMarkdownTests/English.tex +18 -0
  112. data/test/MultiMarkdownTest/MultiMarkdownTests/English.text +17 -0
  113. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +16 -0
  114. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.tex +11 -0
  115. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.text +11 -0
  116. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +46 -0
  117. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.tex +24 -0
  118. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.text +25 -0
  119. data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +23 -0
  120. data/test/MultiMarkdownTest/MultiMarkdownTests/French.tex +18 -0
  121. data/test/MultiMarkdownTest/MultiMarkdownTests/French.text +17 -0
  122. data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +23 -0
  123. data/test/MultiMarkdownTest/MultiMarkdownTests/German.tex +18 -0
  124. data/test/MultiMarkdownTest/MultiMarkdownTests/German.text +17 -0
  125. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +23 -0
  126. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.tex +18 -0
  127. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.text +17 -0
  128. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +46 -0
  129. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.tex +26 -0
  130. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.text +28 -0
  131. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +46 -0
  132. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +52 -0
  133. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +49 -0
  134. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +20 -0
  135. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.tex +15 -0
  136. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.text +15 -0
  137. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +54 -0
  138. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.tex +60 -0
  139. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.text +50 -0
  140. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +20 -0
  141. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.tex +17 -0
  142. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.text +11 -0
  143. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +19 -0
  144. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.tex +13 -0
  145. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.text +19 -0
  146. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +21 -0
  147. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.tex +15 -0
  148. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.text +15 -0
  149. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +21 -0
  150. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex +13 -0
  151. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text +14 -0
  152. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +104 -0
  153. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +100 -0
  154. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text +77 -0
  155. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +29 -0
  156. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.tex +24 -0
  157. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.text +22 -0
  158. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +23 -0
  159. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.tex +18 -0
  160. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.text +17 -0
  161. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +230 -0
  162. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +133 -0
  163. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +63 -0
  164. data/test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib +119 -0
  165. data/test/MultiMarkdownTest/README.md +58 -0
  166. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.html +17 -0
  167. data/test/MultiMarkdownTest/Tests/Amps and angle encoding.text +21 -0
  168. data/test/MultiMarkdownTest/Tests/Auto links.html +18 -0
  169. data/test/MultiMarkdownTest/Tests/Auto links.text +13 -0
  170. data/test/MultiMarkdownTest/Tests/Backslash escapes.html +118 -0
  171. data/test/MultiMarkdownTest/Tests/Backslash escapes.text +120 -0
  172. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.html +15 -0
  173. data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.text +11 -0
  174. data/test/MultiMarkdownTest/Tests/Code Blocks.html +18 -0
  175. data/test/MultiMarkdownTest/Tests/Code Blocks.text +14 -0
  176. data/test/MultiMarkdownTest/Tests/Code Spans.html +6 -0
  177. data/test/MultiMarkdownTest/Tests/Code Spans.text +6 -0
  178. data/test/MultiMarkdownTest/Tests/Compatibility.html +5 -0
  179. data/test/MultiMarkdownTest/Tests/Compatibility.text +9 -0
  180. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
  181. data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
  182. data/test/MultiMarkdownTest/Tests/Horizontal rules.html +71 -0
  183. data/test/MultiMarkdownTest/Tests/Horizontal rules.text +67 -0
  184. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).html +15 -0
  185. data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).text +15 -0
  186. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).html +72 -0
  187. data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).text +69 -0
  188. data/test/MultiMarkdownTest/Tests/Inline HTML comments.html +13 -0
  189. data/test/MultiMarkdownTest/Tests/Inline HTML comments.text +13 -0
  190. data/test/MultiMarkdownTest/Tests/Links, inline style.html +11 -0
  191. data/test/MultiMarkdownTest/Tests/Links, inline style.text +12 -0
  192. data/test/MultiMarkdownTest/Tests/Links, reference style.html +52 -0
  193. data/test/MultiMarkdownTest/Tests/Links, reference style.text +71 -0
  194. data/test/MultiMarkdownTest/Tests/Links, shortcut references.html +9 -0
  195. data/test/MultiMarkdownTest/Tests/Links, shortcut references.text +20 -0
  196. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.html +3 -0
  197. data/test/MultiMarkdownTest/Tests/Literal quotes in titles.text +7 -0
  198. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.html +314 -0
  199. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.text +306 -0
  200. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.html +942 -0
  201. data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.text +888 -0
  202. data/test/MultiMarkdownTest/Tests/Nested blockquotes.html +9 -0
  203. data/test/MultiMarkdownTest/Tests/Nested blockquotes.text +5 -0
  204. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.html +148 -0
  205. data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.text +131 -0
  206. data/test/MultiMarkdownTest/Tests/Strong and em together.html +7 -0
  207. data/test/MultiMarkdownTest/Tests/Strong and em together.text +7 -0
  208. data/test/MultiMarkdownTest/Tests/Tabs.html +25 -0
  209. data/test/MultiMarkdownTest/Tests/Tabs.text +21 -0
  210. data/test/MultiMarkdownTest/Tests/Tidyness.html +8 -0
  211. data/test/MultiMarkdownTest/Tests/Tidyness.text +5 -0
  212. data/test/benchmark.rb +49 -0
  213. data/test/multimarkdown_test.rb +89 -0
  214. metadata +280 -0
@@ -0,0 +1,15 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Math Example}
3
+ \input{mmd-article-begin-doc}
4
+ An example of math within a paragraph --- ${e}^{i\pi }+1=0$ --- easy
5
+ enough.
6
+
7
+ And an equation on it's own:
8
+
9
+ \[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]
10
+
11
+ That's it.
12
+
13
+ \input{mmd-memoir-footer}
14
+
15
+ \end{document}
@@ -0,0 +1,15 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Math Example
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+ xhtml header: <script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script>
6
+
7
+
8
+ An example of math within a paragraph --- \\({e}^{i\pi }+1=0\\) --- easy
9
+ enough.
10
+
11
+ And an equation on it's own:
12
+
13
+ \\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]
14
+
15
+ That's it.
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
+ <!DOCTYPE html>
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>This should be a &lt;title&gt; element</title>
7
+ <meta name="author" content="This should be the author"/>
8
+ <meta name="latexinput" content="inputthisfile"/>
9
+ <meta name="bibtex" content="bibliographyfile"/>
10
+ <meta name="date" content="January 1, 2011"/>
11
+ <link type="text/css" rel="stylesheet" href="http://fletcherpenney.net/css/document.css"/>
12
+ <meta name="emptymetadata" content=""/>
13
+ <meta name="testing"
14
+ content="This test should fail in LaTeX from XSLT"/>
15
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
16
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
17
+ </head>
18
+ <body>
19
+ <p>And this should be the main text.</p>
20
+ </body>
21
+ </html>
@@ -0,0 +1,13 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{This should be a $<$title$>$ element}
3
+ \def\myauthor{This should be the author}
4
+ \input{inputthisfile}
5
+ \def\bibliocommand{\bibliography{bibliographyfile}}
6
+ \def\mydate{January 1, 2011}
7
+ \def\emptymetadata{}
8
+ \input{mmd-article-begin-doc}
9
+ And this should be the main text.
10
+
11
+ \input{mmd-memoir-footer}
12
+
13
+ \end{document}
@@ -0,0 +1,14 @@
1
+ latex input: mmd-article-header
2
+ Title: This should be a <title> element
3
+ Author: This should be the author
4
+ latex input: inputthisfile
5
+ bibtex: bibliographyfile
6
+ date: January 1, 2011
7
+ CSS: http://fletcherpenney.net/css/document.css
8
+ empty metadata:
9
+ XHTML HEADER: <meta name="testing"
10
+ content="This test should fail in LaTeX from XSLT"/>
11
+ latex input: mmd-article-begin-doc
12
+ latex footer: mmd-memoir-footer
13
+
14
+ And this should be the main text.
@@ -0,0 +1,104 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
+ <!DOCTYPE html>
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>MultiMarkdown Sanity Test</title>
7
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
8
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
9
+ </head>
10
+ <body>
11
+ <h1 id="section">Section</h1>
12
+
13
+ <p>Sanity check by Jonathan Coulombe</p>
14
+
15
+ <p>Reference to <a href="#section">Section</a>
16
+ Citation<span class="externalcitation">[#Citation]</span>
17
+ Figure <a href="file.png">figure</a>
18
+ Table <a href="#table">table</a>
19
+ Link <a href="www.com">link</a>
20
+ Nowhere [Nowhere]</p>
21
+
22
+ <p>Reference to <a href="#section"></a>
23
+ Citation<span class="externalcitation">[#Citation]</span>
24
+ <!--Figure [][figure]-->
25
+ Table <a href="#table"></a>
26
+ <!--Link [][link]-->
27
+ Nowhere [][Nowhere]</p>
28
+
29
+ <p>Reference to <a href="#section">Section</a>
30
+ Citation<span class="externalcitation">[#Citation]</span>
31
+ Figure <a href="file.png">figure</a>
32
+ Table <a href="#table">table</a>
33
+ Link <a href="www.com">link</a>
34
+ Nowhere [Nowhere][]</p>
35
+
36
+ <p>Reference to <a href="#section">option</a>
37
+ Citation<span class="externalcitation">[option][#Citation]</span>
38
+ Figure <a href="file.png">option</a>
39
+ Table <a href="#table">option</a>
40
+ Link <a href="www.com">option</a>
41
+ Nowhere [option][Nowhere]</p>
42
+
43
+ <p>Reference to [Section][option]
44
+ Citation<span class="externalcitation">[#Citation]</span>[option]
45
+ Figure [figure][option]
46
+ Table [table][option]
47
+ Link [link][option]
48
+ Nowhere [Nowhere][option]</p>
49
+
50
+ <p>Reference to <a href="Section">Section</a>
51
+ Citation<span class="externalcitation">[#Citation]</span>(Citation)
52
+ Figure <a href="figure">figure</a>
53
+ Table <a href="table">table</a>
54
+ Link <a href="link">link</a>
55
+ Nowhere <a href="nowhere">Nowhere</a></p>
56
+
57
+ <!--Reference to [](Section)-->
58
+
59
+ <!--Citation[](Citation)-->
60
+
61
+ <!--Figure [](figure)-->
62
+
63
+ <!--Table [](table)-->
64
+
65
+ <!--Link [](link)-->
66
+
67
+ <!--Nowhere [](nowhere)-->
68
+
69
+ <p>Reference to <a href="#Section"></a>
70
+ Citation<a href="#Citation"></a>
71
+ Figure <a href="#figure"></a>
72
+ Table <a href="#table"></a>
73
+ Link <a href="#link"></a>
74
+ Nowhere <a href="#nowhere"></a></p>
75
+
76
+ <figure>
77
+ <img src="file.png" alt="figure" id="figure" />
78
+ <figcaption>figure</figcaption></figure>
79
+
80
+
81
+ <table>
82
+ <caption id="table">table</caption>
83
+ <colgroup>
84
+ <col style="text-align:left;"/>
85
+ <col style="text-align:left;"/>
86
+ </colgroup>
87
+
88
+ <thead>
89
+ <tr>
90
+ <th style="text-align:left;">a</th>
91
+ <th style="text-align:left;">b</th>
92
+ </tr>
93
+ </thead>
94
+
95
+ <tbody>
96
+ <tr>
97
+ <td style="text-align:left;">x</td>
98
+ <td style="text-align:left;">y</td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+
103
+ </body>
104
+ </html>
@@ -0,0 +1,100 @@
1
+ \input{mmd-article-header}
2
+ \def\mytitle{MultiMarkdown Sanity Test}
3
+ \input{mmd-article-begin-doc}
4
+ \part{Section}
5
+ \label{section}
6
+
7
+ Sanity check by Jonathan Coulombe
8
+
9
+ Reference to Section (\autoref{section})
10
+ Citation~\citep{Citation}
11
+ Figure \href{file.png}{figure}\footnote{\href{file.png}{file.png}}
12
+ Table table (\autoref{table})
13
+ Link \href{www.com}{link}\footnote{\href{www.com}{www.com}}
14
+ Nowhere [Nowhere]
15
+
16
+ Reference to \autoref{section}
17
+ Citation~\citep{Citation}
18
+ Figure [][figure]
19
+ Table \autoref{table}
20
+ Link [][link]
21
+ Nowhere [][Nowhere]
22
+
23
+ Reference to Section (\autoref{section})
24
+ Citation~\citep{Citation}
25
+ Figure \href{file.png}{figure}\footnote{\href{file.png}{file.png}}
26
+ Table table (\autoref{table})
27
+ Link \href{www.com}{link}\footnote{\href{www.com}{www.com}}
28
+ Nowhere [Nowhere][]
29
+
30
+ Reference to option (\autoref{section})
31
+ Citation~\citep[option]{Citation}
32
+ Figure \href{file.png}{option}\footnote{\href{file.png}{file.png}}
33
+ Table option (\autoref{table})
34
+ Link \href{www.com}{option}\footnote{\href{www.com}{www.com}}
35
+ Nowhere [option][Nowhere]
36
+
37
+ Reference to [Section][option]
38
+ Citation~\citep{Citation}[option]
39
+ Figure [figure][option]
40
+ Table [table][option]
41
+ Link [link][option]
42
+ Nowhere [Nowhere][option]
43
+
44
+ Reference to \href{Section}{Section}
45
+ Citation~\citep{Citation}(Citation)
46
+ Figure \href{figure}{figure}
47
+ Table \href{table}{table}
48
+ Link \href{link}{link}
49
+ Nowhere \href{nowhere}{Nowhere}\footnote{\href{nowhere}{nowhere}}
50
+
51
+ Reference to [](Section)
52
+
53
+ Citation[](Citation)
54
+
55
+ Figure [](figure)
56
+
57
+ Table [](table)
58
+
59
+ Link [](link)
60
+
61
+ Nowhere [](nowhere)
62
+
63
+ Reference to \autoref{section}
64
+ Citation\autoref{citation}
65
+ Figure \autoref{figure}
66
+ Table \autoref{table}
67
+ Link \autoref{link}
68
+ Nowhere \autoref{nowhere}
69
+
70
+ \begin{figure}[htbp]
71
+ \centering
72
+ \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{file.png}
73
+ \caption{figure}
74
+ \label{figure}
75
+ \end{figure}
76
+
77
+
78
+
79
+ \begin{table}[htbp]
80
+ \begin{minipage}{\linewidth}
81
+ \setlength{\tymax}{0.5\linewidth}
82
+ \centering
83
+ \small
84
+ \caption{table}
85
+ \label{table}
86
+ \begin{tabular}{@{}ll@{}} \toprule
87
+ a&b\\
88
+ \midrule
89
+ x&y\\
90
+
91
+ \bottomrule
92
+
93
+ \end{tabular}
94
+ \end{minipage}
95
+ \end{table}
96
+
97
+
98
+ \input{mmd-memoir-footer}
99
+
100
+ \end{document}
@@ -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,29 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
+ <!DOCTYPE html>
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta name="latexinput" content="mmd-article-header"/>
6
+ <title>SmartQuotes Test</title>
7
+ <meta name="latexinput" content="mmd-article-begin-doc"/>
8
+ <meta name="latexfooter" content="mmd-memoir-footer"/>
9
+ </head>
10
+ <body>
11
+ <p>Some rather complicated tests for smart quotes with non-ascii input.</p>
12
+
13
+ <p>l&#8217;année l&#8217;année</p>
14
+
15
+ <p>l&#8217;été l&#8217;année</p>
16
+
17
+ <p>l&#8217;été l&#8217;été</p>
18
+
19
+ <p>l&#8217;année l&#8217;été</p>
20
+
21
+ <p>&#8220;Smart&#8221; &#8216;quote&#8217;</p>
22
+
23
+ <p>An escaped &#8216;|&#8217;</p>
24
+
25
+ <p>Another test of smart &#8216;.quotes&#8217;</p>
26
+
27
+ <p>And again &#8220;.quotes&#8221;</p>
28
+ </body>
29
+ </html>
@@ -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"