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,21 @@
1
+
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ <div markdown="1">Test **bold**</div>
6
+ <p markdown="1">Test **bold**</p>
7
+ *** Output of inspect ***
8
+ md_el(:document,[
9
+ md_html("<div markdown=\"1\">Test **bold**</div>"),
10
+ md_html("<p markdown=\"1\">Test **bold**</p>")
11
+ ],{},[])
12
+ *** Output of to_html ***
13
+ <div>
14
+ <p>Test <strong>bold</strong></p>
15
+ </div><p>Test <strong>bold</strong></p>
16
+ *** Output of to_latex ***
17
+
18
+ *** Output of to_md ***
19
+
20
+ *** Output of to_s ***
21
+
@@ -0,0 +1,152 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {:on_error=>:warning}
4
+ *** Markdown input: ***
5
+
6
+ Search on [Google][]
7
+
8
+ Search on [Google] []
9
+
10
+ Search on [Google] [google]
11
+
12
+ Search on [Google] [Google]
13
+
14
+ Search on [Google images][]
15
+
16
+ Inline: [Google images](http://google.com)
17
+
18
+ Inline with title: [Google images](http://google.com "Title")
19
+
20
+ Inline with title: [Google images]( http://google.com "Title" )
21
+
22
+
23
+ Search on <http://www.gogole.com> or <http://Here.com> or ask <mailto:bill@google.com>
24
+ or you might ask bill@google.com.
25
+
26
+ If all else fails, ask [Google](http://www.google.com)
27
+
28
+ And now [reference-style link ID with spaces] [Google Images]
29
+
30
+ [google]: http://www.google.com
31
+
32
+ [google2]: http://www.google.com 'Single quotes'
33
+
34
+ [google3]: http://www.google.com "Double quotes"
35
+
36
+ [google4]: http://www.google.com (Parenthesis)
37
+
38
+ [Google Search]:
39
+ http://www.google.com "Google search"
40
+
41
+ [Google Images]:
42
+ http://images.google.com (Google images)
43
+ *** Output of inspect ***
44
+ md_el(:document,[
45
+ md_par(["Search on ", md_link(["Google"],"google")]),
46
+ md_par(["Search on ", md_link(["Google"],"google")]),
47
+ md_par(["Search on ", md_link(["Google"],"google")]),
48
+ md_par(["Search on ", md_link(["Google"],"google")]),
49
+ md_par(["Search on ", md_link(["Google images"],"google_images")]),
50
+ md_par(["Inline: ", md_im_link(["Google images"], "http://google.com", nil)]),
51
+ md_par([
52
+ "Inline with title: ",
53
+ md_im_link(["Google images"], "http://google.com", "Title")
54
+ ]),
55
+ md_par([
56
+ "Inline with title: ",
57
+ md_im_link(["Google images"], "http://google.com", "Title")
58
+ ]),
59
+ md_par([
60
+ "Search on ",
61
+ md_url("http://www.gogole.com"),
62
+ " or ",
63
+ md_url("http://Here.com"),
64
+ " or ask ",
65
+ md_email("bill@google.com"),
66
+ " or you might ask bill@google.com."
67
+ ]),
68
+ md_par([
69
+ "If all else fails, ask ",
70
+ md_im_link(["Google"], "http://www.google.com", nil)
71
+ ]),
72
+ md_par([
73
+ "And now ",
74
+ md_link(["reference-style link ID with spaces"],"google_images")
75
+ ]),
76
+ md_ref_def("google", "http://www.google.com", {:title=>nil}),
77
+ md_ref_def("google2", "http://www.google.com", {:title=>"Single quotes"}),
78
+ md_ref_def("google3", "http://www.google.com", {:title=>"Double quotes"}),
79
+ md_ref_def("google4", "http://www.google.com", {:title=>"Parenthesis"}),
80
+ md_ref_def("google_search", "http://www.google.com", {:title=>"Google search"}),
81
+ md_ref_def("google_images", "http://images.google.com", {:title=>"Google images"})
82
+ ],{},[])
83
+ *** Output of to_html ***
84
+ <p>Search on <a href='http://www.google.com'>Google</a></p>
85
+
86
+ <p>Search on <a href='http://www.google.com'>Google</a></p>
87
+
88
+ <p>Search on <a href='http://www.google.com'>Google</a></p>
89
+
90
+ <p>Search on <a href='http://www.google.com'>Google</a></p>
91
+
92
+ <p>Search on <a href='http://images.google.com' title='Google images'>Google images</a></p>
93
+
94
+ <p>Inline: <a href='http://google.com'>Google images</a></p>
95
+
96
+ <p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
97
+
98
+ <p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
99
+
100
+ <p>Search on <a href='http://www.gogole.com'>http://www.gogole.com</a> or <a href='http://Here.com'>http://Here.com</a> or ask <a href='mailto:bill@google.com'>&#098;&#105;&#108;&#108;&#064;&#103;&#111;&#111;&#103;&#108;&#101;&#046;&#099;&#111;&#109;</a> or you might ask bill@google.com.</p>
101
+
102
+ <p>If all else fails, ask <a href='http://www.google.com'>Google</a></p>
103
+
104
+ <p>And now <a href='http://images.google.com' title='Google images'>reference-style link ID with spaces</a></p>
105
+ *** Output of to_latex ***
106
+ Search on \href{http://www.google.com}{Google}
107
+
108
+ Search on \href{http://www.google.com}{Google}
109
+
110
+ Search on \href{http://www.google.com}{Google}
111
+
112
+ Search on \href{http://www.google.com}{Google}
113
+
114
+ Search on \href{http://images.google.com}{Google images}
115
+
116
+ Inline: \href{http://google.com}{Google images}
117
+
118
+ Inline with title: \href{http://google.com}{Google images}
119
+
120
+ Inline with title: \href{http://google.com}{Google images}
121
+
122
+ Search on \href{http://www.gogole.com}{http\char58\char47\char47www\char46gogole\char46com} or \href{http://Here.com}{http\char58\char47\char47Here\char46com} or ask \href{mailto:bill@google.com}{bill\char64google\char46com} or you might ask bill@google.com.
123
+
124
+ If all else fails, ask \href{http://www.google.com}{Google}
125
+
126
+ And now \href{http://images.google.com}{reference-style link ID with spaces}
127
+ *** Output of to_md ***
128
+ Search on Google
129
+
130
+ Search on Google
131
+
132
+ Search on Google
133
+
134
+ Search on Google
135
+
136
+ Search on Google images
137
+
138
+ Inline: Google images
139
+
140
+ Inline with title: Google images
141
+
142
+ Inline with title: Google images
143
+
144
+ Search on or or ask or you might ask
145
+ bill@google.com.
146
+
147
+ If all else fails, ask Google
148
+
149
+ And now
150
+ reference-style link ID with spaces
151
+ *** Output of to_s ***
152
+ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on or or ask or you might ask bill@google.com.If all else fails, ask GoogleAnd now reference-style link ID with spaces
@@ -0,0 +1,22 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ See [foo' bar]
6
+
7
+ [foo' bar]: http://agorf.gr/
8
+
9
+
10
+ *** Output of inspect ***
11
+ md_el(:document,[
12
+ md_par(["See ", md_link(["foo", md_entity("rsquo"), " bar"],"foo_bar")]),
13
+ md_ref_def("foo_bar", "http://agorf.gr/", {:title=>nil})
14
+ ],{},[])
15
+ *** Output of to_html ***
16
+ <p>See <a href='http://agorf.gr/'>foo&#8217; bar</a></p>
17
+ *** Output of to_latex ***
18
+ See \href{http://agorf.gr/}{foo'{} bar}
19
+ *** Output of to_md ***
20
+ See foo bar
21
+ *** Output of to_s ***
22
+ See foo bar
@@ -0,0 +1,46 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ * A list item with a blockquote:
6
+
7
+ > This is a blockquote
8
+ > inside a list item.
9
+
10
+ *** Output of inspect ***
11
+ md_el(:document,[
12
+ md_el(:ul,[
13
+ md_el(:li,[
14
+ md_par(["A list item with a blockquote:"]),
15
+ md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
16
+ ],{:want_my_paragraph=>true},[])
17
+ ],{},[])
18
+ ],{},[])
19
+ *** Output of to_html ***
20
+ <ul>
21
+ <li>
22
+ <p>A list item with a blockquote:</p>
23
+
24
+ <blockquote>
25
+ <p>This is a blockquote inside a list item.</p>
26
+ </blockquote>
27
+ </li>
28
+ </ul>
29
+ *** Output of to_latex ***
30
+ \begin{itemize}%
31
+ \item A list item with a blockquote:
32
+
33
+ \begin{quote}%
34
+ This is a blockquote inside a list item.
35
+
36
+
37
+ \end{quote}
38
+
39
+
40
+ \end{itemize}
41
+ *** Output of to_md ***
42
+ - list item with a blockquote:
43
+ This is a blockquote inside a list
44
+ item.
45
+ *** Output of to_s ***
46
+ A list item with a blockquote:This is a blockquote inside a list item.
@@ -0,0 +1,28 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ * [Maruku]: good.
6
+
7
+ [maruku]: http://maruku.org/
8
+
9
+ *** Output of inspect ***
10
+ md_el(:document,[
11
+ md_el(:ul,[
12
+ md_el(:li_span,[md_link(["Maruku"],"maruku"), ": good."],{:want_my_paragraph=>false},[])
13
+ ],{},[]),
14
+ md_ref_def("maruku", "http://maruku.org/", {:title=>nil})
15
+ ],{},[])
16
+ *** Output of to_html ***
17
+ <ul>
18
+ <li><a href='http://maruku.org/'>Maruku</a>: good.</li>
19
+ </ul>
20
+ *** Output of to_latex ***
21
+ \begin{itemize}%
22
+ \item \href{http://maruku.org/}{Maruku}: good.
23
+
24
+ \end{itemize}
25
+ *** Output of to_md ***
26
+ -aruku: good.
27
+ *** Output of to_s ***
28
+ Maruku: good.
@@ -0,0 +1,56 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ * This is a list item with two paragraphs.
6
+
7
+ This is the second paragraph in the list item. You're
8
+ only required to indent the first line. Lorem ipsum dolor
9
+ sit amet, consectetuer adipiscing elit.
10
+
11
+ * other
12
+
13
+ *** Output of inspect ***
14
+ md_el(:document,[
15
+ md_el(:ul,[
16
+ md_el(:li,[
17
+ md_par(["This is a list item with two paragraphs."]),
18
+ md_par([
19
+ "This is the second paragraph in the list item. You",
20
+ md_entity("rsquo"),
21
+ "re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
22
+ ])
23
+ ],{:want_my_paragraph=>true},[]),
24
+ md_el(:li,[md_par(["other"])],{:want_my_paragraph=>false},[])
25
+ ],{},[])
26
+ ],{},[])
27
+ *** Output of to_html ***
28
+ <ul>
29
+ <li>
30
+ <p>This is a list item with two paragraphs.</p>
31
+
32
+ <p>This is the second paragraph in the list item. You&#8217;re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
33
+ </li>
34
+
35
+ <li>
36
+ <p>other</p>
37
+ </li>
38
+ </ul>
39
+ *** Output of to_latex ***
40
+ \begin{itemize}%
41
+ \item This is a list item with two paragraphs.
42
+
43
+ This is the second paragraph in the list item. You'{}re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
44
+
45
+
46
+ \item other
47
+
48
+
49
+
50
+ \end{itemize}
51
+ *** Output of to_md ***
52
+ -This is a list item with two paragraphs.
53
+ This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
54
+ -ther
55
+ *** Output of to_s ***
56
+ This is a list item with two paragraphs.This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.other
@@ -0,0 +1,64 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ * A list item with a blockquote:
6
+
7
+ > This is a blockquote
8
+ > inside a list item.
9
+
10
+ * A list item with a code block:
11
+
12
+ <code goes here>
13
+ *** Output of inspect ***
14
+ md_el(:document,[
15
+ md_el(:ul,[
16
+ md_el(:li,[
17
+ md_par(["A list item with a blockquote:"]),
18
+ md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
19
+ ],{:want_my_paragraph=>true},[]),
20
+ md_el(:li,[
21
+ md_par(["A list item with a code block:"]),
22
+ md_el(:code,[],{:raw_code=>"<code goes here>"},[])
23
+ ],{:want_my_paragraph=>true},[])
24
+ ],{},[])
25
+ ],{},[])
26
+ *** Output of to_html ***
27
+ <ul>
28
+ <li>
29
+ <p>A list item with a blockquote:</p>
30
+
31
+ <blockquote>
32
+ <p>This is a blockquote inside a list item.</p>
33
+ </blockquote>
34
+ </li>
35
+
36
+ <li>
37
+ <p>A list item with a code block:</p>
38
+
39
+ <pre><code>&lt;code goes here&gt;</code></pre>
40
+ </li>
41
+ </ul>
42
+ *** Output of to_latex ***
43
+ \begin{itemize}%
44
+ \item A list item with a blockquote:
45
+
46
+ \begin{quote}%
47
+ This is a blockquote inside a list item.
48
+
49
+
50
+ \end{quote}
51
+
52
+ \item A list item with a code block:
53
+
54
+ \begin{verbatim}<code goes here>\end{verbatim}
55
+
56
+
57
+ \end{itemize}
58
+ *** Output of to_md ***
59
+ - list item with a blockquote:
60
+ This is a blockquote inside a list
61
+ item.
62
+ - list item with a code block:
63
+ *** Output of to_s ***
64
+ A list item with a blockquote:This is a blockquote inside a list item.A list item with a code block:
@@ -0,0 +1,89 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ This is a list:
6
+ * one
7
+ * two
8
+
9
+ This is not a list:
10
+ * one
11
+ ciao
12
+
13
+ This is a list:
14
+ 1. one
15
+ 1. two
16
+
17
+ This is not a list:
18
+ 1987. one
19
+ ciao
20
+
21
+ *** Output of inspect ***
22
+ md_el(:document,[
23
+ md_par(["This is a list:"]),
24
+ md_el(:ul,[
25
+ md_el(:li_span,["one"],{:want_my_paragraph=>false},[]),
26
+ md_el(:li_span,["two"],{:want_my_paragraph=>false},[])
27
+ ],{},[]),
28
+ md_par(["This is not a list: * one ciao"]),
29
+ md_par(["This is a list:"]),
30
+ md_el(:ol,[
31
+ md_el(:li_span,["one"],{:want_my_paragraph=>false},[]),
32
+ md_el(:li_span,["two"],{:want_my_paragraph=>false},[])
33
+ ],{},[]),
34
+ md_par(["This is not a list: 1987. one ciao"])
35
+ ],{},[])
36
+ *** Output of to_html ***
37
+ <p>This is a list:</p>
38
+
39
+ <ul>
40
+ <li>one</li>
41
+
42
+ <li>two</li>
43
+ </ul>
44
+
45
+ <p>This is not a list: * one ciao</p>
46
+
47
+ <p>This is a list:</p>
48
+
49
+ <ol>
50
+ <li>one</li>
51
+
52
+ <li>two</li>
53
+ </ol>
54
+
55
+ <p>This is not a list: 1987. one ciao</p>
56
+ *** Output of to_latex ***
57
+ This is a list:
58
+
59
+ \begin{itemize}%
60
+ \item one
61
+ \item two
62
+
63
+ \end{itemize}
64
+ This is not a list: * one ciao
65
+
66
+ This is a list:
67
+
68
+ \begin{enumerate}%
69
+ \item one
70
+ \item two
71
+
72
+ \end{enumerate}
73
+ This is not a list: 1987. one ciao
74
+ *** Output of to_md ***
75
+ This is a list:
76
+
77
+ -ne
78
+ -wo
79
+
80
+ This is not a list: * one ciao
81
+
82
+ This is a list:
83
+
84
+ 1. one
85
+ 2. two
86
+
87
+ This is not a list: 1987. one ciao
88
+ *** Output of to_s ***
89
+ This is a list:onetwoThis is not a list: * one ciaoThis is a list:onetwoThis is not a list: 1987. one ciao