remi-maruku 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +73 -0
- data/bin/marudown +29 -0
- data/bin/maruku +176 -0
- data/bin/marutest +338 -0
- data/bin/marutex +31 -0
- data/docs/changelog.md +334 -0
- data/docs/div_syntax.md +36 -0
- data/docs/entity_test.md +23 -0
- data/docs/markdown_syntax.md +899 -0
- data/docs/maruku.md +346 -0
- data/docs/math.md +194 -0
- data/docs/other_stuff.md +51 -0
- data/docs/proposal.md +309 -0
- data/lib/maruku.rb +141 -0
- data/lib/maruku/attributes.rb +227 -0
- data/lib/maruku/defaults.rb +70 -0
- data/lib/maruku/errors_management.rb +92 -0
- data/lib/maruku/ext/div.rb +100 -0
- data/lib/maruku/ext/math.rb +41 -0
- data/lib/maruku/ext/math/elements.rb +27 -0
- data/lib/maruku/ext/math/latex_fix.rb +11 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +104 -0
- data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +29 -0
- data/lib/maruku/ext/math/mathml_engines/none.rb +20 -0
- data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
- data/lib/maruku/ext/math/parsing.rb +105 -0
- data/lib/maruku/ext/math/to_html.rb +170 -0
- data/lib/maruku/ext/math/to_latex.rb +22 -0
- data/lib/maruku/helpers.rb +260 -0
- data/lib/maruku/input/charsource.rb +326 -0
- data/lib/maruku/input/extensions.rb +69 -0
- data/lib/maruku/input/html_helper.rb +189 -0
- data/lib/maruku/input/linesource.rb +111 -0
- data/lib/maruku/input/parse_block.rb +613 -0
- data/lib/maruku/input/parse_doc.rb +227 -0
- data/lib/maruku/input/parse_span_better.rb +732 -0
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +144 -0
- data/lib/maruku/input_textile2/t2_parser.rb +163 -0
- data/lib/maruku/maruku.rb +33 -0
- data/lib/maruku/output/s5/fancy.rb +756 -0
- data/lib/maruku/output/s5/to_s5.rb +125 -0
- data/lib/maruku/output/to_html.rb +971 -0
- data/lib/maruku/output/to_latex.rb +563 -0
- data/lib/maruku/output/to_latex_entities.rb +367 -0
- data/lib/maruku/output/to_latex_strings.rb +64 -0
- data/lib/maruku/output/to_markdown.rb +164 -0
- data/lib/maruku/output/to_s.rb +53 -0
- data/lib/maruku/string_utils.rb +191 -0
- data/lib/maruku/structures.rb +165 -0
- data/lib/maruku/structures_inspect.rb +87 -0
- data/lib/maruku/structures_iterators.rb +61 -0
- data/lib/maruku/tests/benchmark.rb +82 -0
- data/lib/maruku/tests/new_parser.rb +370 -0
- data/lib/maruku/tests/tests.rb +136 -0
- data/lib/maruku/textile2.rb +1 -0
- data/lib/maruku/toc.rb +199 -0
- data/lib/maruku/usage/example1.rb +33 -0
- data/lib/maruku/version.rb +40 -0
- data/tests/bugs/code_in_links.md +16 -0
- data/tests/bugs/complex_escaping.md +4 -0
- data/tests/math/syntax.md +46 -0
- data/tests/math_usage/document.md +13 -0
- data/tests/others/abbreviations.md +11 -0
- data/tests/others/blank.md +4 -0
- data/tests/others/code.md +5 -0
- data/tests/others/code2.md +8 -0
- data/tests/others/code3.md +16 -0
- data/tests/others/email.md +4 -0
- data/tests/others/entities.md +19 -0
- data/tests/others/escaping.md +16 -0
- data/tests/others/extra_dl.md +101 -0
- data/tests/others/extra_header_id.md +13 -0
- data/tests/others/extra_table1.md +40 -0
- data/tests/others/footnotes.md +17 -0
- data/tests/others/headers.md +10 -0
- data/tests/others/hrule.md +10 -0
- data/tests/others/images.md +20 -0
- data/tests/others/inline_html.md +42 -0
- data/tests/others/links.md +38 -0
- data/tests/others/list1.md +4 -0
- data/tests/others/list2.md +5 -0
- data/tests/others/list3.md +8 -0
- data/tests/others/lists.md +32 -0
- data/tests/others/lists_after_paragraph.md +44 -0
- data/tests/others/lists_ol.md +39 -0
- data/tests/others/misc_sw.md +105 -0
- data/tests/others/one.md +1 -0
- data/tests/others/paragraphs.md +13 -0
- data/tests/others/sss06.md +352 -0
- data/tests/others/test.md +4 -0
- data/tests/s5/s5profiling.md +48 -0
- data/tests/unittest/abbreviations.md +72 -0
- data/tests/unittest/alt.md +30 -0
- data/tests/unittest/attributes/att2.md +34 -0
- data/tests/unittest/attributes/att3.md +45 -0
- data/tests/unittest/attributes/attributes.md +82 -0
- data/tests/unittest/attributes/circular.md +43 -0
- data/tests/unittest/attributes/default.md +38 -0
- data/tests/unittest/blank.md +39 -0
- data/tests/unittest/blanks_in_code.md +106 -0
- data/tests/unittest/bug_def.md +29 -0
- data/tests/unittest/bug_table.md +67 -0
- data/tests/unittest/code.md +53 -0
- data/tests/unittest/code2.md +46 -0
- data/tests/unittest/code3.md +102 -0
- data/tests/unittest/data_loss.md +42 -0
- data/tests/unittest/divs/div1.md +204 -0
- data/tests/unittest/divs/div2.md +34 -0
- data/tests/unittest/divs/div3_nest.md +62 -0
- data/tests/unittest/easy.md +28 -0
- data/tests/unittest/email.md +33 -0
- data/tests/unittest/encoding/iso-8859-1.md +38 -0
- data/tests/unittest/encoding/utf-8.md +33 -0
- data/tests/unittest/entities.md +124 -0
- data/tests/unittest/escaping.md +89 -0
- data/tests/unittest/extra_dl.md +72 -0
- data/tests/unittest/extra_header_id.md +86 -0
- data/tests/unittest/extra_table1.md +55 -0
- data/tests/unittest/footnotes.md +126 -0
- data/tests/unittest/headers.md +54 -0
- data/tests/unittest/hex_entities.md +50 -0
- data/tests/unittest/hrule.md +60 -0
- data/tests/unittest/html2.md +38 -0
- data/tests/unittest/html3.md +47 -0
- data/tests/unittest/html4.md +42 -0
- data/tests/unittest/html5.md +38 -0
- data/tests/unittest/ie.md +82 -0
- data/tests/unittest/images.md +114 -0
- data/tests/unittest/images2.md +46 -0
- data/tests/unittest/inline_html.md +260 -0
- data/tests/unittest/inline_html2.md +36 -0
- data/tests/unittest/links.md +197 -0
- data/tests/unittest/list1.md +66 -0
- data/tests/unittest/list2.md +76 -0
- data/tests/unittest/list3.md +88 -0
- data/tests/unittest/list4.md +116 -0
- data/tests/unittest/lists.md +241 -0
- data/tests/unittest/lists11.md +31 -0
- data/tests/unittest/lists6.md +54 -0
- data/tests/unittest/lists7.md +79 -0
- data/tests/unittest/lists7b.md +136 -0
- data/tests/unittest/lists8.md +83 -0
- data/tests/unittest/lists9.md +85 -0
- data/tests/unittest/lists_after_paragraph.md +268 -0
- data/tests/unittest/lists_ol.md +324 -0
- data/tests/unittest/loss.md +29 -0
- data/tests/unittest/math/equations.md +69 -0
- data/tests/unittest/math/inline.md +66 -0
- data/tests/unittest/math/math2.md +110 -0
- data/tests/unittest/math/notmath.md +40 -0
- data/tests/unittest/math/table.md +43 -0
- data/tests/unittest/math/table2.md +60 -0
- data/tests/unittest/misc_sw.md +615 -0
- data/tests/unittest/notyet/escape.md +36 -0
- data/tests/unittest/notyet/header_after_par.md +81 -0
- data/tests/unittest/notyet/ticks.md +31 -0
- data/tests/unittest/notyet/triggering.md +206 -0
- data/tests/unittest/olist.md +64 -0
- data/tests/unittest/one.md +28 -0
- data/tests/unittest/paragraph.md +29 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +57 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +39 -0
- data/tests/unittest/paragraphs.md +66 -0
- data/tests/unittest/pending/amps.md +29 -0
- data/tests/unittest/pending/empty_cells.md +53 -0
- data/tests/unittest/pending/link.md +103 -0
- data/tests/unittest/recover/recover_links.md +28 -0
- data/tests/unittest/references/long_example.md +88 -0
- data/tests/unittest/references/spaces_and_numbers.md +28 -0
- data/tests/unittest/smartypants.md +171 -0
- data/tests/unittest/syntax_hl.md +80 -0
- data/tests/unittest/table_attributes.md +52 -0
- data/tests/unittest/test.md +32 -0
- data/tests/unittest/wrapping.md +88 -0
- data/tests/unittest/xml.md +54 -0
- data/tests/unittest/xml2.md +34 -0
- data/tests/unittest/xml3.md +44 -0
- data/tests/unittest/xml_instruction.md +72 -0
- data/tests/utf8-files/simple.md +1 -0
- data/unit_test_block.sh +5 -0
- data/unit_test_span.sh +2 -0
- metadata +243 -0
@@ -0,0 +1,268 @@
|
|
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"],{:level=>3},[]),
|
72
|
+
md_par(["Paragraph with header on two lines:"]),
|
73
|
+
md_el(:header,["header"],{:level=>2},[]),
|
74
|
+
md_par(["Paragraph with html after ", md_html("<div></div>")]),
|
75
|
+
md_par([
|
76
|
+
"Paragraph with html after, indented: ",
|
77
|
+
md_html("<em>Emphasis</em>")
|
78
|
+
]),
|
79
|
+
md_par([
|
80
|
+
"Paragraph with html after, indented: ",
|
81
|
+
md_html("<em>Emphasis</em>"),
|
82
|
+
" ",
|
83
|
+
md_em(["tralla"]),
|
84
|
+
" ",
|
85
|
+
md_html("<em>Emph</em>")
|
86
|
+
]),
|
87
|
+
md_par([
|
88
|
+
"Paragraph with html after, indented: ",
|
89
|
+
md_html("<em>Emphasis *tralla* Emph</em>")
|
90
|
+
])
|
91
|
+
],{},[])
|
92
|
+
*** Output of to_html ***
|
93
|
+
<p>Paragraph, list with no space: * ciao</p>
|
94
|
+
|
95
|
+
<p>Paragraph, list with 1 space: * ciao</p>
|
96
|
+
|
97
|
+
<p>Paragraph, list with 3 space: * ciao</p>
|
98
|
+
|
99
|
+
<p>Paragraph, list with 4 spaces: * ciao</p>
|
100
|
+
|
101
|
+
<p>Paragraph, list with 1 tab: * ciao</p>
|
102
|
+
|
103
|
+
<p>Paragraph (1 space after), list with no space: * ciao</p>
|
104
|
+
|
105
|
+
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
|
106
|
+
|
107
|
+
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
|
108
|
+
|
109
|
+
<p>Paragraph with block quote:</p>
|
110
|
+
|
111
|
+
<blockquote>
|
112
|
+
<p>Quoted</p>
|
113
|
+
</blockquote>
|
114
|
+
|
115
|
+
<p>Paragraph with header:</p>
|
116
|
+
|
117
|
+
<h3 id='header'>header</h3>
|
118
|
+
|
119
|
+
<p>Paragraph with header on two lines:</p>
|
120
|
+
|
121
|
+
<h2 id='header'>header</h2>
|
122
|
+
|
123
|
+
<p>Paragraph with html after <div /></p>
|
124
|
+
|
125
|
+
<p>Paragraph with html after, indented: <em>Emphasis</em></p>
|
126
|
+
|
127
|
+
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
|
128
|
+
|
129
|
+
<p>Paragraph with html after, indented: <em>Emphasis *tralla* Emph</em></p>
|
130
|
+
*** Output of to_latex ***
|
131
|
+
Paragraph, list with no space: * ciao
|
132
|
+
|
133
|
+
Paragraph, list with 1 space: * ciao
|
134
|
+
|
135
|
+
Paragraph, list with 3 space: * ciao
|
136
|
+
|
137
|
+
Paragraph, list with 4 spaces: * ciao
|
138
|
+
|
139
|
+
Paragraph, list with 1 tab: * ciao
|
140
|
+
|
141
|
+
Paragraph (1 space after), list with no space: * ciao
|
142
|
+
|
143
|
+
Paragraph (2 spaces after), list with no space:\newline * ciao
|
144
|
+
|
145
|
+
Paragraph (3 spaces after), list with no space: \newline * ciao
|
146
|
+
|
147
|
+
Paragraph with block quote:
|
148
|
+
|
149
|
+
\begin{quote}%
|
150
|
+
Quoted
|
151
|
+
|
152
|
+
|
153
|
+
\end{quote}
|
154
|
+
Paragraph with header:
|
155
|
+
|
156
|
+
\hypertarget{header}{}\subsubsection*{{header}}\label{header}
|
157
|
+
|
158
|
+
Paragraph with header on two lines:
|
159
|
+
|
160
|
+
\hypertarget{header}{}\subsection*{{header}}\label{header}
|
161
|
+
|
162
|
+
Paragraph with html after
|
163
|
+
|
164
|
+
Paragraph with html after, indented:
|
165
|
+
|
166
|
+
Paragraph with html after, indented: \emph{tralla}
|
167
|
+
|
168
|
+
Paragraph with html after, indented:
|
169
|
+
*** Output of to_md ***
|
170
|
+
Paragraph, list with no space: * ciao
|
171
|
+
|
172
|
+
Paragraph, list with 1 space: * ciao
|
173
|
+
|
174
|
+
Paragraph, list with 3 space: * ciao
|
175
|
+
|
176
|
+
Paragraph, list with 4 spaces: * ciao
|
177
|
+
|
178
|
+
Paragraph, list with 1 tab: * ciao
|
179
|
+
|
180
|
+
Paragraph (1 space after), list with no
|
181
|
+
space: * ciao
|
182
|
+
|
183
|
+
Paragraph (2 spaces after), list with
|
184
|
+
no space:
|
185
|
+
* ciao
|
186
|
+
|
187
|
+
Paragraph (3 spaces after), list with
|
188
|
+
no space:
|
189
|
+
* ciao
|
190
|
+
|
191
|
+
Paragraph with block quote:
|
192
|
+
|
193
|
+
Quoted
|
194
|
+
|
195
|
+
Paragraph with header:
|
196
|
+
|
197
|
+
headerParagraph with header on two lines:
|
198
|
+
|
199
|
+
headerParagraph with html after
|
200
|
+
|
201
|
+
Paragraph with html after, indented:
|
202
|
+
|
203
|
+
Paragraph with html after, indented:
|
204
|
+
tralla
|
205
|
+
|
206
|
+
Paragraph with html after, indented:
|
207
|
+
*** Output of to_s ***
|
208
|
+
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 after Paragraph with html after, indented: Paragraph with html after, indented: tralla Paragraph with html after, indented:
|
209
|
+
*** EOF ***
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
OK!
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
*** Output of Markdown.pl ***
|
218
|
+
<p>Paragraph, list with no space:
|
219
|
+
* ciao</p>
|
220
|
+
|
221
|
+
<p>Paragraph, list with 1 space:
|
222
|
+
* ciao</p>
|
223
|
+
|
224
|
+
<p>Paragraph, list with 3 space:
|
225
|
+
* ciao</p>
|
226
|
+
|
227
|
+
<p>Paragraph, list with 4 spaces:
|
228
|
+
* ciao</p>
|
229
|
+
|
230
|
+
<p>Paragraph, list with 1 tab:
|
231
|
+
* ciao</p>
|
232
|
+
|
233
|
+
<p>Paragraph (1 space after), list with no space:
|
234
|
+
* ciao</p>
|
235
|
+
|
236
|
+
<p>Paragraph (2 spaces after), list with no space: <br />
|
237
|
+
* ciao</p>
|
238
|
+
|
239
|
+
<p>Paragraph (3 spaces after), list with no space: <br />
|
240
|
+
* ciao</p>
|
241
|
+
|
242
|
+
<p>Paragraph with block quote:</p>
|
243
|
+
|
244
|
+
<blockquote>
|
245
|
+
<p>Quoted</p>
|
246
|
+
</blockquote>
|
247
|
+
|
248
|
+
<p>Paragraph with header:</p>
|
249
|
+
|
250
|
+
<h3>header</h3>
|
251
|
+
|
252
|
+
<p>Paragraph with header on two lines:</p>
|
253
|
+
|
254
|
+
<h2>header</h2>
|
255
|
+
|
256
|
+
<p>Paragraph with html after</p>
|
257
|
+
|
258
|
+
<div></div>
|
259
|
+
|
260
|
+
<p>Paragraph with html after, indented:
|
261
|
+
<em>Emphasis</em></p>
|
262
|
+
|
263
|
+
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
|
264
|
+
|
265
|
+
<p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em> Emph</em></p>
|
266
|
+
|
267
|
+
*** Output of Markdown.pl (parsed) ***
|
268
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,324 @@
|
|
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,[md_par(["Uno"])],{:want_my_paragraph=>false},[]),
|
72
|
+
md_el(:li,[
|
73
|
+
md_par(["Due"]),
|
74
|
+
md_el(:ol,[
|
75
|
+
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
|
76
|
+
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
|
77
|
+
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[])
|
78
|
+
],{},[])
|
79
|
+
],{:want_my_paragraph=>true},[]),
|
80
|
+
md_el(:li,[md_par(["Due"])],{:want_my_paragraph=>false},[])
|
81
|
+
],{},[])
|
82
|
+
],{:want_my_paragraph=>true},[]),
|
83
|
+
md_el(:li,[
|
84
|
+
md_par(["Suspendisse id sem consectetuer libero luctus adipiscing."])
|
85
|
+
],{:want_my_paragraph=>false},[])
|
86
|
+
],{},[]),
|
87
|
+
md_par(["Ancora"]),
|
88
|
+
md_el(:ul,[
|
89
|
+
md_el(:li,[
|
90
|
+
md_par(["This is a list item with two paragraphs."]),
|
91
|
+
md_par([
|
92
|
+
"This is the second paragraph in the list item. You",
|
93
|
+
md_entity("rsquo"),
|
94
|
+
"re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
|
95
|
+
])
|
96
|
+
],{:want_my_paragraph=>true},[]),
|
97
|
+
md_el(:li,[md_par(["Another item in the same list."])],{:want_my_paragraph=>false},[])
|
98
|
+
],{},[])
|
99
|
+
],{},[])
|
100
|
+
*** Output of to_html ***
|
101
|
+
<ol>
|
102
|
+
<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>
|
103
|
+
|
104
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
105
|
+
|
106
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
107
|
+
|
108
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
109
|
+
|
110
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
111
|
+
</ol>
|
112
|
+
|
113
|
+
<p>Ancora</p>
|
114
|
+
|
115
|
+
<ol>
|
116
|
+
<li>
|
117
|
+
<p>This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.</p>
|
118
|
+
|
119
|
+
<p>ATTENZIONE!</p>
|
120
|
+
|
121
|
+
<ul>
|
122
|
+
<li>
|
123
|
+
<p>Uno</p>
|
124
|
+
</li>
|
125
|
+
|
126
|
+
<li>
|
127
|
+
<p>Due</p>
|
128
|
+
|
129
|
+
<ol>
|
130
|
+
<li>tre</li>
|
131
|
+
|
132
|
+
<li>tre</li>
|
133
|
+
|
134
|
+
<li>tre</li>
|
135
|
+
</ol>
|
136
|
+
</li>
|
137
|
+
|
138
|
+
<li>
|
139
|
+
<p>Due</p>
|
140
|
+
</li>
|
141
|
+
</ul>
|
142
|
+
</li>
|
143
|
+
|
144
|
+
<li>
|
145
|
+
<p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
|
146
|
+
</li>
|
147
|
+
</ol>
|
148
|
+
|
149
|
+
<p>Ancora</p>
|
150
|
+
|
151
|
+
<ul>
|
152
|
+
<li>
|
153
|
+
<p>This is a list item with two paragraphs.</p>
|
154
|
+
|
155
|
+
<p>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.</p>
|
156
|
+
</li>
|
157
|
+
|
158
|
+
<li>
|
159
|
+
<p>Another item in the same list.</p>
|
160
|
+
</li>
|
161
|
+
</ul>
|
162
|
+
*** Output of to_latex ***
|
163
|
+
\begin{enumerate}%
|
164
|
+
\item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
|
165
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
166
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
167
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
168
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
169
|
+
|
170
|
+
\end{enumerate}
|
171
|
+
Ancora
|
172
|
+
|
173
|
+
\begin{enumerate}%
|
174
|
+
\item This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
175
|
+
|
176
|
+
ATTENZIONE!
|
177
|
+
|
178
|
+
\begin{itemize}%
|
179
|
+
\item Uno
|
180
|
+
|
181
|
+
|
182
|
+
\item Due
|
183
|
+
|
184
|
+
\begin{enumerate}%
|
185
|
+
\item tre
|
186
|
+
\item tre
|
187
|
+
\item tre
|
188
|
+
|
189
|
+
\end{enumerate}
|
190
|
+
|
191
|
+
\item Due
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
\end{itemize}
|
196
|
+
|
197
|
+
\item Suspendisse id sem consectetuer libero luctus adipiscing.
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
\end{enumerate}
|
202
|
+
Ancora
|
203
|
+
|
204
|
+
\begin{itemize}%
|
205
|
+
\item This is a list item with two paragraphs.
|
206
|
+
|
207
|
+
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.
|
208
|
+
|
209
|
+
|
210
|
+
\item Another item in the same list.
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
\end{itemize}
|
215
|
+
*** Output of to_md ***
|
216
|
+
1. Lorem ipsum dolor sit amet,
|
217
|
+
consectetuer adipiscing elit.
|
218
|
+
Aliquam hendrerit mi posuere
|
219
|
+
lectus. Vestibulum enim wisi,
|
220
|
+
viverra nec, fringilla in, laoreet
|
221
|
+
vitae, risus.
|
222
|
+
2. Donec sit amet nisl. Aliquam semper
|
223
|
+
ipsum sit amet velit. Suspendisse
|
224
|
+
id sem consectetuer libero luctus
|
225
|
+
adipiscing.
|
226
|
+
3. Donec sit amet nisl. Aliquam semper
|
227
|
+
ipsum sit amet velit. Suspendisse
|
228
|
+
id sem consectetuer libero luctus
|
229
|
+
adipiscing.
|
230
|
+
4. Donec sit amet nisl. Aliquam semper
|
231
|
+
ipsum sit amet velit. Suspendisse
|
232
|
+
id sem consectetuer libero luctus
|
233
|
+
adipiscing.
|
234
|
+
5. Donec sit amet nisl. Aliquam semper
|
235
|
+
ipsum sit amet velit. Suspendisse
|
236
|
+
id sem consectetuer libero luctus
|
237
|
+
adipiscing.
|
238
|
+
|
239
|
+
Ancora
|
240
|
+
|
241
|
+
1.
|
242
|
+
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
243
|
+
ATTENZIONE!
|
244
|
+
Uno
|
245
|
+
|
246
|
+
Due
|
247
|
+
|
248
|
+
1. tre
|
249
|
+
2. tre
|
250
|
+
3. tre
|
251
|
+
|
252
|
+
Due
|
253
|
+
2.
|
254
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.
|
255
|
+
|
256
|
+
Ancora
|
257
|
+
|
258
|
+
-This is a list item with two paragraphs.
|
259
|
+
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.
|
260
|
+
-nother item in the same list.
|
261
|
+
*** Output of to_s ***
|
262
|
+
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 adipiscing.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 adipiscing.AncoraThis is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.ATTENZIONE!UnoDuetretretreDueSuspendisse id sem consectetuer libero luctus adipiscing.AncoraThis 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.Another item in the same list.
|
263
|
+
*** EOF ***
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
OK!
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
*** Output of Markdown.pl ***
|
272
|
+
<ol>
|
273
|
+
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
274
|
+
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
|
275
|
+
viverra nec, fringilla in, laoreet vitae, risus.
|
276
|
+
<ol>
|
277
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
278
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
279
|
+
</ol></li>
|
280
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
281
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.
|
282
|
+
<ol>
|
283
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
284
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
285
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
286
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
287
|
+
</ol></li>
|
288
|
+
</ol>
|
289
|
+
|
290
|
+
<p>Ancora</p>
|
291
|
+
|
292
|
+
<ol>
|
293
|
+
<li><p>This is a list item with two paragraphs. Lorem ipsum dolor
|
294
|
+
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
|
295
|
+
mi posuere lectus.</p>
|
296
|
+
|
297
|
+
<p>ATTENZIONE!</p>
|
298
|
+
|
299
|
+
<ul>
|
300
|
+
<li>Uno</li>
|
301
|
+
<li>Due
|
302
|
+
<ol>
|
303
|
+
<li>tre</li>
|
304
|
+
<li>tre</li>
|
305
|
+
<li>tre</li>
|
306
|
+
</ol></li>
|
307
|
+
<li>Due</li>
|
308
|
+
</ul></li>
|
309
|
+
<li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p></li>
|
310
|
+
</ol>
|
311
|
+
|
312
|
+
<p>Ancora</p>
|
313
|
+
|
314
|
+
<ul>
|
315
|
+
<li><p>This is a list item with two paragraphs.</p>
|
316
|
+
|
317
|
+
<p>This is the second paragraph in the list item. You're
|
318
|
+
only required to indent the first line. Lorem ipsum dolor
|
319
|
+
sit amet, consectetuer adipiscing elit.</p></li>
|
320
|
+
<li><p>Another item in the same list.</p></li>
|
321
|
+
</ul>
|
322
|
+
|
323
|
+
*** Output of Markdown.pl (parsed) ***
|
324
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|