rpeg-multimarkdown 0.1.1 → 0.2

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 (110) hide show
  1. checksums.yaml +7 -0
  2. data/README.markdown +7 -4
  3. data/Rakefile +3 -3
  4. data/bin/rpeg-multimarkdown +7 -7
  5. data/ext/extconf.rb +2 -2
  6. data/ext/markdown.c +14 -0
  7. data/ext/markdown_lib.c +72 -18
  8. data/ext/markdown_lib.h +18 -8
  9. data/ext/markdown_output.c +187 -58
  10. data/ext/markdown_parser.c +8315 -6224
  11. data/ext/markdown_peg.h +5 -4
  12. data/ext/odf.c +7 -1
  13. data/ext/odf.h +8 -0
  14. data/ext/parsing_functions.c +42 -2
  15. data/ext/parsing_functions.h +17 -0
  16. data/ext/utility_functions.c +60 -56
  17. data/ext/utility_functions.h +93 -0
  18. data/lib/peg_multimarkdown.rb +16 -16
  19. data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +2 -2
  20. data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.html +35 -0
  21. data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.text +45 -0
  22. data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.html +14 -0
  23. data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.text +16 -0
  24. data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.html +9 -0
  25. data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.text +10 -0
  26. data/test/MultiMarkdownTest/CompatibilityTests/Citations.html +40 -0
  27. data/test/MultiMarkdownTest/CompatibilityTests/Citations.text +42 -0
  28. data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.html +40 -0
  29. data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.text +39 -0
  30. data/test/MultiMarkdownTest/CompatibilityTests/Dutch.html +17 -0
  31. data/test/MultiMarkdownTest/CompatibilityTests/Dutch.text +17 -0
  32. data/test/MultiMarkdownTest/CompatibilityTests/Email.html +40 -0
  33. data/test/MultiMarkdownTest/CompatibilityTests/Email.text +31 -0
  34. data/test/MultiMarkdownTest/CompatibilityTests/English.html +17 -0
  35. data/test/MultiMarkdownTest/CompatibilityTests/English.text +17 -0
  36. data/test/MultiMarkdownTest/CompatibilityTests/Errors.html +9 -0
  37. data/test/MultiMarkdownTest/CompatibilityTests/Errors.text +11 -0
  38. data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.html +23 -0
  39. data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.text +25 -0
  40. data/test/MultiMarkdownTest/CompatibilityTests/French.html +17 -0
  41. data/test/MultiMarkdownTest/CompatibilityTests/French.text +17 -0
  42. data/test/MultiMarkdownTest/CompatibilityTests/German.html +17 -0
  43. data/test/MultiMarkdownTest/CompatibilityTests/German.text +17 -0
  44. data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.html +17 -0
  45. data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.text +17 -0
  46. data/test/MultiMarkdownTest/CompatibilityTests/Glossary.html +29 -0
  47. data/test/MultiMarkdownTest/CompatibilityTests/Glossary.text +28 -0
  48. data/test/MultiMarkdownTest/CompatibilityTests/Headers.html +42 -0
  49. data/test/MultiMarkdownTest/CompatibilityTests/Headers.text +51 -0
  50. data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.html +13 -0
  51. data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.text +15 -0
  52. data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.html +35 -0
  53. data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.text +51 -0
  54. data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.html +13 -0
  55. data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.text +11 -0
  56. data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.html +13 -0
  57. data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.text +19 -0
  58. data/test/MultiMarkdownTest/CompatibilityTests/Math.html +14 -0
  59. data/test/MultiMarkdownTest/CompatibilityTests/Math.text +15 -0
  60. data/test/MultiMarkdownTest/CompatibilityTests/MetaData.html +14 -0
  61. data/test/MultiMarkdownTest/CompatibilityTests/MetaData.text +14 -0
  62. data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.html +3 -0
  63. data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.text +4 -0
  64. data/test/MultiMarkdownTest/CompatibilityTests/Sanity.html +77 -0
  65. data/test/MultiMarkdownTest/CompatibilityTests/Sanity.text +77 -0
  66. data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.html +22 -0
  67. data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.text +22 -0
  68. data/test/MultiMarkdownTest/CompatibilityTests/Swedish.html +17 -0
  69. data/test/MultiMarkdownTest/CompatibilityTests/Swedish.text +17 -0
  70. data/test/MultiMarkdownTest/CompatibilityTests/Tables.html +65 -0
  71. data/test/MultiMarkdownTest/CompatibilityTests/Tables.text +71 -0
  72. data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +5 -10
  73. data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +2 -2
  74. data/test/MultiMarkdownTest/MemoirTests/Tables.tex +10 -10
  75. data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +4 -2
  76. data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +4 -2
  77. data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +4 -2
  78. data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +6 -4
  79. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +9 -12
  80. data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +5 -10
  81. data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +4 -2
  82. data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +4 -2
  83. data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +4 -2
  84. data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +4 -2
  85. data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +7 -5
  86. data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +4 -2
  87. data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +4 -2
  88. data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +4 -2
  89. data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +6 -4
  90. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +6 -2
  91. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +2 -0
  92. data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +2 -0
  93. data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +4 -2
  94. data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +4 -2
  95. data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +4 -2
  96. data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +4 -2
  97. data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +4 -2
  98. data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +4 -2
  99. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.html +3 -0
  100. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.tex +3 -0
  101. data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.text +4 -0
  102. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +4 -2
  103. data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +2 -2
  104. data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +4 -2
  105. data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +4 -2
  106. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +45 -2
  107. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +32 -10
  108. data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +8 -0
  109. data/test/multimarkdown_test.rb +5 -5
  110. metadata +92 -50
@@ -0,0 +1,35 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: Link Attributes Test<br/>
3
+ latex input: mmd-article-begin-doc<br/>
4
+ latex footer: mmd-memoir-footer </p>
5
+
6
+ <p>This is a formatted <img src="http://path.to/image" alt="image" title="Image title&quot; width=&quot;40px&quot; height=&quot;400px" /> and a [link][] with attributes.</p>
7
+
8
+ <p><img src="http://path.to/image" alt="image2" title="Image title&quot; height=&quot;400px" /></p>
9
+
10
+ <p><img src="http://path.to/image" alt="image3" title="Image title&quot; width=&quot;40px" /></p>
11
+
12
+ <p><img src="http://path.to/image" alt="image4" title="Image title" /></p>
13
+
14
+ <p>And [the link][link], [link] , and [][link] again.</p>
15
+
16
+ <p>[link]</p>
17
+
18
+ <p>[the link][link]</p>
19
+
20
+ <p>[link]: http://path.to/link.html &quot;Some Link&quot; class=external
21
+ style=&quot;border: solid black 1px;&quot;</p>
22
+
23
+ <p>Test various identifiers:</p>
24
+
25
+ <p><a href="http://path.to/link-a.html">link-a</a></p>
26
+
27
+ <p><a href="http://path.to/link-1.html">link-1</a></p>
28
+
29
+ <p><a href="http://path.to/link--2.html">link--2</a></p>
30
+
31
+ <p><a href="http://path.to/link--a.html">link--a</a></p>
32
+
33
+ <p><a href="http://path.to/link---1.html">link---1</a></p>
34
+
35
+ <p>Test link and markup <img src="http://path.to/image" alt="and this but not that" title="Test *this* and **this**" /></p>
@@ -0,0 +1,51 @@
1
+ latex input: mmd-article-header
2
+ Title: Link Attributes Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+ This is a formatted ![image][] and a [link][] with attributes.
7
+
8
+ ![image2]
9
+
10
+ ![image3]
11
+
12
+ ![image4]
13
+
14
+ And [the link][link], [link] , and [][link] again.
15
+
16
+ [link]
17
+
18
+ [the link][link]
19
+
20
+ [image]: http://path.to/image "Image title" width="40px" height="400px"
21
+ [image2]: http://path.to/image "Image title" height="400px"
22
+ [image3]: http://path.to/image "Image title" width="40px"
23
+ [image4]: http://path.to/image "Image title"
24
+ [link]: http://path.to/link.html "Some Link" class=external
25
+ style="border: solid black 1px;"
26
+
27
+
28
+ Test various identifiers:
29
+
30
+ [link-a]
31
+
32
+ [link-1]
33
+
34
+ [link--2]
35
+
36
+ [link--a]
37
+
38
+ [link---1]
39
+
40
+
41
+ [link-a]: http://path.to/link-a.html
42
+ [link-1]: http://path.to/link-1.html
43
+ [link--a]: http://path.to/link--a.html
44
+ [link--2]: http://path.to/link--2.html
45
+ [link---1]: http://path.to/link---1.html
46
+
47
+
48
+ Test link and markup ![and *this* but not **that**][image-attr]
49
+
50
+ [image-attr]: http://path.to/image "Test *this* and **this**"
51
+
@@ -0,0 +1,13 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MMD List Parsing Test<br/>
3
+ latex input: mmd-article-begin-doc<br/>
4
+ latex footer: mmd-memoir-footer </p>
5
+
6
+ <ul>
7
+ <li><p>Item 1</p>
8
+
9
+ <p>Second paragraph of item 1.
10
+ The following blank line has 4 spaces.</p></li>
11
+ </ul>
12
+
13
+ <p>Paragraph following the list that shouldn't be part of the list item.</p>
@@ -0,0 +1,11 @@
1
+ latex input: mmd-article-header
2
+ Title: MMD List Parsing Test
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+
6
+ - Item 1
7
+
8
+ Second paragraph of item 1.
9
+ The following blank line has 4 spaces.
10
+
11
+ Paragraph following the list that shouldn't be part of the list item.
@@ -0,0 +1,13 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: Markdown in HTML Test<br/>
3
+ latex mode: memoir<br/>
4
+ Base Header Level: 2<br/>
5
+ latex input: mmd-article-begin-doc<br/>
6
+ latex footer: mmd-memoir-footer </p>
7
+
8
+ <div>This is *not* Markdown **encoded**.</div>
9
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
10
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
11
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
12
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
13
+ <div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
@@ -0,0 +1,19 @@
1
+ latex input: mmd-article-header
2
+ Title: Markdown in HTML Test
3
+ latex mode: memoir
4
+ Base Header Level: 2
5
+ latex input: mmd-article-begin-doc
6
+ latex footer: mmd-memoir-footer
7
+
8
+ <div>This is *not* Markdown **encoded**.</div>
9
+
10
+ <div markdown=1>This *is* Markdown **encoded**.</div>
11
+
12
+ <div markdown="1">This *is* Markdown **encoded**.</div>
13
+
14
+ <div markdown = 1>This *is* Markdown **encoded**.</div>
15
+
16
+ <div markdown = "1">This *is* Markdown **encoded**.</div>
17
+
18
+
19
+ <div markdown = " 1 " >This *is* Markdown **encoded**.</div>
@@ -0,0 +1,14 @@
1
+ <p>latex input: mmd-article-header
2
+ Title: MultiMarkdown Math Example<br/>
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+ xhtml header: <script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script></p>
6
+
7
+ <p>An example of math within a paragraph --- \({e}^{i\pi }+1=0\) --- easy
8
+ enough.</p>
9
+
10
+ <p>And an equation on it's own:</p>
11
+
12
+ <p>\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]</p>
13
+
14
+ <p>That's it.</p>
@@ -0,0 +1,15 @@
1
+ latex input: mmd-article-header
2
+ Title: MultiMarkdown Math Example
3
+ latex input: mmd-article-begin-doc
4
+ latex footer: mmd-memoir-footer
5
+ xhtml header: <script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script>
6
+
7
+
8
+ An example of math within a paragraph --- \\({e}^{i\pi }+1=0\\) --- easy
9
+ enough.
10
+
11
+ And an equation on it's own:
12
+
13
+ \\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]
14
+
15
+ That's it.
@@ -0,0 +1,14 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: This should be a <title> element
3
+ Author: This should be the author
4
+ latex input: inputthisfile
5
+ bibtex: bibliographyfile
6
+ date: January 1, 2011
7
+ CSS: http://fletcherpenney.net/css/document.css
8
+ empty metadata:
9
+ XHTML HEADER: <meta name="testing"
10
+ content="This test should fail in LaTeX from XSLT"/>
11
+ latex input: mmd-article-begin-doc<br/>
12
+ latex footer: mmd-memoir-footer </p>
13
+
14
+ <p>And this should be the main text.</p>
@@ -0,0 +1,14 @@
1
+ latex input: mmd-article-header
2
+ Title: This should be a <title> element
3
+ Author: This should be the author
4
+ latex input: inputthisfile
5
+ bibtex: bibliographyfile
6
+ date: January 1, 2011
7
+ CSS: http://fletcherpenney.net/css/document.css
8
+ empty metadata:
9
+ XHTML HEADER: <meta name="testing"
10
+ content="This test should fail in LaTeX from XSLT"/>
11
+ latex input: mmd-article-begin-doc
12
+ latex footer: mmd-memoir-footer
13
+
14
+ And this should be the main text.
@@ -0,0 +1,3 @@
1
+ <p>http://www.example.net/</p>
2
+
3
+ <p>This should not be treated as metadata.</p>
@@ -0,0 +1,4 @@
1
+ http://www.example.net/
2
+
3
+
4
+ This should not be treated as metadata.
@@ -0,0 +1,77 @@
1
+ <p>latex input: mmd-article-header<br/>
2
+ Title: MultiMarkdown Sanity Test<br/>
3
+ quoteslanguage: english<br/>
4
+ latex input: mmd-article-begin-doc<br/>
5
+ latex footer: mmd-memoir-footer </p>
6
+
7
+ <h1>Section</h1>
8
+
9
+ <p>Sanity check by Jonathan Coulombe</p>
10
+
11
+ <p>Reference to [Section]
12
+ Citation[#Citation]
13
+ Figure <a href="file.png">figure</a>
14
+ Table [table]
15
+ Link <a href="www.com">link</a>
16
+ Nowhere [Nowhere]</p>
17
+
18
+ <p>Reference to [][Section]
19
+ Citation[][#Citation]
20
+ <!--Figure [][figure]-->
21
+ Table [][table]
22
+ <!--Link [][link]-->
23
+ Nowhere [][Nowhere]</p>
24
+
25
+ <p>Reference to [Section][]
26
+ Citation[#Citation][]
27
+ Figure <a href="file.png">figure</a>
28
+ Table [table][]
29
+ Link <a href="www.com">link</a>
30
+ Nowhere [Nowhere][]</p>
31
+
32
+ <p>Reference to [option][Section]
33
+ Citation[option][#Citation]
34
+ Figure <a href="file.png">option</a>
35
+ Table [option][table]
36
+ Link <a href="www.com">option</a>
37
+ Nowhere [option][Nowhere]</p>
38
+
39
+ <p>Reference to [Section][option]
40
+ Citation[#Citation][option]
41
+ Figure [figure][option]
42
+ Table [table][option]
43
+ Link [link][option]
44
+ Nowhere [Nowhere][option]</p>
45
+
46
+ <p>Reference to <a href="Section">Section</a>
47
+ Citation<a href="Citation">#Citation</a>
48
+ Figure <a href="figure">figure</a>
49
+ Table <a href="table">table</a>
50
+ Link <a href="link">link</a>
51
+ Nowhere <a href="nowhere">Nowhere</a></p>
52
+
53
+ <!--Reference to [](Section)-->
54
+
55
+ <!--Citation[](Citation)-->
56
+
57
+ <!--Figure [](figure)-->
58
+
59
+ <!--Table [](table)-->
60
+
61
+ <!--Link [](link)-->
62
+
63
+ <!--Nowhere [](nowhere)-->
64
+
65
+ <p>Reference to <a href="#Section"></a>
66
+ Citation<a href="#Citation"></a>
67
+ Figure <a href="#figure"></a>
68
+ Table <a href="#table"></a>
69
+ Link <a href="#link"></a>
70
+ Nowhere <a href="#nowhere"></a></p>
71
+
72
+ <p><img src="file.png" alt="figure" /></p>
73
+
74
+ <p>[table]
75
+ | a | b |
76
+ |---|---|
77
+ | x | y |</p>
@@ -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>