patcito-maruku 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/AUTHORS +23 -0
  2. data/LICENSE +340 -0
  3. data/README.md +73 -0
  4. data/bin/maruku +196 -0
  5. data/bin/marutex +4 -0
  6. data/data/entities.xml +261 -0
  7. data/docs/changelog.md +334 -0
  8. data/docs/div_syntax.md +36 -0
  9. data/docs/entity_test.md +23 -0
  10. data/docs/markdown_syntax.md +899 -0
  11. data/docs/maruku.md +346 -0
  12. data/docs/math.md +194 -0
  13. data/docs/other_stuff.md +51 -0
  14. data/docs/proposal.md +309 -0
  15. data/docs/website/src/bluecloth.md +25 -0
  16. data/docs/website/src/download.md +31 -0
  17. data/docs/website/src/maruku.md +261 -0
  18. data/docs/website/src/proposal.md +271 -0
  19. data/lib/maruku.rb +132 -0
  20. data/lib/maruku/attributes.rb +138 -0
  21. data/lib/maruku/defaults.rb +69 -0
  22. data/lib/maruku/errors.rb +89 -0
  23. data/lib/maruku/ext/div.rb +121 -0
  24. data/lib/maruku/ext/fenced_code.rb +78 -0
  25. data/lib/maruku/ext/math.rb +37 -0
  26. data/lib/maruku/ext/math/elements.rb +21 -0
  27. data/lib/maruku/ext/math/latex_fix.rb +12 -0
  28. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +93 -0
  29. data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +39 -0
  30. data/lib/maruku/ext/math/mathml_engines/none.rb +21 -0
  31. data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
  32. data/lib/maruku/ext/math/parsing.rb +125 -0
  33. data/lib/maruku/ext/math/to_html.rb +237 -0
  34. data/lib/maruku/ext/math/to_latex.rb +36 -0
  35. data/lib/maruku/ext/yaml.rb +43 -0
  36. data/lib/maruku/helpers.rb +214 -0
  37. data/lib/maruku/input/charsource.rb +326 -0
  38. data/lib/maruku/input/extensions.rb +69 -0
  39. data/lib/maruku/input/html_helper.rb +189 -0
  40. data/lib/maruku/input/linesource.rb +111 -0
  41. data/lib/maruku/input/parse_block.rb +608 -0
  42. data/lib/maruku/input/parse_doc.rb +240 -0
  43. data/lib/maruku/input/parse_span_better.rb +746 -0
  44. data/lib/maruku/input/rubypants.rb +225 -0
  45. data/lib/maruku/input/type_detection.rb +147 -0
  46. data/lib/maruku/input_textile2/t2_parser.rb +163 -0
  47. data/lib/maruku/maruku.rb +31 -0
  48. data/lib/maruku/output/s5/fancy.rb +756 -0
  49. data/lib/maruku/output/s5/to_s5.rb +138 -0
  50. data/lib/maruku/output/to_html.rb +994 -0
  51. data/lib/maruku/output/to_latex.rb +580 -0
  52. data/lib/maruku/output/to_latex_entities.rb +101 -0
  53. data/lib/maruku/output/to_latex_strings.rb +64 -0
  54. data/lib/maruku/output/to_markdown.rb +164 -0
  55. data/lib/maruku/output/to_s.rb +54 -0
  56. data/lib/maruku/string_utils.rb +185 -0
  57. data/lib/maruku/structures.rb +143 -0
  58. data/lib/maruku/structures_inspect.rb +51 -0
  59. data/lib/maruku/structures_iterators.rb +48 -0
  60. data/lib/maruku/textile2.rb +1 -0
  61. data/lib/maruku/toc.rb +214 -0
  62. data/lib/maruku/usage/example1.rb +33 -0
  63. data/lib/maruku/version +0 -0
  64. data/lib/maruku/version.rb +54 -0
  65. data/spec/block_docs/abbreviations.md +52 -0
  66. data/spec/block_docs/alt.md +17 -0
  67. data/spec/block_docs/attributes/att2.md +20 -0
  68. data/spec/block_docs/attributes/att3.md +28 -0
  69. data/spec/block_docs/attributes/attributes.md +57 -0
  70. data/spec/block_docs/attributes/circular.md +26 -0
  71. data/spec/block_docs/attributes/default.md +22 -0
  72. data/spec/block_docs/blank.md +24 -0
  73. data/spec/block_docs/blanks_in_code.md +75 -0
  74. data/spec/block_docs/bug_def.md +16 -0
  75. data/spec/block_docs/bug_table.md +46 -0
  76. data/spec/block_docs/code.md +34 -0
  77. data/spec/block_docs/code2.md +28 -0
  78. data/spec/block_docs/code3.md +71 -0
  79. data/spec/block_docs/data_loss.md +25 -0
  80. data/spec/block_docs/divs/div1.md +167 -0
  81. data/spec/block_docs/divs/div2.md +21 -0
  82. data/spec/block_docs/divs/div3_nest.md +45 -0
  83. data/spec/block_docs/easy.md +15 -0
  84. data/spec/block_docs/email.md +20 -0
  85. data/spec/block_docs/encoding/iso-8859-1.md +23 -0
  86. data/spec/block_docs/encoding/utf-8.md +18 -0
  87. data/spec/block_docs/entities.md +94 -0
  88. data/spec/block_docs/escaping.md +67 -0
  89. data/spec/block_docs/extra_dl.md +52 -0
  90. data/spec/block_docs/extra_header_id.md +63 -0
  91. data/spec/block_docs/extra_table1.md +37 -0
  92. data/spec/block_docs/footnotes.md +97 -0
  93. data/spec/block_docs/headers.md +37 -0
  94. data/spec/block_docs/hex_entities.md +37 -0
  95. data/spec/block_docs/hrule.md +39 -0
  96. data/spec/block_docs/html2.md +22 -0
  97. data/spec/block_docs/html3.md +31 -0
  98. data/spec/block_docs/html4.md +25 -0
  99. data/spec/block_docs/html5.md +23 -0
  100. data/spec/block_docs/ie.md +49 -0
  101. data/spec/block_docs/images.md +90 -0
  102. data/spec/block_docs/images2.md +31 -0
  103. data/spec/block_docs/inline_html.md +152 -0
  104. data/spec/block_docs/inline_html2.md +21 -0
  105. data/spec/block_docs/links.md +152 -0
  106. data/spec/block_docs/links2.md +22 -0
  107. data/spec/block_docs/list1.md +46 -0
  108. data/spec/block_docs/list12.md +28 -0
  109. data/spec/block_docs/list2.md +56 -0
  110. data/spec/block_docs/list3.md +64 -0
  111. data/spec/block_docs/list4.md +89 -0
  112. data/spec/block_docs/lists.md +192 -0
  113. data/spec/block_docs/lists10.md +34 -0
  114. data/spec/block_docs/lists11.md +23 -0
  115. data/spec/block_docs/lists6.md +41 -0
  116. data/spec/block_docs/lists9.md +64 -0
  117. data/spec/block_docs/lists_after_paragraph.md +208 -0
  118. data/spec/block_docs/lists_ol.md +262 -0
  119. data/spec/block_docs/loss.md +16 -0
  120. data/spec/block_docs/math/equations.md +45 -0
  121. data/spec/block_docs/math/inline.md +46 -0
  122. data/spec/block_docs/math/math2.md +45 -0
  123. data/spec/block_docs/math/notmath.md +25 -0
  124. data/spec/block_docs/math/table.md +25 -0
  125. data/spec/block_docs/math/table2.md +42 -0
  126. data/spec/block_docs/misc_sw.md +525 -0
  127. data/spec/block_docs/notyet/escape.md +21 -0
  128. data/spec/block_docs/notyet/header_after_par.md +58 -0
  129. data/spec/block_docs/notyet/ticks.md +18 -0
  130. data/spec/block_docs/notyet/triggering.md +157 -0
  131. data/spec/block_docs/olist.md +45 -0
  132. data/spec/block_docs/one.md +15 -0
  133. data/spec/block_docs/paragraph.md +16 -0
  134. data/spec/block_docs/paragraph_rules/dont_merge_ref.md +42 -0
  135. data/spec/block_docs/paragraph_rules/tab_is_blank.md +24 -0
  136. data/spec/block_docs/paragraphs.md +46 -0
  137. data/spec/block_docs/pending/amps.md +15 -0
  138. data/spec/block_docs/pending/empty_cells.md +37 -0
  139. data/spec/block_docs/pending/link.md +72 -0
  140. data/spec/block_docs/pending/ref.md +21 -0
  141. data/spec/block_docs/recover/recover_links.md +15 -0
  142. data/spec/block_docs/red_tests/abbrev.md +679 -0
  143. data/spec/block_docs/red_tests/lists7.md +32 -0
  144. data/spec/block_docs/red_tests/lists7b.md +65 -0
  145. data/spec/block_docs/red_tests/lists8.md +42 -0
  146. data/spec/block_docs/red_tests/ref.md +23 -0
  147. data/spec/block_docs/red_tests/xml.md +35 -0
  148. data/spec/block_docs/references/long_example.md +71 -0
  149. data/spec/block_docs/references/spaces_and_numbers.md +15 -0
  150. data/spec/block_docs/smartypants.md +114 -0
  151. data/spec/block_docs/syntax_hl.md +52 -0
  152. data/spec/block_docs/table_attributes.md +34 -0
  153. data/spec/block_docs/test.md +19 -0
  154. data/spec/block_docs/underscore_in_words.md +15 -0
  155. data/spec/block_docs/wrapping.md +67 -0
  156. data/spec/block_docs/xml2.md +19 -0
  157. data/spec/block_docs/xml3.md +26 -0
  158. data/spec/block_docs/xml_instruction.md +52 -0
  159. data/spec/block_spec.rb +49 -0
  160. data/spec/span_spec.rb +254 -0
  161. data/spec/spec_helper.rb +6 -0
  162. metadata +247 -0
@@ -0,0 +1,32 @@
1
+ I'm not sure if this should work at all...
2
+
3
+ *** Parameters: ***
4
+ {} # params
5
+ *** Markdown input: ***
6
+ Ciao
7
+
8
+ * Tab
9
+ * Tab
10
+ * Tab
11
+
12
+ *** Output of inspect ***
13
+ nil
14
+ *** Output of to_html ***
15
+ <p>Ciao</p>
16
+
17
+ <ul>
18
+ <li>Tab * Tab * Tab</li>
19
+ </ul>
20
+ *** Output of to_latex ***
21
+ Ciao
22
+
23
+ \begin{itemize}%
24
+ \item Tab * Tab * Tab
25
+
26
+ \end{itemize}
27
+ *** Output of to_md ***
28
+ Ciao
29
+
30
+ -ab * Tab * Tab
31
+ *** Output of to_s ***
32
+ CiaoTab * Tab * Tab
@@ -0,0 +1,65 @@
1
+ Test case given by Scott.
2
+
3
+ http://rubyforge.org/tracker/index.php?func=detail&aid=8862&group_id=2795&atid=10735
4
+
5
+ a should not be indented.
6
+
7
+ *** Parameters: ***
8
+ {} # params
9
+ *** Markdown input: ***
10
+ * a
11
+ * a1
12
+ * a2
13
+ * b
14
+
15
+
16
+ *** Output of inspect ***
17
+ md_el(:document,[
18
+ md_el(:ul,[
19
+ md_el(:li,[
20
+ "a",
21
+ md_el(:ul,[
22
+ md_el(:li_span,["a1"],{:want_my_paragraph=>false},[]),
23
+ md_el(:li_span,["a2"],{:want_my_paragraph=>false},[])
24
+ ],{},[])
25
+ ],{:want_my_paragraph=>true},[]),
26
+ md_el(:li,[md_par(["b"])],{:want_my_paragraph=>false},[])
27
+ ],{},[])
28
+ ],{},[])
29
+ *** Output of to_html ***
30
+ <ul>
31
+ <li>
32
+ a
33
+
34
+ <ul>
35
+ <li>a1</li>
36
+
37
+ <li>a2</li>
38
+ </ul>
39
+ </li>
40
+
41
+ <li>
42
+ <p>b</p>
43
+ </li>
44
+ </ul>
45
+ *** Output of to_latex ***
46
+ \begin{itemize}%
47
+ \item a
48
+
49
+ \begin{itemize}%
50
+ \item a1
51
+ \item a2
52
+
53
+ \end{itemize}
54
+
55
+ \item b
56
+
57
+
58
+
59
+ \end{itemize}
60
+ *** Output of to_md ***
61
+ -* a1
62
+ * a2
63
+ -
64
+ *** Output of to_s ***
65
+ aa1a2b
@@ -0,0 +1,42 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ Here is a paragraph.
6
+
7
+
8
+ * Item 1
9
+ * Item 2
10
+ * Item 3
11
+
12
+ *** Output of inspect ***
13
+ md_el(:document,[
14
+ md_par(["Here is a paragraph."]),
15
+ md_el(:ul,[
16
+ md_el(:li_span,["Item 1"],{:want_my_paragraph=>false},[]),
17
+ md_el(:li_span,["Item 2"],{:want_my_paragraph=>false},[]),
18
+ md_el(:li_span,["Item 3"],{:want_my_paragraph=>false},[])
19
+ ],{},[])
20
+ ],{},[])
21
+ *** Output of to_html ***
22
+ <p>Here is a paragraph.</p>
23
+
24
+ <ul>
25
+ <li>Item 1</li>
26
+
27
+ <li>Item 2</li>
28
+
29
+ <li>Item 3</li>
30
+ </ul>
31
+ *** Output of to_latex ***
32
+ Here is a paragraph.
33
+
34
+ * Item 1 * Item 2 * Item 3
35
+ *** Output of to_md ***
36
+ Here is a paragraph.
37
+
38
+ -tem 1
39
+ -tem 2
40
+ -tem 3
41
+ *** Output of to_s ***
42
+ Here is a paragraph.Item 1Item 2Item 3
@@ -0,0 +1,23 @@
1
+ Comment
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ [bar]
6
+ [1].
7
+
8
+ [1]: /url/ "Title"
9
+ *** Output of inspect ***
10
+ md_el(:document,[
11
+ md_par([md_link(["bar"],"1"), "."]),
12
+ md_ref_def("1", "/url/", {:title=>"Title"})
13
+ ],{},[])
14
+ *** Output of to_html ***
15
+ <p><a href='/url/' title='Title'>bar</a>.</p>
16
+ *** Output of to_latex ***
17
+ \href{/url/}{a}.
18
+ *** Output of to_md ***
19
+ [bar][1].
20
+
21
+ [1]: /url/ "Title"
22
+ *** Output of to_s ***
23
+ bar.
@@ -0,0 +1,35 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {:on_error=>:raise}
4
+ *** Markdown input: ***
5
+
6
+ <img/>
7
+
8
+ <svg:svg/>
9
+
10
+ <svg:svg
11
+ width="600px" height="400px">
12
+ <svg:g id="group">
13
+ <svg:circle id="circ1" r="1cm" cx="3cm" cy="3cm" style="fill:red;"></svg:circle>
14
+ <svg:circle id="circ2" r="1cm" cx="7cm" cy="3cm" style="fill:red;" />
15
+ </svg:g>
16
+ </svg:svg>
17
+
18
+ *** Output of inspect ***
19
+ md_el(:document,[
20
+ md_html("<svg:svg/>"),
21
+ md_html("<svg:svg \nwidth=\"600px\" height=\"400px\">\n <svg:g id=\"group\">\n\t<svg:circle id=\"circ1\" r=\"1cm\" cx=\"3cm\" cy=\"3cm\" style=\"fill:red;\"></svg:circle>\n\t<svg:circle id=\"circ2\" r=\"1cm\" cx=\"7cm\" cy=\"3cm\" style=\"fill:red;\" />\n </svg:g>\n</svg:svg>")
22
+ ],{},[])
23
+ *** Output of to_html ***
24
+ <svg:svg /><svg:svg height='400px' width='600px'>
25
+ <svg:g id='group'>
26
+ <svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;' />
27
+ <svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;' />
28
+ </svg:g>
29
+ </svg:svg>
30
+ *** Output of to_latex ***
31
+
32
+ *** Output of to_md ***
33
+
34
+ *** Output of to_s ***
35
+
@@ -0,0 +1,71 @@
1
+ Taken from the syntax document
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
7
+ [Grutatext] [5], and [EtText] [6] -- the single biggest source of
8
+ inspiration for Markdown's syntax is the format of plain text email.
9
+
10
+ [1]: http://docutils.sourceforge.net/mirror/setext.html
11
+ [2]: http://www.aaronsw.com/2002/atx/
12
+ [3]: http://textism.com/tools/textile/
13
+ [4]: http://docutils.sourceforge.net/rst.html
14
+ [5]: http://www.triptico.com/software/grutatxt.html
15
+ [6]: http://ettext.taint.org/doc/
16
+
17
+ To this end, Markdown's syntax is comprised entirely of punctuation
18
+ *** Output of inspect ***
19
+ md_el(:document,[
20
+ md_par([
21
+ "filters ",
22
+ md_entity("ndash"),
23
+ " including ",
24
+ md_link(["Setext"],"1"),
25
+ ", ",
26
+ md_link(["atx"],"2"),
27
+ ", ",
28
+ md_link(["Textile"],"3"),
29
+ ", ",
30
+ md_link(["reStructuredText"],"4"),
31
+ ", ",
32
+ md_link(["Grutatext"],"5"),
33
+ ", and ",
34
+ md_link(["EtText"],"6"),
35
+ " ",
36
+ md_entity("ndash"),
37
+ " the single biggest source of inspiration for Markdown",
38
+ md_entity("rsquo"),
39
+ "s syntax is the format of plain text email."
40
+ ]),
41
+ md_ref_def("1", "http://docutils.sourceforge.net/mirror/setext.html", {:title=>nil}),
42
+ md_ref_def("2", "http://www.aaronsw.com/2002/atx/", {:title=>nil}),
43
+ md_ref_def("3", "http://textism.com/tools/textile/", {:title=>nil}),
44
+ md_ref_def("4", "http://docutils.sourceforge.net/rst.html", {:title=>nil}),
45
+ md_ref_def("5", "http://www.triptico.com/software/grutatxt.html", {:title=>nil}),
46
+ md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil}),
47
+ md_par([
48
+ "To this end, Markdown",
49
+ md_entity("rsquo"),
50
+ "s syntax is comprised entirely of punctuation"
51
+ ])
52
+ ],{},[])
53
+ *** Output of to_html ***
54
+ <p>filters &#8211; including <a href='http://docutils.sourceforge.net/mirror/setext.html'>Setext</a>, <a href='http://www.aaronsw.com/2002/atx/'>atx</a>, <a href='http://textism.com/tools/textile/'>Textile</a>, <a href='http://docutils.sourceforge.net/rst.html'>reStructuredText</a>, <a href='http://www.triptico.com/software/grutatxt.html'>Grutatext</a>, and <a href='http://ettext.taint.org/doc/'>EtText</a> &#8211; the single biggest source of inspiration for Markdown&#8217;s syntax is the format of plain text email.</p>
55
+
56
+ <p>To this end, Markdown&#8217;s syntax is comprised entirely of punctuation</p>
57
+ *** Output of to_latex ***
58
+ filters --{} including \href{http://docutils.sourceforge.net/mirror/setext.html}{Setext}, \href{http://www.aaronsw.com/2002/atx/}{atx}, \href{http://textism.com/tools/textile/}{Textile}, \href{http://docutils.sourceforge.net/rst.html}{reStructuredText}, \href{http://www.triptico.com/software/grutatxt.html}{Grutatext}, and \href{http://ettext.taint.org/doc/}{EtText} --{} the single biggest source of inspiration for Markdown'{}s syntax is the format of plain text email.
59
+
60
+ To this end, Markdown'{}s syntax is comprised entirely of punctuation
61
+ *** Output of to_md ***
62
+ filters including Setext, atx, Textile,
63
+ reStructuredText, Grutatext, and EtText
64
+ the single biggest source of
65
+ inspiration for Markdown s syntax is
66
+ the format of plain text email.
67
+
68
+ To this end, Markdown s syntax is
69
+ comprised entirely of punctuation
70
+ *** Output of to_s ***
71
+ filters including Setext, atx, Textile, reStructuredText, Grutatext, and EtText the single biggest source of inspiration for Markdowns syntax is the format of plain text email.To this end, Markdowns syntax is comprised entirely of punctuation
@@ -0,0 +1,15 @@
1
+ Spaces can be put before. ID can be a number
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ [6]: http://ettext.taint.org/doc/
6
+ *** Output of inspect ***
7
+ md_el(:document,[md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil})],{},[])
8
+ *** Output of to_html ***
9
+
10
+ *** Output of to_latex ***
11
+
12
+ *** Output of to_md ***
13
+
14
+ *** Output of to_s ***
15
+
@@ -0,0 +1,114 @@
1
+
2
+
3
+
4
+ *** Parameters: ***
5
+ {}
6
+ *** Markdown input: ***
7
+ 'Twas a "test" to 'remember' in the '90s.
8
+ 'Twas a "test" to 'remember' in the '90s.
9
+
10
+ It was --- in a sense --- really... interesting.
11
+ It was --- in a sense --- really... interesting.
12
+
13
+ I -- too -- met << some curly quotes >> there or <<here>>No space.
14
+ I -- too -- met << some curly quotes >> there or <<here>>No space.
15
+
16
+
17
+ She was 6\"12\'.
18
+ > She was 6\"12\'.
19
+
20
+ *** Output of inspect ***
21
+ md_el(:document,[
22
+ md_el(:code,[],{:raw_code=>"'Twas a \"test\" to 'remember' in the '90s."},[]),
23
+ md_par([
24
+ md_entity("lsquo"),
25
+ "Twas a ",
26
+ md_entity("ldquo"),
27
+ "test",
28
+ md_entity("rdquo"),
29
+ " to ",
30
+ md_entity("lsquo"),
31
+ "remember",
32
+ md_entity("rsquo"),
33
+ " in the ",
34
+ md_entity("rsquo"),
35
+ "90s."
36
+ ]),
37
+ md_el(:code,[],{:raw_code=>"It was --- in a sense --- really... interesting."},[]),
38
+ md_par([
39
+ "It was ",
40
+ md_entity("mdash"),
41
+ " in a sense ",
42
+ md_entity("mdash"),
43
+ " really",
44
+ md_entity("hellip"),
45
+ " interesting."
46
+ ]),
47
+ md_el(:code,[],{:raw_code=>"I -- too -- met << some curly quotes >> there or <<here>>No space."},[]),
48
+ md_par([
49
+ "I ",
50
+ md_entity("ndash"),
51
+ " too ",
52
+ md_entity("ndash"),
53
+ " met ",
54
+ md_entity("laquo"),
55
+ md_entity("nbsp"),
56
+ "some curly quotes",
57
+ md_entity("nbsp"),
58
+ md_entity("raquo"),
59
+ " there or ",
60
+ md_entity("laquo"),
61
+ "here",
62
+ md_entity("raquo"),
63
+ "No space."
64
+ ]),
65
+ md_el(:code,[],{:raw_code=>"She was 6\\\"12\\'."},[]),
66
+ md_el(:quote,[
67
+ md_par(["She was 6", md_entity("quot"), "12", md_entity("apos"), "."])
68
+ ],{},[])
69
+ ],{},[])
70
+ *** Output of to_html ***
71
+ <pre><code>&#39;Twas a &quot;test&quot; to &#39;remember&#39; in the &#39;90s.</code></pre>
72
+
73
+ <p>&#8216;Twas a &#8220;test&#8221; to &#8216;remember&#8217; in the &#8217;90s.</p>
74
+
75
+ <pre><code>It was --- in a sense --- really... interesting.</code></pre>
76
+
77
+ <p>It was &#8212; in a sense &#8212; really&#8230; interesting.</p>
78
+
79
+ <pre><code>I -- too -- met &lt;&lt; some curly quotes &gt;&gt; there or &lt;&lt;here&gt;&gt;No space.</code></pre>
80
+
81
+ <p>I &#8211; too &#8211; met &#171;&#160;some curly quotes&#160;&#187; there or &#171;here&#187;No space.</p>
82
+
83
+ <pre><code>She was 6\&quot;12\&#39;.</code></pre>
84
+
85
+ <blockquote>
86
+ <p>She was 6&#34;12&#39;.</p>
87
+ </blockquote>
88
+ *** Output of to_latex ***
89
+ \begin{verbatim}'Twas a "test" to 'remember' in the '90s.\end{verbatim}
90
+ `{}Twas a ``{}test''{} to `{}remember'{} in the '{}90s.
91
+
92
+ \begin{verbatim}It was --- in a sense --- really... interesting.\end{verbatim}
93
+ It was ---{} in a sense ---{} really\ldots{} interesting.
94
+
95
+ \begin{verbatim}I -- too -- met << some curly quotes >> there or <<here>>No space.\end{verbatim}
96
+ I --{} too --{} met \guillemotleft{}~{}some curly quotes~{}\guillemotright{} there or \guillemotleft{}here\guillemotright{}No space.
97
+
98
+ \begin{verbatim}She was 6\"12\'.\end{verbatim}
99
+ \begin{quote}%
100
+ She was 6"{}12'{}.
101
+
102
+
103
+ \end{quote}
104
+ *** Output of to_md ***
105
+ Twas a test to remember in the 90s.
106
+
107
+ It was in a sense really interesting.
108
+
109
+ I too met some curly quotes there or
110
+ here No space.
111
+
112
+ She was 6 12 .
113
+ *** Output of to_s ***
114
+ Twas a test to remember in the 90s.It was in a sense really interesting.I too met some curly quotes there or hereNo space.She was 612.
@@ -0,0 +1,52 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ This is ruby code:
6
+
7
+ require 'maruku'
8
+
9
+ puts Maruku.new($stdin).to_html
10
+
11
+ This is ruby code:
12
+
13
+ require 'maruku'
14
+ {: lang=ruby html_use_syntax}
15
+
16
+ puts Maruku.new($stdin).to_html
17
+ *** Output of inspect ***
18
+ md_el(:document,[
19
+ md_par(["This is ruby code:"]),
20
+ md_el(:code,[],{:raw_code=>"require 'maruku'\n\nputs Maruku.new($stdin).to_html"},[]),
21
+ md_par(["This is ruby code:"]),
22
+ md_el(:code,[],{:raw_code=>"require 'maruku'"},[["lang", "ruby"], [:ref, "html_use_syntax"]]),
23
+ md_el(:code,[],{:raw_code=>"puts Maruku.new($stdin).to_html"},[])
24
+ ],{},[])
25
+ *** Output of to_html ***
26
+ <p>This is ruby code:</p>
27
+
28
+ <pre><code>require &#39;maruku&#39;
29
+
30
+ puts Maruku.new($stdin).to_html</code></pre>
31
+
32
+ <p>This is ruby code:</p>
33
+
34
+ <pre><code class='ruby' lang='ruby'><span class='ident'>require</span> <span class='punct'>&#39;</span><span class='string'>maruku</span><span class='punct'>&#39;</span></code></pre>
35
+
36
+ <pre><code>puts Maruku.new($stdin).to_html</code></pre>
37
+ *** Output of to_latex ***
38
+ This is ruby code:
39
+
40
+ \begin{verbatim}require 'maruku'
41
+
42
+ puts Maruku.new($stdin).to_html\end{verbatim}
43
+ This is ruby code:
44
+
45
+ \begin{verbatim}require 'maruku'\end{verbatim}
46
+ \begin{verbatim}puts Maruku.new($stdin).to_html\end{verbatim}
47
+ *** Output of to_md ***
48
+ This is ruby code:
49
+
50
+ This is ruby code:
51
+ *** Output of to_s ***
52
+ This is ruby code:This is ruby code: