maruku 0.2.13 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/bin/maruku +23 -15
  2. data/bin/maruku0.3 +37 -0
  3. data/bin/marutest +277 -0
  4. data/docs/changelog-0.3.html +99 -0
  5. data/docs/changelog-0.3.md +84 -0
  6. data/docs/faq.html +46 -0
  7. data/docs/faq.md +32 -0
  8. data/docs/index.html +629 -64
  9. data/docs/markdown_extra2.html +67 -14
  10. data/docs/markdown_syntax.html +631 -94
  11. data/docs/markdown_syntax_2.html +152 -0
  12. data/docs/maruku.html +629 -64
  13. data/docs/maruku.md +108 -105
  14. data/docs/proposal.html +362 -55
  15. data/docs/proposal.md +133 -169
  16. data/docs/todo.html +30 -0
  17. data/lib/maruku.rb +13 -3
  18. data/lib/maruku/errors_management.rb +75 -0
  19. data/lib/maruku/helpers.rb +164 -0
  20. data/lib/maruku/html_helper.rb +33 -13
  21. data/lib/maruku/parse_block.rb +89 -92
  22. data/lib/maruku/parse_doc.rb +43 -18
  23. data/lib/maruku/parse_span.rb +17 -46
  24. data/lib/maruku/parse_span_better.rb +681 -0
  25. data/lib/maruku/string_utils.rb +17 -10
  26. data/lib/maruku/structures.rb +62 -35
  27. data/lib/maruku/structures_iterators.rb +39 -0
  28. data/lib/maruku/tests/benchmark.rb +12 -4
  29. data/lib/maruku/tests/new_parser.rb +318 -0
  30. data/lib/maruku/to_html.rb +113 -44
  31. data/lib/maruku/to_latex.rb +32 -14
  32. data/lib/maruku/to_markdown.rb +110 -0
  33. data/lib/maruku/toc.rb +35 -1
  34. data/lib/maruku/version.rb +10 -1
  35. data/lib/test.rb +29 -0
  36. data/tests/others/escaping.md +6 -4
  37. data/tests/others/links.md +1 -1
  38. data/tests/others/lists_after_paragraph.md +44 -0
  39. data/tests/unittest/abbreviations.md +71 -0
  40. data/tests/unittest/blank.md +43 -0
  41. data/tests/unittest/blanks_in_code.md +131 -0
  42. data/tests/unittest/code.md +64 -0
  43. data/tests/unittest/code2.md +59 -0
  44. data/tests/unittest/code3.md +121 -0
  45. data/tests/unittest/easy.md +36 -0
  46. data/tests/unittest/email.md +39 -0
  47. data/tests/unittest/encoding/iso-8859-1.md +9 -0
  48. data/tests/unittest/encoding/utf-8.md +38 -0
  49. data/tests/unittest/entities.md +174 -0
  50. data/tests/unittest/escaping.md +97 -0
  51. data/tests/unittest/extra_dl.md +81 -0
  52. data/tests/unittest/extra_header_id.md +96 -0
  53. data/tests/unittest/extra_table1.md +78 -0
  54. data/tests/unittest/footnotes.md +120 -0
  55. data/tests/unittest/headers.md +64 -0
  56. data/tests/unittest/hrule.md +77 -0
  57. data/tests/unittest/images.md +114 -0
  58. data/tests/unittest/inline_html.md +185 -0
  59. data/tests/unittest/links.md +162 -0
  60. data/tests/unittest/list1.md +80 -0
  61. data/tests/unittest/list2.md +75 -0
  62. data/tests/unittest/list3.md +111 -0
  63. data/tests/unittest/list4.md +43 -0
  64. data/tests/unittest/lists.md +262 -0
  65. data/tests/unittest/lists_after_paragraph.md +280 -0
  66. data/tests/unittest/lists_ol.md +323 -0
  67. data/tests/unittest/misc_sw.md +751 -0
  68. data/tests/unittest/notyet/escape.md +46 -0
  69. data/tests/unittest/notyet/header_after_par.md +85 -0
  70. data/tests/unittest/notyet/ticks.md +67 -0
  71. data/tests/unittest/notyet/triggering.md +210 -0
  72. data/tests/unittest/one.md +33 -0
  73. data/tests/unittest/paragraph.md +34 -0
  74. data/tests/unittest/paragraph_rules/dont_merge_ref.md +60 -0
  75. data/tests/unittest/paragraph_rules/tab_is_blank.md +43 -0
  76. data/tests/unittest/paragraphs.md +84 -0
  77. data/tests/unittest/recover/recover_links.md +32 -0
  78. data/tests/unittest/references/long_example.md +87 -0
  79. data/tests/unittest/references/spaces_and_numbers.md +27 -0
  80. data/tests/unittest/syntax_hl.md +99 -0
  81. data/tests/unittest/test.md +36 -0
  82. data/tests/unittest/wrapping.md +88 -0
  83. data/tests/utf8-files/simple.md +1 -0
  84. metadata +139 -86
  85. data/lib/maruku/maruku.rb +0 -50
  86. data/tests/a.md +0 -10
@@ -0,0 +1,280 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ Paragraph, list with no space:
6
+ * ciao
7
+
8
+ Paragraph, list with 1 space:
9
+ * ciao
10
+
11
+ Paragraph, list with 3 space:
12
+ * ciao
13
+
14
+ Paragraph, list with 4 spaces:
15
+ * ciao
16
+
17
+ Paragraph, list with 1 tab:
18
+ * ciao
19
+
20
+ Paragraph (1 space after), list with no space:
21
+ * ciao
22
+
23
+ Paragraph (2 spaces after), list with no space:
24
+ * ciao
25
+
26
+ Paragraph (3 spaces after), list with no space:
27
+ * ciao
28
+
29
+ Paragraph with block quote:
30
+ > Quoted
31
+
32
+ Paragraph with header:
33
+ ### header ###
34
+
35
+ Paragraph with header on two lines:
36
+ header
37
+ ------
38
+
39
+
40
+ Paragraph with html after
41
+ <div></div>
42
+
43
+ Paragraph with html after, indented:
44
+ <em>Emphasis</em>
45
+
46
+ Paragraph with html after, indented: <em>Emphasis</em> *tralla* <em>Emph</em>
47
+
48
+ Paragraph with html after, indented: <em>Emphasis *tralla* Emph</em>
49
+
50
+ *** Output of inspect ***
51
+ md_el(:document,[
52
+ md_par(["Paragraph, list with no space: * ciao"]),
53
+ md_par(["Paragraph, list with 1 space: * ciao"]),
54
+ md_par(["Paragraph, list with 3 space: * ciao"]),
55
+ md_par(["Paragraph, list with 4 spaces: * ciao"]),
56
+ md_par(["Paragraph, list with 1 tab: * ciao"]),
57
+ md_par(["Paragraph (1 space after), list with no space: * ciao"]),
58
+ md_par([
59
+ "Paragraph (2 spaces after), list with no space:",
60
+ md_el(:linebreak,[] ),
61
+ "* ciao"
62
+ ]),
63
+ md_par([
64
+ "Paragraph (3 spaces after), list with no space: ",
65
+ md_el(:linebreak,[] ),
66
+ "* ciao"
67
+ ]),
68
+ md_par(["Paragraph with block quote:"]),
69
+ md_el(:quote,[md_par(["Quoted"])] ),
70
+ md_par(["Paragraph with header:"]),
71
+ md_el(:header,["header"] , {:id=>"header", :level=>3}),
72
+ md_par(["Paragraph with header on two lines:"]),
73
+ md_el(:header,["header"] , {:id=>"header", :level=>2}),
74
+ md_par(["Paragraph with html after"]),
75
+ md_html("<div></div>"),
76
+ md_par([
77
+ "Paragraph with html after, indented: ",
78
+ md_html("<em>Emphasis</em>")
79
+ ]),
80
+ md_par([
81
+ "Paragraph with html after, indented: ",
82
+ md_html("<em>Emphasis</em>"),
83
+ " ",
84
+ md_em(["tralla"]),
85
+ " ",
86
+ md_html("<em>Emph</em>")
87
+ ]),
88
+ md_par([
89
+ "Paragraph with html after, indented: ",
90
+ md_html("<em>Emphasis *tralla* Emph</em>")
91
+ ])
92
+ ] )
93
+ *** Output of to_html ***
94
+
95
+ <p>Paragraph, list with no space: * ciao</p>
96
+
97
+ <p>Paragraph, list with 1 space: * ciao</p>
98
+
99
+ <p>Paragraph, list with 3 space: * ciao</p>
100
+
101
+ <p>Paragraph, list with 4 spaces: * ciao</p>
102
+
103
+ <p>Paragraph, list with 1 tab: * ciao</p>
104
+
105
+ <p>Paragraph (1 space after), list with no space: * ciao</p>
106
+
107
+ <p>Paragraph (2 spaces after), list with no space:<br />
108
+ * ciao</p>
109
+
110
+ <p>Paragraph (3 spaces after), list with no space: <br />
111
+ * ciao</p>
112
+
113
+ <p>Paragraph with block quote:</p>
114
+
115
+ <blockquote>
116
+ <p>Quoted</p>
117
+ </blockquote>
118
+
119
+ <p>Paragraph with header:</p>
120
+
121
+ <h3 id='header'>header</h3>
122
+
123
+ <p>Paragraph with header on two lines:</p>
124
+
125
+ <h2 id='header'>header</h2>
126
+
127
+ <p>Paragraph with html after</p>
128
+
129
+ <div />
130
+
131
+ <p>Paragraph with html after, indented: <em>Emphasis</em></p>
132
+
133
+ <p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
134
+
135
+ <p>Paragraph with html after, indented: <em>Emphasis *tralla* Emph</em></p>
136
+
137
+ *** Output of to_latex ***
138
+ Paragraph, list with no space: * ciao
139
+
140
+ Paragraph, list with 1 space: * ciao
141
+
142
+ Paragraph, list with 3 space: * ciao
143
+
144
+ Paragraph, list with 4 spaces: * ciao
145
+
146
+ Paragraph, list with 1 tab: * ciao
147
+
148
+ Paragraph (1 space after), list with no space: * ciao
149
+
150
+ Paragraph (2 spaces after), list with no space:\linebreak * ciao
151
+
152
+ Paragraph (3 spaces after), list with no space: \linebreak * ciao
153
+
154
+ Paragraph with block quote:
155
+
156
+ \begin{quote}%
157
+ Quoted
158
+
159
+
160
+ \end{quote}
161
+ Paragraph with header:
162
+
163
+ \hypertarget{header}{}\subsubsection*{{header}}\label{header}
164
+
165
+ Paragraph with header on two lines:
166
+
167
+ \hypertarget{header}{}\subsection*{{header}}\label{header}
168
+
169
+ Paragraph with html after
170
+
171
+ {\bf Raw HTML removed in latex version }Paragraph with html after, indented: {\bf Raw HTML removed in latex version }
172
+
173
+ Paragraph with html after, indented: {\bf Raw HTML removed in latex version } {\em tralla} {\bf Raw HTML removed in latex version }
174
+
175
+ Paragraph with html after, indented: {\bf Raw HTML removed in latex version }
176
+
177
+
178
+ *** Output of to_s ***
179
+ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:headerParagraph with html afterParagraph with html after, indented: Paragraph with html after, indented: tralla Paragraph with html after, indented:
180
+ *** Output of to_s ***
181
+ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:headerParagraph with html afterParagraph with html after, indented: Paragraph with html after, indented: tralla Paragraph with html after, indented:
182
+ *** EOF ***
183
+
184
+
185
+
186
+ OK!
187
+
188
+
189
+
190
+ *** Output of Markdown.pl ***
191
+ <p>Paragraph, list with no space:
192
+ * ciao</p>
193
+
194
+ <p>Paragraph, list with 1 space:
195
+ * ciao</p>
196
+
197
+ <p>Paragraph, list with 3 space:
198
+ * ciao</p>
199
+
200
+ <p>Paragraph, list with 4 spaces:
201
+ * ciao</p>
202
+
203
+ <p>Paragraph, list with 1 tab:
204
+ * ciao</p>
205
+
206
+ <p>Paragraph (1 space after), list with no space:
207
+ * ciao</p>
208
+
209
+ <p>Paragraph (2 spaces after), list with no space: <br />
210
+ * ciao</p>
211
+
212
+ <p>Paragraph (3 spaces after), list with no space: <br />
213
+ * ciao</p>
214
+
215
+ <p>Paragraph with block quote:</p>
216
+
217
+ <blockquote>
218
+ <p>Quoted</p>
219
+ </blockquote>
220
+
221
+ <p>Paragraph with header:</p>
222
+
223
+ <h3>header</h3>
224
+
225
+ <p>Paragraph with header on two lines:</p>
226
+
227
+ <h2>header</h2>
228
+
229
+ <p>Paragraph with html after</p>
230
+
231
+ <div></div>
232
+
233
+ <p>Paragraph with html after, indented:
234
+ <em>Emphasis</em></p>
235
+
236
+ <p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
237
+
238
+ <p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em> Emph</em></p>
239
+
240
+ *** Output of Markdown.pl (parsed) ***
241
+ <p>Paragraph, list with no space:
242
+ * ciao</p
243
+ ><p>Paragraph, list with 1 space:
244
+ * ciao</p
245
+ ><p>Paragraph, list with 3 space:
246
+ * ciao</p
247
+ ><p>Paragraph, list with 4 spaces:
248
+ * ciao</p
249
+ ><p>Paragraph, list with 1 tab:
250
+ * ciao</p
251
+ ><p>Paragraph (1 space after), list with no space:
252
+ * ciao</p
253
+ ><p>Paragraph (2 spaces after), list with no space: <br/
254
+ >
255
+ * ciao</p
256
+ ><p>Paragraph (3 spaces after), list with no space: <br/
257
+ >
258
+ * ciao</p
259
+ ><p>Paragraph with block quote:</p
260
+ ><blockquote>
261
+ <p>Quoted</p
262
+ >
263
+ </blockquote
264
+ ><p>Paragraph with header:</p
265
+ ><h3>header</h3
266
+ ><p>Paragraph with header on two lines:</p
267
+ ><h2>header</h2
268
+ ><p>Paragraph with html after</p
269
+ ><div/
270
+ ><p>Paragraph with html after, indented:
271
+ <em>Emphasis</em
272
+ ></p
273
+ ><p>Paragraph with html after, indented: <em>Emphasis</em
274
+ ><em>tralla</em
275
+ ><em>Emph</em
276
+ ></p
277
+ ><p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em
278
+ > Emph</em
279
+ ></p
280
+ >
@@ -0,0 +1,323 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ 1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
6
+ Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
7
+ viverra nec, fringilla in, laoreet vitae, risus.
8
+ 2. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
9
+ Suspendisse id sem consectetuer libero luctus adipiscing.
10
+ 3. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
11
+ Suspendisse id sem consectetuer libero luctus adipiscing.
12
+ 3. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
13
+ Suspendisse id sem consectetuer libero luctus adipiscing.
14
+ 4. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
15
+ Suspendisse id sem consectetuer libero luctus adipiscing.
16
+
17
+ Ancora
18
+
19
+ 1. This is a list item with two paragraphs. Lorem ipsum dolor
20
+ sit amet, consectetuer adipiscing elit. Aliquam hendrerit
21
+ mi posuere lectus.
22
+
23
+ ATTENZIONE!
24
+
25
+ - Uno
26
+ - Due
27
+ 1. tre
28
+ 1. tre
29
+ 1. tre
30
+ - Due
31
+
32
+ 2. Suspendisse id sem consectetuer libero luctus adipiscing.
33
+
34
+
35
+ Ancora
36
+
37
+ * This is a list item with two paragraphs.
38
+
39
+ This is the second paragraph in the list item. You're
40
+ only required to indent the first line. Lorem ipsum dolor
41
+ sit amet, consectetuer adipiscing elit.
42
+
43
+ * Another item in the same list.
44
+ *** Output of inspect ***
45
+ md_el(:document,[
46
+ md_el(:ol,[
47
+ md_el(:li_span,[
48
+ "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus."
49
+ ] , {:want_my_paragraph=>false}),
50
+ md_el(:li_span,[
51
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
52
+ ] , {:want_my_paragraph=>false}),
53
+ md_el(:li_span,[
54
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing"
55
+ ] , {:want_my_paragraph=>false}),
56
+ md_el(:li_span,[
57
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing"
58
+ ] , {:want_my_paragraph=>false}),
59
+ md_el(:li_span,[
60
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
61
+ ] , {:want_my_paragraph=>false})
62
+ ] ),
63
+ md_par(["Ancora"]),
64
+ md_el(:ol,[
65
+ md_el(:li,[
66
+ md_par([
67
+ "This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus."
68
+ ]),
69
+ md_par(["ATTENZIONE!"]),
70
+ md_el(:ul,[
71
+ md_el(:li_span,["Uno"] , {:want_my_paragraph=>false}),
72
+ md_el(:li_span,["Due 1. tre 1. tre 1. tre"] , {:want_my_paragraph=>false}),
73
+ md_el(:li_span,["Due"] , {:want_my_paragraph=>false})
74
+ ] )
75
+ ] , {:want_my_paragraph=>true}),
76
+ md_el(:li,[
77
+ md_par(["Suspendisse id sem consectetuer libero luctus adipiscing."])
78
+ ] , {:want_my_paragraph=>false})
79
+ ] ),
80
+ md_par(["Ancora"]),
81
+ md_el(:ul,[
82
+ md_el(:li,[
83
+ md_par(["This is a list item with two paragraphs."]),
84
+ md_par([
85
+ "This is the second paragraph in the list item. You're only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elit"
86
+ ])
87
+ ] , {:want_my_paragraph=>true}),
88
+ md_el(:li,[md_par(["Another item in the same list."])] , {:want_my_paragraph=>false})
89
+ ] )
90
+ ] )
91
+ *** Output of to_html ***
92
+
93
+ <ol>
94
+ <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</li>
95
+
96
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
97
+
98
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing</li>
99
+
100
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing</li>
101
+
102
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
103
+ </ol>
104
+
105
+ <p>Ancora</p>
106
+
107
+ <ol>
108
+ <li>
109
+ <p>This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.</p>
110
+
111
+ <p>ATTENZIONE!</p>
112
+
113
+ <ul>
114
+ <li>Uno</li>
115
+
116
+ <li>Due 1. tre 1. tre 1. tre</li>
117
+
118
+ <li>Due</li>
119
+ </ul>
120
+ </li>
121
+
122
+ <li>
123
+ <p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
124
+ </li>
125
+ </ol>
126
+
127
+ <p>Ancora</p>
128
+
129
+ <ul>
130
+ <li>
131
+ <p>This is a list item with two paragraphs.</p>
132
+
133
+ <p>This is the second paragraph in the list item. You&apos;re only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elit</p>
134
+ </li>
135
+
136
+ <li>
137
+ <p>Another item in the same list.</p>
138
+ </li>
139
+ </ul>
140
+
141
+ *** Output of to_latex ***
142
+ \begin{enumerate}%
143
+ \item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
144
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
145
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing
146
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing
147
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
148
+
149
+ \end{enumerate}
150
+ Ancora
151
+
152
+ \begin{enumerate}%
153
+ \item This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
154
+
155
+ ATTENZIONE!
156
+
157
+ \begin{itemize}%
158
+ \item Uno
159
+ \item Due 1. tre 1. tre 1. tre
160
+ \item Due
161
+
162
+ \end{itemize}
163
+
164
+ \item Suspendisse id sem consectetuer libero luctus adipiscing.
165
+
166
+
167
+
168
+ \end{enumerate}
169
+ Ancora
170
+
171
+ \begin{itemize}%
172
+ \item This is a list item with two paragraphs.
173
+
174
+ This is the second paragraph in the list item. You're only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elit
175
+
176
+
177
+ \item Another item in the same list.
178
+
179
+
180
+
181
+ \end{itemize}
182
+
183
+ *** Output of to_s ***
184
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscingDonec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscingDonec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.ATTENZIONE!UnoDue 1. tre 1. tre 1. treDueSuspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs.This is the second paragraph in the list item. You're only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elitAnother item in the same list.
185
+ *** Output of to_s ***
186
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscingDonec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscingDonec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.ATTENZIONE!UnoDue 1. tre 1. tre 1. treDueSuspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs.This is the second paragraph in the list item. You're only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elitAnother item in the same list.
187
+ *** EOF ***
188
+
189
+
190
+
191
+ OK!
192
+
193
+
194
+
195
+ *** Output of Markdown.pl ***
196
+ <ol>
197
+ <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
198
+ Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
199
+ viverra nec, fringilla in, laoreet vitae, risus.
200
+ <ol>
201
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
202
+ Suspendisse id sem consectetuer libero luctus adipiscing.</li>
203
+ </ol></li>
204
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
205
+ Suspendisse id sem consectetuer libero luctus adipiscing.
206
+ <ol>
207
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
208
+ Suspendisse id sem consectetuer libero luctus adipiscing.</li>
209
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
210
+ Suspendisse id sem consectetuer libero luctus adipiscing.</li>
211
+ </ol></li>
212
+ </ol>
213
+
214
+ <p>Ancora</p>
215
+
216
+ <ol>
217
+ <li><p>This is a list item with two paragraphs. Lorem ipsum dolor
218
+ sit amet, consectetuer adipiscing elit. Aliquam hendrerit
219
+ mi posuere lectus.</p>
220
+
221
+ <p>ATTENZIONE!</p>
222
+
223
+ <ul>
224
+ <li>Uno</li>
225
+ <li>Due
226
+ <ol>
227
+ <li>tre</li>
228
+ <li>tre</li>
229
+ <li>tre</li>
230
+ </ol></li>
231
+ <li>Due</li>
232
+ </ul></li>
233
+ <li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p></li>
234
+ </ol>
235
+
236
+ <p>Ancora</p>
237
+
238
+ <ul>
239
+ <li><p>This is a list item with two paragraphs.</p>
240
+
241
+ <p>This is the second paragraph in the list item. You're
242
+ only required to indent the first line. Lorem ipsum dolor
243
+ sit amet, consectetuer adipiscing elit.</p></li>
244
+ <li><p>Another item in the same list.</p></li>
245
+ </ul>
246
+
247
+ *** Output of Markdown.pl (parsed) ***
248
+ <ol>
249
+ <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
250
+ Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
251
+ viverra nec, fringilla in, laoreet vitae, risus.
252
+ <ol>
253
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
254
+ Suspendisse id sem consectetuer libero luctus adipiscing.</li
255
+ >
256
+ </ol
257
+ ></li
258
+ >
259
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
260
+ Suspendisse id sem consectetuer libero luctus adipiscing.
261
+ <ol>
262
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
263
+ Suspendisse id sem consectetuer libero luctus adipiscing.</li
264
+ >
265
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
266
+ Suspendisse id sem consectetuer libero luctus adipiscing.</li
267
+ >
268
+ </ol
269
+ ></li
270
+ >
271
+ </ol
272
+ ><p>Ancora</p
273
+ ><ol>
274
+ <li
275
+ ><p>This is a list item with two paragraphs. Lorem ipsum dolor
276
+ sit amet, consectetuer adipiscing elit. Aliquam hendrerit
277
+ mi posuere lectus.</p
278
+ >
279
+
280
+ <p>ATTENZIONE!</p
281
+ >
282
+
283
+ <ul>
284
+ <li>Uno</li
285
+ >
286
+ <li>Due
287
+ <ol>
288
+ <li>tre</li
289
+ >
290
+ <li>tre</li
291
+ >
292
+ <li>tre</li
293
+ >
294
+ </ol
295
+ ></li
296
+ >
297
+ <li>Due</li
298
+ >
299
+ </ul
300
+ ></li
301
+ >
302
+ <li
303
+ ><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p
304
+ ></li
305
+ >
306
+ </ol
307
+ ><p>Ancora</p
308
+ ><ul>
309
+ <li
310
+ ><p>This is a list item with two paragraphs.</p
311
+ >
312
+
313
+ <p>This is the second paragraph in the list item. You're
314
+ only required to indent the first line. Lorem ipsum dolor
315
+ sit amet, consectetuer adipiscing elit.</p
316
+ ></li
317
+ >
318
+ <li
319
+ ><p>Another item in the same list.</p
320
+ ></li
321
+ >
322
+ </ul
323
+ >