maruku 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/maruku +74 -22
- data/bin/marutest +15 -3
- data/docs/{changelog-0.3.md → changelog.md} +47 -18
- data/docs/entity_test.html +253 -0
- data/docs/entity_test.md +21 -0
- data/docs/index.html +124 -31
- data/docs/markdown_syntax.html +46 -46
- data/docs/maruku.html +124 -31
- data/docs/maruku.md +47 -9
- data/docs/proposal.html +4 -4
- data/lib/maruku.rb +1 -0
- data/lib/maruku/defaults.rb +1 -1
- data/lib/maruku/helpers.rb +4 -4
- data/lib/maruku/input/parse_block.rb +39 -33
- data/lib/maruku/input/parse_doc.rb +57 -3
- data/lib/maruku/input/parse_span_better.rb +28 -8
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +1 -0
- data/lib/maruku/output/to_html.rb +46 -47
- data/lib/maruku/output/to_latex.rb +166 -45
- data/lib/maruku/output/to_latex_entities.rb +75 -43
- data/lib/maruku/string_utils.rb +21 -19
- data/lib/maruku/structures.rb +21 -12
- data/lib/maruku/structures_inspect.rb +12 -3
- data/lib/maruku/tests/new_parser.rb +2 -1
- data/lib/maruku/version.rb +1 -1
- data/tests/unittest/abbreviations.md +8 -8
- data/tests/unittest/attributes/attributes.md +10 -10
- data/tests/unittest/attributes/circular.md +4 -4
- data/tests/unittest/attributes/default.md +3 -3
- data/tests/unittest/blank.md +2 -2
- data/tests/unittest/blanks_in_code.md +12 -12
- data/tests/unittest/code.md +4 -4
- data/tests/unittest/code2.md +7 -6
- data/tests/unittest/code3.md +16 -16
- data/tests/unittest/easy.md +4 -4
- data/tests/unittest/email.md +4 -4
- data/tests/unittest/encoding/iso-8859-1.md +2 -2
- data/tests/unittest/encoding/utf-8.md +2 -2
- data/tests/unittest/entities.md +20 -20
- data/tests/unittest/escaping.md +16 -16
- data/tests/unittest/extra_dl.md +17 -7
- data/tests/unittest/extra_header_id.md +11 -11
- data/tests/unittest/extra_table1.md +4 -4
- data/tests/unittest/footnotes.md +38 -28
- data/tests/unittest/headers.md +6 -6
- data/tests/unittest/hrule.md +6 -6
- data/tests/unittest/images.md +18 -16
- data/tests/unittest/inline_html.md +7 -29
- data/tests/unittest/inline_html2.md +3 -3
- data/tests/unittest/links.md +7 -27
- data/tests/unittest/list1.md +9 -8
- data/tests/unittest/list2.md +15 -12
- data/tests/unittest/list3.md +16 -14
- data/tests/unittest/list4.md +4 -4
- data/tests/unittest/lists.md +33 -29
- data/tests/unittest/lists_after_paragraph.md +36 -36
- data/tests/unittest/lists_ol.md +43 -38
- data/tests/unittest/misc_sw.md +172 -156
- data/tests/unittest/notyet/escape.md +8 -8
- data/tests/unittest/notyet/header_after_par.md +6 -6
- data/tests/unittest/notyet/ticks.md +4 -4
- data/tests/unittest/notyet/triggering.md +21 -21
- data/tests/unittest/olist.md +5 -5
- data/tests/unittest/one.md +1 -1
- data/tests/unittest/paragraph.md +1 -1
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +1 -1
- data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -2
- data/tests/unittest/paragraphs.md +5 -5
- data/tests/unittest/recover/recover_links.md +2 -2
- data/tests/unittest/references/long_example.md +27 -19
- data/tests/unittest/smartypants.md +148 -0
- data/tests/unittest/syntax_hl.md +14 -14
- data/tests/unittest/test.md +2 -2
- data/tests/unittest/wrapping.md +8 -8
- data/tests/unittest/xml_instruction.md +82 -0
- metadata +149 -160
- data/docs/TOFIX.html +0 -22
- data/docs/TOFIX.md +0 -3
- data/docs/changelog-0.2.13.html +0 -30
- data/docs/changelog-0.2.13.md +0 -6
- data/docs/changelog-0.3.html +0 -113
- data/docs/faq.html +0 -57
- data/docs/faq.md +0 -32
- data/docs/hidden_o_n_squared.md +0 -10
- data/docs/todo.html +0 -40
- data/docs/todo.md +0 -9
@@ -88,9 +88,7 @@ md_el(:document,[
|
|
88
88
|
<p>Result alone:</p>
|
89
89
|
<img src='http://jigsaw.w3.org/css-validator/images/vcss' />
|
90
90
|
<p>Without closing:</p>
|
91
|
-
<img src='http://jigsaw.w3.org/css-validator/images/vcss' /><div>
|
92
|
-
<p>This is <em>true</em> markdown text (paragraph)</p>
|
93
|
-
<p>This is <em>true</em> markdown text (no paragraph)</p><p>
|
91
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' /><div><p>This is <em>true</em> markdown text (paragraph)</p><p>This is <em>true</em> markdown text (no paragraph)</p><p>
|
94
92
|
<p>This is <em>true</em> markdown text (block paragraph)</p>
|
95
93
|
</p></div><table>
|
96
94
|
<tr>
|
@@ -112,21 +110,21 @@ Input:
|
|
112
110
|
|
113
111
|
\begin{verbatim}<em>Emphasis</em>
|
114
112
|
\end{verbatim}
|
115
|
-
Result:
|
113
|
+
Result:
|
116
114
|
|
117
115
|
Input:
|
118
116
|
|
119
117
|
\begin{verbatim}<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
120
118
|
\end{verbatim}
|
121
|
-
Result on span:
|
119
|
+
Result on span:
|
122
120
|
|
123
121
|
Result alone:
|
124
122
|
|
125
|
-
|
123
|
+
Without closing:
|
124
|
+
|
125
|
+
The following is invalid HTML, and will generate an error:
|
126
126
|
|
127
|
-
{\bf Raw HTML removed in latex version }{\bf Raw HTML removed in latex version }{\bf Raw HTML removed in latex version }The following is invalid HTML, and will generate an error:
|
128
127
|
|
129
|
-
{\bf Raw HTML removed in latex version }{\bf Raw HTML removed in latex version }
|
130
128
|
*** Output of to_md ***
|
131
129
|
Input:
|
132
130
|
|
@@ -206,27 +204,7 @@ Input:Result: Input:Result on span: Result alone:Without closing:The following i
|
|
206
204
|
</table>
|
207
205
|
|
208
206
|
*** Output of Markdown.pl (parsed) ***
|
209
|
-
Error: #<REXML::ParseException:
|
210
|
-
Line:
|
211
|
-
Position:
|
212
|
-
Last 80 unconsumed characters:
|
213
|
-
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow>
|
214
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:315:in `pull'
|
215
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
|
216
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/document.rb:190:in `build'
|
217
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
|
218
|
-
bin/marutest:171:in `new'
|
219
|
-
bin/marutest:171:in `run_test'
|
220
|
-
bin/marutest:235:in `marutest'
|
221
|
-
bin/marutest:233:in `each'
|
222
|
-
bin/marutest:233:in `marutest'
|
223
|
-
bin/marutest:303
|
224
|
-
...
|
225
|
-
Missing end tag for 'img' (got "p")
|
226
|
-
Line:
|
227
|
-
Position:
|
228
|
-
Last 80 unconsumed characters:
|
229
|
-
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow
|
207
|
+
Error: #<REXML::ParseException: Missing end tag for 'img' (got "p")
|
230
208
|
Line:
|
231
209
|
Position:
|
232
210
|
Last 80 unconsumed characters:
|
@@ -14,7 +14,7 @@ md_el(:document,[
|
|
14
14
|
<p>Test <strong>bold</strong></p>
|
15
15
|
</div><p>Test <strong>bold</strong></p>
|
16
16
|
*** Output of to_latex ***
|
17
|
-
|
17
|
+
|
18
18
|
*** Output of to_md ***
|
19
19
|
|
20
20
|
*** Output of to_s ***
|
@@ -34,5 +34,5 @@ md_el(:document,[
|
|
34
34
|
|
35
35
|
*** Output of Markdown.pl (parsed) ***
|
36
36
|
<div markdown='1'>Test **bold**</div
|
37
|
-
|
38
|
-
|
37
|
+
><p markdown='1'>Test **bold**</p
|
38
|
+
>
|
data/tests/unittest/links.md
CHANGED
@@ -107,15 +107,15 @@ Search on \href{http://www.google.com}{Google}
|
|
107
107
|
|
108
108
|
Search on \href{http://images.google.com}{Google images}
|
109
109
|
|
110
|
-
Inline:
|
110
|
+
Inline: \href{http://google.com}{Google images}
|
111
111
|
|
112
|
-
Inline with title:
|
112
|
+
Inline with title: \href{http://google.com}{Google images}
|
113
113
|
|
114
|
-
Inline with title:
|
114
|
+
Inline with title: \href{http://google.com}{Google images}
|
115
115
|
|
116
|
-
Search on
|
116
|
+
Search on or or ask \href{mailto:bill@google.com}{\char98\char105\char108\char108\char64\char103\char111\char111\char103\char108\char101\char46\char99\char111\char109} or you might ask bill@google.com.
|
117
117
|
|
118
|
-
If all else fails, ask
|
118
|
+
If all else fails, ask \href{http://www.google.com}{Google}
|
119
119
|
|
120
120
|
|
121
121
|
*** Output of to_md ***
|
@@ -168,7 +168,7 @@ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google
|
|
168
168
|
|
169
169
|
<p>Inline with title: <a href="http://google.com "Title"">Google images</a></p>
|
170
170
|
|
171
|
-
<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="m&#
|
171
|
+
<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">bill@google.com</a>
|
172
172
|
or you might ask bill@google.com.</p>
|
173
173
|
|
174
174
|
<p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
|
@@ -176,27 +176,7 @@ or you might ask bill@google.com.</p>
|
|
176
176
|
<p>[google2]: http://www.google.com 'Single quotes'</p>
|
177
177
|
|
178
178
|
*** Output of Markdown.pl (parsed) ***
|
179
|
-
Error: #<REXML::ParseException:
|
180
|
-
Line:
|
181
|
-
Position:
|
182
|
-
Last 80 unconsumed characters:
|
183
|
-
>
|
184
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:315:in `pull'
|
185
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
|
186
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/document.rb:190:in `build'
|
187
|
-
/Volumes/Alter/Ruby/local/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
|
188
|
-
bin/marutest:171:in `new'
|
189
|
-
bin/marutest:171:in `run_test'
|
190
|
-
bin/marutest:235:in `marutest'
|
191
|
-
bin/marutest:233:in `each'
|
192
|
-
bin/marutest:233:in `marutest'
|
193
|
-
bin/marutest:303
|
194
|
-
...
|
195
|
-
Missing end tag for 'p' (got "div")
|
196
|
-
Line:
|
197
|
-
Position:
|
198
|
-
Last 80 unconsumed characters:
|
199
|
-
|
179
|
+
Error: #<REXML::ParseException: Missing end tag for 'p' (got "div")
|
200
180
|
Line:
|
201
181
|
Position:
|
202
182
|
Last 80 unconsumed characters:
|
data/tests/unittest/list1.md
CHANGED
@@ -70,14 +70,15 @@ A list item with a blockquote:This is a blockquote inside a list item.
|
|
70
70
|
*** Output of Markdown.pl (parsed) ***
|
71
71
|
<ul>
|
72
72
|
<li
|
73
|
-
|
74
|
-
|
73
|
+
><p>A list item with a blockquote:</p
|
74
|
+
>
|
75
|
+
|
75
76
|
<blockquote>
|
76
|
-
|
77
|
-
|
78
|
-
|
77
|
+
<p>This is a blockquote
|
78
|
+
inside a list item.</p
|
79
|
+
>
|
79
80
|
</blockquote
|
80
|
-
|
81
|
-
|
81
|
+
></li
|
82
|
+
>
|
82
83
|
</ul
|
83
|
-
|
84
|
+
>
|
data/tests/unittest/list2.md
CHANGED
@@ -16,7 +16,9 @@ md_el(:document,[
|
|
16
16
|
md_el(:li,[
|
17
17
|
md_par(["This is a list item with two paragraphs."]),
|
18
18
|
md_par([
|
19
|
-
"This is the second paragraph in the list item. You
|
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 dolo sit amet, consectetuer adipiscing elit"
|
20
22
|
])
|
21
23
|
],{:want_my_paragraph=>true},[]),
|
22
24
|
md_el(:li,[md_par(["other"])],{:want_my_paragraph=>false},[])
|
@@ -28,7 +30,7 @@ md_el(:document,[
|
|
28
30
|
<li>
|
29
31
|
<p>This is a list item with two paragraphs.</p>
|
30
32
|
|
31
|
-
<p>This is the second paragraph in the list item. You&
|
33
|
+
<p>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</p>
|
32
34
|
</li>
|
33
35
|
|
34
36
|
<li>
|
@@ -51,12 +53,12 @@ This is the second paragraph in the list item. You're only required to indent th
|
|
51
53
|
|
52
54
|
*** Output of to_md ***
|
53
55
|
-This is a list item with two paragraphs.
|
54
|
-
This is the second paragraph in the list item.
|
56
|
+
This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elit
|
55
57
|
-ther
|
56
58
|
|
57
59
|
|
58
60
|
*** Output of to_s ***
|
59
|
-
This is a list item with two paragraphs.This is the second paragraph in the list item.
|
61
|
+
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 dolo sit amet, consectetuer adipiscing elitother
|
60
62
|
*** EOF ***
|
61
63
|
|
62
64
|
|
@@ -78,16 +80,17 @@ sit amet, consectetuer adipiscing elit.</p></li>
|
|
78
80
|
*** Output of Markdown.pl (parsed) ***
|
79
81
|
<ul>
|
80
82
|
<li
|
81
|
-
|
82
|
-
|
83
|
+
><p>This is a list item with two paragraphs.</p
|
84
|
+
>
|
85
|
+
|
83
86
|
<p>This is the second paragraph in the list item. You're
|
84
87
|
only required to indent the first line. Lorem ipsum dolor
|
85
88
|
sit amet, consectetuer adipiscing elit.</p
|
86
|
-
|
87
|
-
|
89
|
+
></li
|
90
|
+
>
|
88
91
|
<li
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
+
><p>other</p
|
93
|
+
></li
|
94
|
+
>
|
92
95
|
</ul
|
93
|
-
|
96
|
+
>
|
data/tests/unittest/list3.md
CHANGED
@@ -90,23 +90,25 @@ A list item with a blockquote:This is a blockquote inside a list item.A list ite
|
|
90
90
|
*** Output of Markdown.pl (parsed) ***
|
91
91
|
<ul>
|
92
92
|
<li
|
93
|
-
|
94
|
-
|
93
|
+
><p>A list item with a blockquote:</p
|
94
|
+
>
|
95
|
+
|
95
96
|
<blockquote>
|
96
|
-
|
97
|
-
|
98
|
-
|
97
|
+
<p>This is a blockquote
|
98
|
+
inside a list item.</p
|
99
|
+
>
|
99
100
|
</blockquote
|
100
|
-
|
101
|
-
|
101
|
+
></li
|
102
|
+
>
|
102
103
|
<li
|
103
|
-
|
104
|
-
|
104
|
+
><p>A list item with a code block:</p
|
105
|
+
>
|
106
|
+
|
105
107
|
<pre
|
106
|
-
|
108
|
+
><code><code goes here>
|
107
109
|
</code
|
108
|
-
|
109
|
-
|
110
|
-
|
110
|
+
></pre
|
111
|
+
></li
|
112
|
+
>
|
111
113
|
</ul
|
112
|
-
|
114
|
+
>
|
data/tests/unittest/list4.md
CHANGED
@@ -122,13 +122,13 @@ ciao</p>
|
|
122
122
|
<p>This is a list:
|
123
123
|
* one
|
124
124
|
* two</p
|
125
|
-
|
125
|
+
><p>This is not a list:
|
126
126
|
* one
|
127
127
|
ciao</p
|
128
|
-
|
128
|
+
><p>This is a list:
|
129
129
|
1. one
|
130
130
|
1. two</p
|
131
|
-
|
131
|
+
><p>This is not a list:
|
132
132
|
1987. one
|
133
133
|
ciao</p
|
134
|
-
|
134
|
+
>
|
data/tests/unittest/lists.md
CHANGED
@@ -70,7 +70,9 @@ md_el(:document,[
|
|
70
70
|
md_el(:li,[
|
71
71
|
md_par(["This is a list item with two paragraphs."]),
|
72
72
|
md_par([
|
73
|
-
"This is the second paragraph in the list item. You
|
73
|
+
"This is the second paragraph in the list item. You",
|
74
|
+
md_entity("rsquo"),
|
75
|
+
"re only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elit"
|
74
76
|
])
|
75
77
|
],{:want_my_paragraph=>true},[]),
|
76
78
|
md_el(:li,[md_par(["Another item in the same list."])],{:want_my_paragraph=>false},[])
|
@@ -110,7 +112,7 @@ md_el(:document,[
|
|
110
112
|
<li>
|
111
113
|
<p>This is a list item with two paragraphs.</p>
|
112
114
|
|
113
|
-
<p>This is the second paragraph in the list item. You&
|
115
|
+
<p>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</p>
|
114
116
|
</li>
|
115
117
|
|
116
118
|
<li>
|
@@ -187,12 +189,12 @@ ATTENZIONE!
|
|
187
189
|
Ancora
|
188
190
|
|
189
191
|
-This is a list item with two paragraphs.
|
190
|
-
This is the second paragraph in the list item.
|
192
|
+
This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elit
|
191
193
|
-nother item in the same list.
|
192
194
|
|
193
195
|
|
194
196
|
*** Output of to_s ***
|
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.
|
197
|
+
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. Youre only required to indent the first line. Lorem ipsum dolo sit amet, consectetuer adipiscing elitAnother item in the same list.
|
196
198
|
*** EOF ***
|
197
199
|
|
198
200
|
|
@@ -245,51 +247,53 @@ sit amet, consectetuer adipiscing elit.</p></li>
|
|
245
247
|
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
246
248
|
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
|
247
249
|
viverra nec, fringilla in, laoreet vitae, risus.</li
|
248
|
-
|
250
|
+
>
|
249
251
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
250
252
|
Suspendisse id sem consectetuer libero luctus adipiscing.</li
|
251
|
-
|
253
|
+
>
|
252
254
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
253
255
|
Suspendisse id sem consectetuer libero luctus adipiscing.
|
254
256
|
<ul>
|
255
257
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
256
258
|
Suspendisse id sem consectetuer libero luctus adipiscing.</li
|
257
|
-
|
259
|
+
>
|
258
260
|
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
259
261
|
Suspendisse id sem consectetuer libero luctus adipiscing.</li
|
260
|
-
|
262
|
+
>
|
261
263
|
</ul
|
262
|
-
|
263
|
-
|
264
|
+
></li
|
265
|
+
>
|
264
266
|
</ul
|
265
|
-
|
266
|
-
|
267
|
+
><p>Ancora</p
|
268
|
+
><ul>
|
267
269
|
<li
|
268
|
-
|
270
|
+
><p>This is a list item with two paragraphs. Lorem ipsum dolor
|
269
271
|
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
|
270
272
|
mi posuere lectus.</p
|
271
|
-
|
273
|
+
>
|
274
|
+
|
272
275
|
<p>ATTENZIONE!</p
|
273
|
-
|
274
|
-
|
276
|
+
></li
|
277
|
+
>
|
275
278
|
<li
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
+
><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p
|
280
|
+
></li
|
281
|
+
>
|
279
282
|
</ul
|
280
|
-
|
281
|
-
|
283
|
+
><p>Ancora</p
|
284
|
+
><ul>
|
282
285
|
<li
|
283
|
-
|
284
|
-
|
286
|
+
><p>This is a list item with two paragraphs.</p
|
287
|
+
>
|
288
|
+
|
285
289
|
<p>This is the second paragraph in the list item. You're
|
286
290
|
only required to indent the first line. Lorem ipsum dolor
|
287
291
|
sit amet, consectetuer adipiscing elit.</p
|
288
|
-
|
289
|
-
|
292
|
+
></li
|
293
|
+
>
|
290
294
|
<li
|
291
|
-
|
292
|
-
|
293
|
-
|
295
|
+
><p>Another item in the same list.</p
|
296
|
+
></li
|
297
|
+
>
|
294
298
|
</ul
|
295
|
-
|
299
|
+
>
|
@@ -164,11 +164,11 @@ Paragraph with header on two lines:
|
|
164
164
|
|
165
165
|
Paragraph with html after
|
166
166
|
|
167
|
-
|
167
|
+
Paragraph with html after, indented:
|
168
168
|
|
169
|
-
Paragraph with html after, indented:
|
169
|
+
Paragraph with html after, indented: {\em tralla}
|
170
170
|
|
171
|
-
Paragraph with html after, indented:
|
171
|
+
Paragraph with html after, indented:
|
172
172
|
|
173
173
|
|
174
174
|
*** Output of to_md ***
|
@@ -274,41 +274,41 @@ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagra
|
|
274
274
|
*** Output of Markdown.pl (parsed) ***
|
275
275
|
<p>Paragraph, list with no space:
|
276
276
|
* ciao</p
|
277
|
-
|
277
|
+
><p>Paragraph, list with 1 space:
|
278
278
|
* ciao</p
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
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:
|
284
|
+
* ciao</p
|
285
|
+
><p>Paragraph (1 space after), list with no space:
|
286
286
|
* ciao</p
|
287
|
-
|
288
|
-
|
287
|
+
><p>Paragraph (2 spaces after), list with no space: <br/
|
288
|
+
>
|
289
289
|
* ciao</p
|
290
|
-
|
291
|
-
|
290
|
+
><p>Paragraph (3 spaces after), list with no space: <br/
|
291
|
+
>
|
292
292
|
* ciao</p
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
293
|
+
><p>Paragraph with block quote:</p
|
294
|
+
><blockquote>
|
295
|
+
<p>Quoted</p
|
296
|
+
>
|
297
297
|
</blockquote
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
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
|
+
>
|