patcito-maruku 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +23 -0
- data/LICENSE +340 -0
- data/README.md +73 -0
- data/bin/maruku +196 -0
- data/bin/marutex +4 -0
- data/data/entities.xml +261 -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/docs/website/src/bluecloth.md +25 -0
- data/docs/website/src/download.md +31 -0
- data/docs/website/src/maruku.md +261 -0
- data/docs/website/src/proposal.md +271 -0
- data/lib/maruku.rb +132 -0
- data/lib/maruku/attributes.rb +138 -0
- data/lib/maruku/defaults.rb +69 -0
- data/lib/maruku/errors.rb +89 -0
- data/lib/maruku/ext/div.rb +121 -0
- data/lib/maruku/ext/fenced_code.rb +78 -0
- data/lib/maruku/ext/math.rb +37 -0
- data/lib/maruku/ext/math/elements.rb +21 -0
- data/lib/maruku/ext/math/latex_fix.rb +12 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +93 -0
- data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +39 -0
- data/lib/maruku/ext/math/mathml_engines/none.rb +21 -0
- data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
- data/lib/maruku/ext/math/parsing.rb +125 -0
- data/lib/maruku/ext/math/to_html.rb +237 -0
- data/lib/maruku/ext/math/to_latex.rb +36 -0
- data/lib/maruku/ext/yaml.rb +43 -0
- data/lib/maruku/helpers.rb +214 -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 +608 -0
- data/lib/maruku/input/parse_doc.rb +240 -0
- data/lib/maruku/input/parse_span_better.rb +746 -0
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +147 -0
- data/lib/maruku/input_textile2/t2_parser.rb +163 -0
- data/lib/maruku/maruku.rb +31 -0
- data/lib/maruku/output/s5/fancy.rb +756 -0
- data/lib/maruku/output/s5/to_s5.rb +138 -0
- data/lib/maruku/output/to_html.rb +994 -0
- data/lib/maruku/output/to_latex.rb +580 -0
- data/lib/maruku/output/to_latex_entities.rb +101 -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 +54 -0
- data/lib/maruku/string_utils.rb +185 -0
- data/lib/maruku/structures.rb +143 -0
- data/lib/maruku/structures_inspect.rb +51 -0
- data/lib/maruku/structures_iterators.rb +48 -0
- data/lib/maruku/textile2.rb +1 -0
- data/lib/maruku/toc.rb +214 -0
- data/lib/maruku/usage/example1.rb +33 -0
- data/lib/maruku/version +0 -0
- data/lib/maruku/version.rb +54 -0
- data/spec/block_docs/abbreviations.md +52 -0
- data/spec/block_docs/alt.md +17 -0
- data/spec/block_docs/attributes/att2.md +20 -0
- data/spec/block_docs/attributes/att3.md +28 -0
- data/spec/block_docs/attributes/attributes.md +57 -0
- data/spec/block_docs/attributes/circular.md +26 -0
- data/spec/block_docs/attributes/default.md +22 -0
- data/spec/block_docs/blank.md +24 -0
- data/spec/block_docs/blanks_in_code.md +75 -0
- data/spec/block_docs/bug_def.md +16 -0
- data/spec/block_docs/bug_table.md +46 -0
- data/spec/block_docs/code.md +34 -0
- data/spec/block_docs/code2.md +28 -0
- data/spec/block_docs/code3.md +71 -0
- data/spec/block_docs/data_loss.md +25 -0
- data/spec/block_docs/divs/div1.md +167 -0
- data/spec/block_docs/divs/div2.md +21 -0
- data/spec/block_docs/divs/div3_nest.md +45 -0
- data/spec/block_docs/easy.md +15 -0
- data/spec/block_docs/email.md +20 -0
- data/spec/block_docs/encoding/iso-8859-1.md +23 -0
- data/spec/block_docs/encoding/utf-8.md +18 -0
- data/spec/block_docs/entities.md +94 -0
- data/spec/block_docs/escaping.md +67 -0
- data/spec/block_docs/extra_dl.md +52 -0
- data/spec/block_docs/extra_header_id.md +63 -0
- data/spec/block_docs/extra_table1.md +37 -0
- data/spec/block_docs/footnotes.md +97 -0
- data/spec/block_docs/headers.md +37 -0
- data/spec/block_docs/hex_entities.md +37 -0
- data/spec/block_docs/hrule.md +39 -0
- data/spec/block_docs/html2.md +22 -0
- data/spec/block_docs/html3.md +31 -0
- data/spec/block_docs/html4.md +25 -0
- data/spec/block_docs/html5.md +23 -0
- data/spec/block_docs/ie.md +49 -0
- data/spec/block_docs/images.md +90 -0
- data/spec/block_docs/images2.md +31 -0
- data/spec/block_docs/inline_html.md +152 -0
- data/spec/block_docs/inline_html2.md +21 -0
- data/spec/block_docs/links.md +152 -0
- data/spec/block_docs/links2.md +22 -0
- data/spec/block_docs/list1.md +46 -0
- data/spec/block_docs/list12.md +28 -0
- data/spec/block_docs/list2.md +56 -0
- data/spec/block_docs/list3.md +64 -0
- data/spec/block_docs/list4.md +89 -0
- data/spec/block_docs/lists.md +192 -0
- data/spec/block_docs/lists10.md +34 -0
- data/spec/block_docs/lists11.md +23 -0
- data/spec/block_docs/lists6.md +41 -0
- data/spec/block_docs/lists9.md +64 -0
- data/spec/block_docs/lists_after_paragraph.md +208 -0
- data/spec/block_docs/lists_ol.md +262 -0
- data/spec/block_docs/loss.md +16 -0
- data/spec/block_docs/math/equations.md +45 -0
- data/spec/block_docs/math/inline.md +46 -0
- data/spec/block_docs/math/math2.md +45 -0
- data/spec/block_docs/math/notmath.md +25 -0
- data/spec/block_docs/math/table.md +25 -0
- data/spec/block_docs/math/table2.md +42 -0
- data/spec/block_docs/misc_sw.md +525 -0
- data/spec/block_docs/notyet/escape.md +21 -0
- data/spec/block_docs/notyet/header_after_par.md +58 -0
- data/spec/block_docs/notyet/ticks.md +18 -0
- data/spec/block_docs/notyet/triggering.md +157 -0
- data/spec/block_docs/olist.md +45 -0
- data/spec/block_docs/one.md +15 -0
- data/spec/block_docs/paragraph.md +16 -0
- data/spec/block_docs/paragraph_rules/dont_merge_ref.md +42 -0
- data/spec/block_docs/paragraph_rules/tab_is_blank.md +24 -0
- data/spec/block_docs/paragraphs.md +46 -0
- data/spec/block_docs/pending/amps.md +15 -0
- data/spec/block_docs/pending/empty_cells.md +37 -0
- data/spec/block_docs/pending/link.md +72 -0
- data/spec/block_docs/pending/ref.md +21 -0
- data/spec/block_docs/recover/recover_links.md +15 -0
- data/spec/block_docs/red_tests/abbrev.md +679 -0
- data/spec/block_docs/red_tests/lists7.md +32 -0
- data/spec/block_docs/red_tests/lists7b.md +65 -0
- data/spec/block_docs/red_tests/lists8.md +42 -0
- data/spec/block_docs/red_tests/ref.md +23 -0
- data/spec/block_docs/red_tests/xml.md +35 -0
- data/spec/block_docs/references/long_example.md +71 -0
- data/spec/block_docs/references/spaces_and_numbers.md +15 -0
- data/spec/block_docs/smartypants.md +114 -0
- data/spec/block_docs/syntax_hl.md +52 -0
- data/spec/block_docs/table_attributes.md +34 -0
- data/spec/block_docs/test.md +19 -0
- data/spec/block_docs/underscore_in_words.md +15 -0
- data/spec/block_docs/wrapping.md +67 -0
- data/spec/block_docs/xml2.md +19 -0
- data/spec/block_docs/xml3.md +26 -0
- data/spec/block_docs/xml_instruction.md +52 -0
- data/spec/block_spec.rb +49 -0
- data/spec/span_spec.rb +254 -0
- data/spec/spec_helper.rb +6 -0
- metadata +247 -0
@@ -0,0 +1,192 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
* 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
|
+
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
9
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.
|
10
|
+
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
11
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.
|
12
|
+
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
13
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.
|
14
|
+
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
15
|
+
Suspendisse id sem consectetuer libero luctus adipiscing.
|
16
|
+
|
17
|
+
Ancora
|
18
|
+
|
19
|
+
* 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
|
+
* Suspendisse id sem consectetuer libero luctus adipiscing.
|
26
|
+
|
27
|
+
|
28
|
+
Ancora
|
29
|
+
|
30
|
+
* This is a list item with two paragraphs.
|
31
|
+
|
32
|
+
This is the second paragraph in the list item. You're
|
33
|
+
only required to indent the first line. Lorem ipsum dolor
|
34
|
+
sit amet, consectetuer adipiscing elit.
|
35
|
+
|
36
|
+
* Another item in the same list.
|
37
|
+
*** Output of inspect ***
|
38
|
+
md_el(:document,[
|
39
|
+
md_el(:ul,[
|
40
|
+
md_el(:li_span,[
|
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
|
+
],{:want_my_paragraph=>false},[]),
|
43
|
+
md_el(:li_span,[
|
44
|
+
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
|
45
|
+
],{:want_my_paragraph=>false},[]),
|
46
|
+
md_el(:li_span,[
|
47
|
+
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
|
48
|
+
],{:want_my_paragraph=>false},[]),
|
49
|
+
md_el(:li_span,[
|
50
|
+
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
|
51
|
+
],{:want_my_paragraph=>false},[]),
|
52
|
+
md_el(:li_span,[
|
53
|
+
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
|
54
|
+
],{:want_my_paragraph=>false},[])
|
55
|
+
],{},[]),
|
56
|
+
md_par(["Ancora"]),
|
57
|
+
md_el(:ul,[
|
58
|
+
md_el(:li,[
|
59
|
+
md_par([
|
60
|
+
"This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus."
|
61
|
+
]),
|
62
|
+
md_par(["ATTENZIONE!"])
|
63
|
+
],{:want_my_paragraph=>true},[]),
|
64
|
+
md_el(:li,[
|
65
|
+
md_par(["Suspendisse id sem consectetuer libero luctus adipiscing."])
|
66
|
+
],{:want_my_paragraph=>false},[])
|
67
|
+
],{},[]),
|
68
|
+
md_par(["Ancora"]),
|
69
|
+
md_el(:ul,[
|
70
|
+
md_el(:li,[
|
71
|
+
md_par(["This is a list item with two paragraphs."]),
|
72
|
+
md_par([
|
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 dolor sit amet, consectetuer adipiscing elit."
|
76
|
+
])
|
77
|
+
],{:want_my_paragraph=>true},[]),
|
78
|
+
md_el(:li,[md_par(["Another item in the same list."])],{:want_my_paragraph=>false},[])
|
79
|
+
],{},[])
|
80
|
+
],{},[])
|
81
|
+
*** Output of to_html ***
|
82
|
+
<ul>
|
83
|
+
<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>
|
84
|
+
|
85
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
86
|
+
|
87
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
88
|
+
|
89
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
90
|
+
|
91
|
+
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
92
|
+
</ul>
|
93
|
+
|
94
|
+
<p>Ancora</p>
|
95
|
+
|
96
|
+
<ul>
|
97
|
+
<li>
|
98
|
+
<p>This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.</p>
|
99
|
+
|
100
|
+
<p>ATTENZIONE!</p>
|
101
|
+
</li>
|
102
|
+
|
103
|
+
<li>
|
104
|
+
<p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
|
105
|
+
</li>
|
106
|
+
</ul>
|
107
|
+
|
108
|
+
<p>Ancora</p>
|
109
|
+
|
110
|
+
<ul>
|
111
|
+
<li>
|
112
|
+
<p>This is a list item with two paragraphs.</p>
|
113
|
+
|
114
|
+
<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>
|
115
|
+
</li>
|
116
|
+
|
117
|
+
<li>
|
118
|
+
<p>Another item in the same list.</p>
|
119
|
+
</li>
|
120
|
+
</ul>
|
121
|
+
*** Output of to_latex ***
|
122
|
+
\begin{itemize}%
|
123
|
+
\item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
|
124
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
125
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
126
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
127
|
+
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
|
128
|
+
|
129
|
+
\end{itemize}
|
130
|
+
Ancora
|
131
|
+
|
132
|
+
\begin{itemize}%
|
133
|
+
\item This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
134
|
+
|
135
|
+
ATTENZIONE!
|
136
|
+
|
137
|
+
|
138
|
+
\item Suspendisse id sem consectetuer libero luctus adipiscing.
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
\end{itemize}
|
143
|
+
Ancora
|
144
|
+
|
145
|
+
\begin{itemize}%
|
146
|
+
\item This is a list item with two paragraphs.
|
147
|
+
|
148
|
+
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.
|
149
|
+
|
150
|
+
|
151
|
+
\item Another item in the same list.
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
\end{itemize}
|
156
|
+
*** Output of to_md ***
|
157
|
+
-orem ipsum dolor sit amet,
|
158
|
+
consectetuer adipiscing elit.
|
159
|
+
Aliquam hendrerit mi posuere
|
160
|
+
lectus. Vestibulum enim wisi,
|
161
|
+
viverra nec, fringilla in, laoreet
|
162
|
+
vitae, risus.
|
163
|
+
-onec sit amet nisl. Aliquam semper
|
164
|
+
ipsum sit amet velit. Suspendisse
|
165
|
+
id sem consectetuer libero luctus
|
166
|
+
adipiscing.
|
167
|
+
-onec sit amet nisl. Aliquam semper
|
168
|
+
ipsum sit amet velit. Suspendisse
|
169
|
+
id sem consectetuer libero luctus
|
170
|
+
adipiscing.
|
171
|
+
-onec sit amet nisl. Aliquam semper
|
172
|
+
ipsum sit amet velit. Suspendisse
|
173
|
+
id sem consectetuer libero luctus
|
174
|
+
adipiscing.
|
175
|
+
-onec sit amet nisl. Aliquam semper
|
176
|
+
ipsum sit amet velit. Suspendisse
|
177
|
+
id sem consectetuer libero luctus
|
178
|
+
adipiscing.
|
179
|
+
|
180
|
+
Ancora
|
181
|
+
|
182
|
+
-This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
183
|
+
ATTENZIONE!
|
184
|
+
-Suspendisse id sem consectetuer libero luctus adipiscing.
|
185
|
+
|
186
|
+
Ancora
|
187
|
+
|
188
|
+
-This is a list item with two paragraphs.
|
189
|
+
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.
|
190
|
+
-nother item in the same list.
|
191
|
+
*** Output of to_s ***
|
192
|
+
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!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 dolor sit amet, consectetuer adipiscing elit.Another item in the same list.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
List:
|
6
|
+
|
7
|
+
- è`gcc`
|
8
|
+
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[
|
11
|
+
md_par(["List:"]),
|
12
|
+
md_el(:ul,[
|
13
|
+
md_el(:li_span,["è", md_code("gcc")],{:want_my_paragraph=>false},[])
|
14
|
+
],{},[])
|
15
|
+
],{},[])
|
16
|
+
*** Output of to_html ***
|
17
|
+
<p>List:</p>
|
18
|
+
|
19
|
+
<ul>
|
20
|
+
<li>è<code>gcc</code></li>
|
21
|
+
</ul>
|
22
|
+
*** Output of to_latex ***
|
23
|
+
List:
|
24
|
+
|
25
|
+
\begin{itemize}%
|
26
|
+
\item è{\colorbox[rgb]{1.00,0.93,1.00}{\tt gcc}}
|
27
|
+
|
28
|
+
\end{itemize}
|
29
|
+
*** Output of to_md ***
|
30
|
+
List:
|
31
|
+
|
32
|
+
- è`gcc`
|
33
|
+
*** Output of to_s ***
|
34
|
+
List:è
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
- ένα
|
6
|
+
|
7
|
+
*** Output of inspect ***
|
8
|
+
md_el(:document,[
|
9
|
+
md_el(:ul,[md_el(:li_span,["ένα"],{:want_my_paragraph=>false},[])],{},[])
|
10
|
+
],{},[])
|
11
|
+
*** Output of to_html ***
|
12
|
+
<ul>
|
13
|
+
<li>ένα</li>
|
14
|
+
</ul>
|
15
|
+
*** Output of to_latex ***
|
16
|
+
\begin{itemize}%
|
17
|
+
\item ένα
|
18
|
+
|
19
|
+
\end{itemize}
|
20
|
+
*** Output of to_md ***
|
21
|
+
- ένα
|
22
|
+
*** Output of to_s ***
|
23
|
+
ένα
|
@@ -0,0 +1,41 @@
|
|
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
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
- Due
|
6
|
+
1. tre
|
7
|
+
1. tre
|
8
|
+
1. tre
|
9
|
+
- Due
|
10
|
+
*** Output of inspect ***
|
11
|
+
md_el(:document,[
|
12
|
+
md_el(:ul,[
|
13
|
+
md_el(:li,[
|
14
|
+
md_par(["Due"]),
|
15
|
+
md_el(:ol,[
|
16
|
+
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
|
17
|
+
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
|
18
|
+
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[])
|
19
|
+
],{},[])
|
20
|
+
],{:want_my_paragraph=>true},[]),
|
21
|
+
md_el(:li,[md_par(["Due"])],{:want_my_paragraph=>false},[])
|
22
|
+
],{},[])
|
23
|
+
],{},[])
|
24
|
+
*** Output of to_html ***
|
25
|
+
<ul>
|
26
|
+
<li>
|
27
|
+
<p>Due</p>
|
28
|
+
|
29
|
+
<ol>
|
30
|
+
<li>tre</li>
|
31
|
+
|
32
|
+
<li>tre</li>
|
33
|
+
|
34
|
+
<li>tre</li>
|
35
|
+
</ol>
|
36
|
+
</li>
|
37
|
+
|
38
|
+
<li>
|
39
|
+
<p>Due</p>
|
40
|
+
</li>
|
41
|
+
</ul>
|
42
|
+
*** Output of to_latex ***
|
43
|
+
\begin{itemize}%
|
44
|
+
\item Due
|
45
|
+
|
46
|
+
\begin{enumerate}%
|
47
|
+
\item tre
|
48
|
+
\item tre
|
49
|
+
\item tre
|
50
|
+
|
51
|
+
\end{enumerate}
|
52
|
+
|
53
|
+
\item Due
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
\end{itemize}
|
58
|
+
*** Output of to_md ***
|
59
|
+
-ue* tre
|
60
|
+
* tre
|
61
|
+
* tre
|
62
|
+
-ue
|
63
|
+
*** Output of to_s ***
|
64
|
+
DuetretretreDue
|
@@ -0,0 +1,208 @@
|
|
1
|
+
This should not trigger the list
|
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:
|