maruku 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/{maruku0.3 → marudown} +6 -14
- data/bin/maruku +1 -1
- data/bin/marutest +37 -9
- data/docs/TOFIX.html +22 -0
- data/docs/TOFIX.md +3 -0
- data/docs/changelog-0.2.13.html +30 -0
- data/docs/changelog-0.2.13.md +6 -0
- data/docs/changelog-0.3.html +19 -5
- data/docs/faq.html +51 -40
- data/docs/faq.md +3 -3
- data/docs/hidden_o_n_squared.md +10 -0
- data/docs/index.html +84 -396
- data/docs/markdown_syntax.html +139 -330
- data/docs/markdown_syntax.md +80 -93
- data/docs/maruku.html +84 -396
- data/docs/maruku.md +88 -158
- data/docs/proposal.html +13 -106
- data/docs/proposal.md +3 -3
- data/docs/todo.html +38 -28
- data/lib/maruku.rb +77 -11
- data/lib/maruku/attributes.rb +186 -0
- data/lib/maruku/defaults.rb +40 -0
- data/lib/maruku/errors_management.rb +55 -39
- data/lib/maruku/helpers.rb +156 -72
- data/lib/maruku/input/charsource.rb +319 -0
- data/lib/maruku/{html_helper.rb → input/html_helper.rb} +30 -9
- data/lib/maruku/input/linesource.rb +111 -0
- data/lib/maruku/input/parse_block.rb +562 -0
- data/lib/maruku/{parse_doc.rb → input/parse_doc.rb} +60 -28
- data/lib/maruku/{parse_span_better.rb → input/parse_span_better.rb} +226 -256
- data/lib/maruku/input/type_detection.rb +137 -0
- data/lib/maruku/maruku.rb +33 -0
- data/lib/maruku/{to_html.rb → output/to_html.rb} +151 -132
- data/lib/maruku/{to_latex.rb → output/to_latex.rb} +31 -35
- data/lib/maruku/{to_latex_entities.rb → output/to_latex_entities.rb} +25 -3
- data/lib/maruku/output/to_latex_strings.rb +64 -0
- data/lib/maruku/output/to_markdown.rb +164 -0
- data/lib/maruku/{to_s.rb → output/to_s.rb} +6 -0
- data/lib/maruku/string_utils.rb +12 -181
- data/lib/maruku/structures.rb +91 -67
- data/lib/maruku/structures_inspect.rb +78 -0
- data/lib/maruku/structures_iterators.rb +24 -2
- data/lib/maruku/tests/benchmark.rb +41 -9
- data/lib/maruku/tests/new_parser.rb +317 -286
- data/lib/maruku/tests/tests.rb +20 -0
- data/lib/maruku/toc.rb +64 -64
- data/lib/maruku/usage/example1.rb +33 -0
- data/lib/maruku/version.rb +8 -2
- data/tests/unittest/abbreviations.md +27 -16
- data/tests/unittest/attributes/attributes.md +89 -0
- data/tests/unittest/attributes/circular.md +51 -0
- data/tests/unittest/attributes/default.md +47 -0
- data/tests/unittest/blank.md +10 -6
- data/tests/unittest/blanks_in_code.md +26 -26
- data/tests/unittest/code.md +9 -9
- data/tests/unittest/code2.md +12 -13
- data/tests/unittest/code3.md +34 -34
- data/tests/unittest/easy.md +9 -7
- data/tests/unittest/email.md +9 -7
- data/tests/unittest/encoding/iso-8859-1.md +41 -4
- data/tests/unittest/encoding/utf-8.md +6 -5
- data/tests/unittest/entities.md +52 -80
- data/tests/unittest/escaping.md +47 -35
- data/tests/unittest/extra_dl.md +19 -29
- data/tests/unittest/extra_header_id.md +31 -24
- data/tests/unittest/extra_table1.md +14 -32
- data/tests/unittest/footnotes.md +58 -42
- data/tests/unittest/headers.md +11 -11
- data/tests/unittest/hrule.md +14 -24
- data/tests/unittest/images.md +41 -26
- data/tests/unittest/inline_html.md +104 -56
- data/tests/unittest/inline_html2.md +38 -0
- data/tests/unittest/links.md +74 -33
- data/tests/unittest/list1.md +18 -15
- data/tests/unittest/list2.md +31 -13
- data/tests/unittest/list3.md +29 -28
- data/tests/unittest/list4.md +103 -12
- data/tests/unittest/lists.md +86 -53
- data/tests/unittest/lists6.md +53 -0
- data/tests/unittest/lists7.md +31 -0
- data/tests/unittest/lists_after_paragraph.md +105 -71
- data/tests/unittest/lists_ol.md +149 -73
- data/tests/unittest/misc_sw.md +366 -326
- data/tests/unittest/notyet/escape.md +10 -10
- data/tests/unittest/notyet/header_after_par.md +20 -14
- data/tests/unittest/notyet/ticks.md +8 -35
- data/tests/unittest/notyet/triggering.md +72 -45
- data/tests/unittest/olist.md +78 -0
- data/tests/unittest/one.md +5 -3
- data/tests/unittest/paragraph.md +5 -3
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +15 -9
- data/tests/unittest/paragraph_rules/tab_is_blank.md +9 -5
- data/tests/unittest/paragraphs.md +21 -26
- data/tests/unittest/recover/recover_links.md +6 -5
- data/tests/unittest/references/long_example.md +39 -30
- data/tests/unittest/references/spaces_and_numbers.md +2 -2
- data/tests/unittest/syntax_hl.md +33 -31
- data/tests/unittest/test.md +4 -6
- data/tests/unittest/wrapping.md +43 -26
- metadata +160 -139
- data/docs/markdown_extra2.html +0 -87
- data/docs/markdown_extra2.md +0 -83
- data/docs/markdown_syntax_2.html +0 -152
- data/lib/maruku/parse_block.rb +0 -564
- data/lib/maruku/parse_span.rb +0 -451
- data/lib/maruku/to_latex_strings.rb +0 -59
- data/lib/maruku/to_markdown.rb +0 -110
- data/lib/test.rb +0 -29
data/tests/unittest/lists.md
CHANGED
@@ -39,43 +39,43 @@ md_el(:document,[
|
|
39
39
|
md_el(:ul,[
|
40
40
|
md_el(:li_span,[
|
41
41
|
"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus."
|
42
|
-
]
|
43
|
-
|
42
|
+
],{:want_my_paragraph=>false},[]),
|
43
|
+
md_el(:li_span,[
|
44
44
|
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
|
45
|
-
]
|
46
|
-
|
45
|
+
],{:want_my_paragraph=>false},[]),
|
46
|
+
md_el(:li_span,[
|
47
47
|
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing"
|
48
|
-
]
|
49
|
-
|
48
|
+
],{:want_my_paragraph=>false},[]),
|
49
|
+
md_el(:li_span,[
|
50
50
|
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing"
|
51
|
-
]
|
52
|
-
|
51
|
+
],{:want_my_paragraph=>false},[]),
|
52
|
+
md_el(:li_span,[
|
53
53
|
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
|
54
|
-
]
|
55
|
-
]
|
56
|
-
|
57
|
-
|
54
|
+
],{:want_my_paragraph=>false},[])
|
55
|
+
],{},[]),
|
56
|
+
md_par(["Ancora"]),
|
57
|
+
md_el(:ul,[
|
58
58
|
md_el(:li,[
|
59
59
|
md_par([
|
60
60
|
"This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus."
|
61
61
|
]),
|
62
|
-
|
63
|
-
]
|
64
|
-
|
62
|
+
md_par(["ATTENZIONE!"])
|
63
|
+
],{:want_my_paragraph=>true},[]),
|
64
|
+
md_el(:li,[
|
65
65
|
md_par(["Suspendisse id sem consectetuer libero luctus adipiscing."])
|
66
|
-
]
|
67
|
-
]
|
68
|
-
|
69
|
-
|
66
|
+
],{:want_my_paragraph=>false},[])
|
67
|
+
],{},[]),
|
68
|
+
md_par(["Ancora"]),
|
69
|
+
md_el(:ul,[
|
70
70
|
md_el(:li,[
|
71
71
|
md_par(["This is a list item with two paragraphs."]),
|
72
|
-
|
72
|
+
md_par([
|
73
73
|
"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"
|
74
74
|
])
|
75
|
-
]
|
76
|
-
|
77
|
-
]
|
78
|
-
]
|
75
|
+
],{:want_my_paragraph=>true},[]),
|
76
|
+
md_el(:li,[md_par(["Another item in the same list."])],{:want_my_paragraph=>false},[])
|
77
|
+
],{},[])
|
78
|
+
],{},[])
|
79
79
|
*** Output of to_html ***
|
80
80
|
|
81
81
|
<ul>
|
@@ -154,8 +154,43 @@ This is the second paragraph in the list item. You're only required to indent th
|
|
154
154
|
|
155
155
|
\end{itemize}
|
156
156
|
|
157
|
-
*** Output of
|
158
|
-
|
157
|
+
*** Output of to_md ***
|
158
|
+
-orem ipsum dolor sit amet,
|
159
|
+
consectetuer adipiscing elit.
|
160
|
+
Aliquam hendrerit mi posuere
|
161
|
+
lectus. Vestibulum enim wisi,
|
162
|
+
viverra nec, fringilla in, laoreet
|
163
|
+
vitae, risus.
|
164
|
+
-onec sit amet nisl. Aliquam semper
|
165
|
+
ipsum sit amet velit. Suspendisse
|
166
|
+
id sem consectetuer libero luctus
|
167
|
+
adipiscing.
|
168
|
+
-onec sit amet nisl. Aliquam semper
|
169
|
+
ipsum sit amet velit. Suspendisse
|
170
|
+
id sem consectetuer libero luctus
|
171
|
+
adipiscing
|
172
|
+
-onec sit amet nisl. Aliquam semper
|
173
|
+
ipsum sit amet velit. Suspendisse
|
174
|
+
id sem consectetuer libero luctus
|
175
|
+
adipiscing
|
176
|
+
-onec sit amet nisl. Aliquam semper
|
177
|
+
ipsum sit amet velit. Suspendisse
|
178
|
+
id sem consectetuer libero luctus
|
179
|
+
adipiscing.
|
180
|
+
|
181
|
+
Ancora
|
182
|
+
|
183
|
+
-This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
184
|
+
ATTENZIONE!
|
185
|
+
-Suspendisse id sem consectetuer libero luctus adipiscing.
|
186
|
+
|
187
|
+
Ancora
|
188
|
+
|
189
|
+
-This is a list item with two paragraphs.
|
190
|
+
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
|
191
|
+
-nother item in the same list.
|
192
|
+
|
193
|
+
|
159
194
|
*** Output of to_s ***
|
160
195
|
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!Suspendisse 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.
|
161
196
|
*** EOF ***
|
@@ -210,53 +245,51 @@ sit amet, consectetuer adipiscing elit.</p></li>
|
|
210
245
|
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
211
246
|
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
|
212
247
|
viverra nec, fringilla in, laoreet vitae, risus.</li
|
213
|
-
|
248
|
+
>
|
214
249
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
215
250
|
Suspendisse id sem consectetuer libero luctus adipiscing.</li
|
216
|
-
|
251
|
+
>
|
217
252
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
218
253
|
Suspendisse id sem consectetuer libero luctus adipiscing.
|
219
254
|
<ul>
|
220
255
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
221
256
|
Suspendisse id sem consectetuer libero luctus adipiscing.</li
|
222
|
-
|
257
|
+
>
|
223
258
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
224
259
|
Suspendisse id sem consectetuer libero luctus adipiscing.</li
|
225
|
-
|
260
|
+
>
|
226
261
|
</ul
|
227
|
-
|
228
|
-
|
262
|
+
></li
|
263
|
+
>
|
229
264
|
</ul
|
230
|
-
|
231
|
-
|
265
|
+
><p>Ancora</p
|
266
|
+
><ul>
|
232
267
|
<li
|
233
|
-
|
268
|
+
><p>This is a list item with two paragraphs. Lorem ipsum dolor
|
234
269
|
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
|
235
270
|
mi posuere lectus.</p
|
236
|
-
|
237
|
-
|
271
|
+
>
|
238
272
|
<p>ATTENZIONE!</p
|
239
|
-
|
240
|
-
|
273
|
+
></li
|
274
|
+
>
|
241
275
|
<li
|
242
|
-
|
243
|
-
|
244
|
-
|
276
|
+
><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p
|
277
|
+
></li
|
278
|
+
>
|
245
279
|
</ul
|
246
|
-
|
247
|
-
|
280
|
+
><p>Ancora</p
|
281
|
+
><ul>
|
248
282
|
<li
|
249
|
-
|
250
|
-
|
251
|
-
|
283
|
+
><p>This is a list item with two paragraphs.</p
|
284
|
+
>
|
252
285
|
<p>This is the second paragraph in the list item. You're
|
253
286
|
only required to indent the first line. Lorem ipsum dolor
|
254
287
|
sit amet, consectetuer adipiscing elit.</p
|
255
|
-
|
256
|
-
|
288
|
+
></li
|
289
|
+
>
|
257
290
|
<li
|
258
|
-
|
259
|
-
|
260
|
-
|
291
|
+
><p>Another item in the same list.</p
|
292
|
+
></li
|
293
|
+
>
|
261
294
|
</ul
|
262
|
-
|
295
|
+
>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
## Nested
|
2
|
+
|
3
|
+
* Tab
|
4
|
+
* Tab
|
5
|
+
* Tab
|
6
|
+
|
7
|
+
Here's another:
|
8
|
+
|
9
|
+
1. First
|
10
|
+
2. Second:
|
11
|
+
* Fee
|
12
|
+
* Fie
|
13
|
+
* Foe
|
14
|
+
3. Third
|
15
|
+
|
16
|
+
Same thing but with paragraphs:
|
17
|
+
|
18
|
+
1. First
|
19
|
+
|
20
|
+
2. Second:
|
21
|
+
* Fee
|
22
|
+
* Fie
|
23
|
+
* Foe
|
24
|
+
|
25
|
+
3. Third
|
26
|
+
|
27
|
+
|
28
|
+
*** Parameters: ***
|
29
|
+
{}
|
30
|
+
*** Markdown input: ***
|
31
|
+
|
32
|
+
*** Output of inspect ***
|
33
|
+
md_el(:document,[],{},[])
|
34
|
+
*** Output of to_html ***
|
35
|
+
|
36
|
+
*** Output of to_latex ***
|
37
|
+
|
38
|
+
*** Output of to_md ***
|
39
|
+
|
40
|
+
*** Output of to_s ***
|
41
|
+
|
42
|
+
*** EOF ***
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
OK!
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
*** Output of Markdown.pl ***
|
51
|
+
|
52
|
+
|
53
|
+
*** Output of Markdown.pl (parsed) ***
|
@@ -0,0 +1,31 @@
|
|
1
|
+
* Tab
|
2
|
+
* Tab
|
3
|
+
* Tab
|
4
|
+
|
5
|
+
|
6
|
+
*** Parameters: ***
|
7
|
+
{}
|
8
|
+
*** Markdown input: ***
|
9
|
+
|
10
|
+
*** Output of inspect ***
|
11
|
+
md_el(:document,[],{},[])
|
12
|
+
*** Output of to_html ***
|
13
|
+
|
14
|
+
*** Output of to_latex ***
|
15
|
+
|
16
|
+
*** Output of to_md ***
|
17
|
+
|
18
|
+
*** Output of to_s ***
|
19
|
+
|
20
|
+
*** EOF ***
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
OK!
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
*** Output of Markdown.pl ***
|
29
|
+
|
30
|
+
|
31
|
+
*** Output of Markdown.pl (parsed) ***
|
@@ -50,46 +50,46 @@ Paragraph with html after, indented: <em>Emphasis *tralla* Emph</em>
|
|
50
50
|
*** Output of inspect ***
|
51
51
|
md_el(:document,[
|
52
52
|
md_par(["Paragraph, list with no space: * ciao"]),
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
59
|
"Paragraph (2 spaces after), list with no space:",
|
60
|
-
|
61
|
-
|
60
|
+
md_el(:linebreak,[],{},[]),
|
61
|
+
"* ciao"
|
62
62
|
]),
|
63
|
-
|
63
|
+
md_par([
|
64
64
|
"Paragraph (3 spaces after), list with no space: ",
|
65
|
-
|
66
|
-
|
65
|
+
md_el(:linebreak,[],{},[]),
|
66
|
+
"* ciao"
|
67
67
|
]),
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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"]),
|
75
|
+
md_html("<div></div>"),
|
76
|
+
md_par([
|
77
77
|
"Paragraph with html after, indented: ",
|
78
|
-
|
78
|
+
md_html("<em>Emphasis</em>")
|
79
79
|
]),
|
80
|
-
|
80
|
+
md_par([
|
81
81
|
"Paragraph with html after, indented: ",
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
82
|
+
md_html("<em>Emphasis</em>"),
|
83
|
+
" ",
|
84
|
+
md_em(["tralla"]),
|
85
|
+
" ",
|
86
|
+
md_html("<em>Emph</em>")
|
87
87
|
]),
|
88
|
-
|
88
|
+
md_par([
|
89
89
|
"Paragraph with html after, indented: ",
|
90
|
-
|
90
|
+
md_html("<em>Emphasis *tralla* Emph</em>")
|
91
91
|
])
|
92
|
-
]
|
92
|
+
],{},[])
|
93
93
|
*** Output of to_html ***
|
94
94
|
|
95
95
|
<p>Paragraph, list with no space: * ciao</p>
|
@@ -104,11 +104,9 @@ md_el(:document,[
|
|
104
104
|
|
105
105
|
<p>Paragraph (1 space after), list with no space: * ciao</p>
|
106
106
|
|
107
|
-
<p>Paragraph (2 spaces after), list with no space:<br
|
108
|
-
* ciao</p>
|
107
|
+
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
|
109
108
|
|
110
|
-
<p>Paragraph (3 spaces after), list with no space: <br
|
111
|
-
* ciao</p>
|
109
|
+
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
|
112
110
|
|
113
111
|
<p>Paragraph with block quote:</p>
|
114
112
|
|
@@ -125,9 +123,7 @@ md_el(:document,[
|
|
125
123
|
<h2 id='header'>header</h2>
|
126
124
|
|
127
125
|
<p>Paragraph with html after</p>
|
128
|
-
|
129
126
|
<div />
|
130
|
-
|
131
127
|
<p>Paragraph with html after, indented: <em>Emphasis</em></p>
|
132
128
|
|
133
129
|
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
|
@@ -175,8 +171,46 @@ Paragraph with html after, indented: {\bf Raw HTML removed in latex version } {\
|
|
175
171
|
Paragraph with html after, indented: {\bf Raw HTML removed in latex version }
|
176
172
|
|
177
173
|
|
178
|
-
*** Output of
|
179
|
-
Paragraph, list with no space: *
|
174
|
+
*** Output of to_md ***
|
175
|
+
Paragraph, list with no space: * ciao
|
176
|
+
|
177
|
+
Paragraph, list with 1 space: * ciao
|
178
|
+
|
179
|
+
Paragraph, list with 3 space: * ciao
|
180
|
+
|
181
|
+
Paragraph, list with 4 spaces: * ciao
|
182
|
+
|
183
|
+
Paragraph, list with 1 tab: * ciao
|
184
|
+
|
185
|
+
Paragraph (1 space after), list with no
|
186
|
+
space: * ciao
|
187
|
+
|
188
|
+
Paragraph (2 spaces after), list with
|
189
|
+
no space:
|
190
|
+
* ciao
|
191
|
+
|
192
|
+
Paragraph (3 spaces after), list with
|
193
|
+
no space:
|
194
|
+
* ciao
|
195
|
+
|
196
|
+
Paragraph with block quote:
|
197
|
+
|
198
|
+
Quoted
|
199
|
+
|
200
|
+
Paragraph with header:
|
201
|
+
|
202
|
+
headerParagraph with header on two lines:
|
203
|
+
|
204
|
+
headerParagraph with html after
|
205
|
+
|
206
|
+
Paragraph with html after, indented:
|
207
|
+
|
208
|
+
Paragraph with html after, indented:
|
209
|
+
tralla
|
210
|
+
|
211
|
+
Paragraph with html after, indented:
|
212
|
+
|
213
|
+
|
180
214
|
*** Output of to_s ***
|
181
215
|
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
216
|
*** EOF ***
|
@@ -240,41 +274,41 @@ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagra
|
|
240
274
|
*** Output of Markdown.pl (parsed) ***
|
241
275
|
<p>Paragraph, list with no space:
|
242
276
|
* ciao</p
|
243
|
-
|
277
|
+
><p>Paragraph, list with 1 space:
|
278
|
+
* ciao</p
|
279
|
+
><p>Paragraph, list with 3 space:
|
280
|
+
* ciao</p
|
281
|
+
><p>Paragraph, list with 4 spaces:
|
282
|
+
* ciao</p
|
283
|
+
><p>Paragraph, list with 1 tab:
|
244
284
|
* ciao</p
|
245
|
-
|
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:
|
285
|
+
><p>Paragraph (1 space after), list with no space:
|
252
286
|
* ciao</p
|
253
|
-
|
254
|
-
|
287
|
+
><p>Paragraph (2 spaces after), list with no space: <br
|
288
|
+
/>
|
255
289
|
* ciao</p
|
256
|
-
|
257
|
-
|
290
|
+
><p>Paragraph (3 spaces after), list with no space: <br
|
291
|
+
/>
|
258
292
|
* ciao</p
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
293
|
+
><p>Paragraph with block quote:</p
|
294
|
+
><blockquote>
|
295
|
+
<p>Quoted</p
|
296
|
+
>
|
263
297
|
</blockquote
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
298
|
+
><p>Paragraph with header:</p
|
299
|
+
><h3>header</h3
|
300
|
+
><p>Paragraph with header on two lines:</p
|
301
|
+
><h2>header</h2
|
302
|
+
><p>Paragraph with html after</p
|
303
|
+
><div
|
304
|
+
/><p>Paragraph with html after, indented:
|
305
|
+
<em>Emphasis</em
|
306
|
+
></p
|
307
|
+
><p>Paragraph with html after, indented: <em>Emphasis</em
|
308
|
+
><em>tralla</em
|
309
|
+
><em>Emph</em
|
310
|
+
></p
|
311
|
+
><p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em
|
312
|
+
> Emph</em
|
313
|
+
></p
|
314
|
+
>
|