bai-maruku 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +102 -0
- data/bin/marudown +29 -0
- data/bin/maruku +181 -0
- data/bin/marutest +345 -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 +71 -0
- data/lib/maruku/errors_management.rb +92 -0
- data/lib/maruku/ext/div.rb +133 -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 +12 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +107 -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 +119 -0
- data/lib/maruku/ext/math/to_html.rb +187 -0
- data/lib/maruku/ext/math/to_latex.rb +26 -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 +614 -0
- data/lib/maruku/input/parse_doc.rb +227 -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 +33 -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 +991 -0
- data/lib/maruku/output/to_latex.rb +590 -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 +56 -0
- data/lib/maruku/string_utils.rb +191 -0
- data/lib/maruku/structures.rb +167 -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 +373 -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/maruku.gemspec +32 -0
- data/tests/bugs/code_in_links.md +101 -0
- data/tests/bugs/complex_escaping.md +38 -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 +64 -0
- data/tests/unittest/alt.md +29 -0
- data/tests/unittest/attributes/att2.md +32 -0
- data/tests/unittest/attributes/att3.md +40 -0
- data/tests/unittest/attributes/attributes.md +69 -0
- data/tests/unittest/attributes/circular.md +38 -0
- data/tests/unittest/attributes/default.md +34 -0
- data/tests/unittest/blank.md +36 -0
- data/tests/unittest/blanks_in_code.md +87 -0
- data/tests/unittest/bug_def.md +28 -0
- data/tests/unittest/bug_table.md +58 -0
- data/tests/unittest/code.md +46 -0
- data/tests/unittest/code2.md +40 -0
- data/tests/unittest/code3.md +83 -0
- data/tests/unittest/data_loss.md +37 -0
- data/tests/unittest/divs/div1.md +179 -0
- data/tests/unittest/divs/div2.md +33 -0
- data/tests/unittest/divs/div3_nest.md +57 -0
- data/tests/unittest/easy.md +27 -0
- data/tests/unittest/email.md +32 -0
- data/tests/unittest/encoding/iso-8859-1.md +35 -0
- data/tests/unittest/encoding/utf-8.md +30 -0
- data/tests/unittest/entities.md +106 -0
- data/tests/unittest/escaping.md +79 -0
- data/tests/unittest/extra_dl.md +64 -0
- data/tests/unittest/extra_header_id.md +75 -0
- data/tests/unittest/extra_table1.md +49 -0
- data/tests/unittest/footnotes.md +109 -0
- data/tests/unittest/headers.md +49 -0
- data/tests/unittest/hex_entities.md +49 -0
- data/tests/unittest/hrule.md +51 -0
- data/tests/unittest/html2.md +34 -0
- data/tests/unittest/html3.md +43 -0
- data/tests/unittest/html4.md +37 -0
- data/tests/unittest/html5.md +35 -0
- data/tests/unittest/ie.md +61 -0
- data/tests/unittest/images.md +102 -0
- data/tests/unittest/images2.md +43 -0
- data/tests/unittest/inline_html.md +187 -0
- data/tests/unittest/inline_html2.md +33 -0
- data/tests/unittest/links.md +164 -0
- data/tests/unittest/links2.md +34 -0
- data/tests/unittest/list1.md +58 -0
- data/tests/unittest/list12.md +40 -0
- data/tests/unittest/list2.md +68 -0
- data/tests/unittest/list3.md +76 -0
- data/tests/unittest/list4.md +101 -0
- data/tests/unittest/lists.md +204 -0
- data/tests/unittest/lists10.md +46 -0
- data/tests/unittest/lists11.md +28 -0
- data/tests/unittest/lists6.md +53 -0
- data/tests/unittest/lists9.md +76 -0
- data/tests/unittest/lists_after_paragraph.md +220 -0
- data/tests/unittest/lists_ol.md +274 -0
- data/tests/unittest/loss.md +28 -0
- data/tests/unittest/math/equations.md +86 -0
- data/tests/unittest/math/inline.md +58 -0
- data/tests/unittest/math/math2.md +88 -0
- data/tests/unittest/math/notmath.md +37 -0
- data/tests/unittest/math/table.md +52 -0
- data/tests/unittest/math/table2.md +54 -0
- data/tests/unittest/misc_sw.md +537 -0
- data/tests/unittest/notyet/escape.md +33 -0
- data/tests/unittest/notyet/header_after_par.md +70 -0
- data/tests/unittest/notyet/ticks.md +30 -0
- data/tests/unittest/notyet/triggering.md +169 -0
- data/tests/unittest/olist.md +57 -0
- data/tests/unittest/one.md +27 -0
- data/tests/unittest/paragraph.md +28 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +54 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +36 -0
- data/tests/unittest/paragraphs.md +58 -0
- data/tests/unittest/pending/amps.md +27 -0
- data/tests/unittest/pending/empty_cells.md +49 -0
- data/tests/unittest/pending/link.md +84 -0
- data/tests/unittest/pending/ref.md +33 -0
- data/tests/unittest/recover/recover_links.md +27 -0
- data/tests/unittest/red_tests/abbrev.md +1388 -0
- data/tests/unittest/red_tests/lists7.md +68 -0
- data/tests/unittest/red_tests/lists7b.md +128 -0
- data/tests/unittest/red_tests/lists8.md +76 -0
- data/tests/unittest/references/long_example.md +83 -0
- data/tests/unittest/references/spaces_and_numbers.md +27 -0
- data/tests/unittest/smartypants.md +126 -0
- data/tests/unittest/syntax_hl.md +64 -0
- data/tests/unittest/table_attributes.md +46 -0
- data/tests/unittest/test.md +31 -0
- data/tests/unittest/underscore_in_words.md +27 -0
- data/tests/unittest/wrapping.md +79 -0
- data/tests/unittest/xml.md +45 -0
- data/tests/unittest/xml2.md +31 -0
- data/tests/unittest/xml3.md +38 -0
- data/tests/unittest/xml_instruction.md +64 -0
- data/tests/utf8-files/simple.md +1 -0
- data/unit_test_block.sh +5 -0
- data/unit_test_span.sh +3 -0
- metadata +251 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
<div markdown="1">Test **bold**</div>
|
6
|
+
<p markdown="1">Test **bold**</p>
|
7
|
+
*** Output of inspect ***
|
8
|
+
md_el(:document,[
|
9
|
+
md_html("<div markdown=\"1\">Test **bold**</div>"),
|
10
|
+
md_html("<p markdown=\"1\">Test **bold**</p>")
|
11
|
+
],{},[])
|
12
|
+
*** Output of to_html ***
|
13
|
+
<div>
|
14
|
+
<p>Test <strong>bold</strong></p>
|
15
|
+
</div><p>Test <strong>bold</strong></p>
|
16
|
+
*** Output of to_latex ***
|
17
|
+
|
18
|
+
*** Output of to_md ***
|
19
|
+
|
20
|
+
*** Output of to_s ***
|
21
|
+
|
22
|
+
*** EOF ***
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
OK!
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
*** Output of Markdown.pl ***
|
31
|
+
(not used anymore)
|
32
|
+
*** Output of Markdown.pl (parsed) ***
|
33
|
+
(not used anymore)
|
@@ -0,0 +1,164 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:on_error=>:warning}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
Search on [Google][]
|
7
|
+
|
8
|
+
Search on [Google] []
|
9
|
+
|
10
|
+
Search on [Google] [google]
|
11
|
+
|
12
|
+
Search on [Google] [Google]
|
13
|
+
|
14
|
+
Search on [Google images][]
|
15
|
+
|
16
|
+
Inline: [Google images](http://google.com)
|
17
|
+
|
18
|
+
Inline with title: [Google images](http://google.com "Title")
|
19
|
+
|
20
|
+
Inline with title: [Google images]( http://google.com "Title" )
|
21
|
+
|
22
|
+
|
23
|
+
Search on <http://www.gogole.com> or <http://Here.com> or ask <mailto:bill@google.com>
|
24
|
+
or you might ask bill@google.com.
|
25
|
+
|
26
|
+
If all else fails, ask [Google](http://www.google.com)
|
27
|
+
|
28
|
+
And now [reference-style link ID with spaces] [Google Images]
|
29
|
+
|
30
|
+
[google]: http://www.google.com
|
31
|
+
|
32
|
+
[google2]: http://www.google.com 'Single quotes'
|
33
|
+
|
34
|
+
[google3]: http://www.google.com "Double quotes"
|
35
|
+
|
36
|
+
[google4]: http://www.google.com (Parenthesis)
|
37
|
+
|
38
|
+
[Google Search]:
|
39
|
+
http://www.google.com "Google search"
|
40
|
+
|
41
|
+
[Google Images]:
|
42
|
+
http://images.google.com (Google images)
|
43
|
+
*** Output of inspect ***
|
44
|
+
md_el(:document,[
|
45
|
+
md_par(["Search on ", md_link(["Google"],"google")]),
|
46
|
+
md_par(["Search on ", md_link(["Google"],"google")]),
|
47
|
+
md_par(["Search on ", md_link(["Google"],"google")]),
|
48
|
+
md_par(["Search on ", md_link(["Google"],"google")]),
|
49
|
+
md_par(["Search on ", md_link(["Google images"],"google_images")]),
|
50
|
+
md_par(["Inline: ", md_im_link(["Google images"], "http://google.com", nil)]),
|
51
|
+
md_par([
|
52
|
+
"Inline with title: ",
|
53
|
+
md_im_link(["Google images"], "http://google.com", "Title")
|
54
|
+
]),
|
55
|
+
md_par([
|
56
|
+
"Inline with title: ",
|
57
|
+
md_im_link(["Google images"], "http://google.com", "Title")
|
58
|
+
]),
|
59
|
+
md_par([
|
60
|
+
"Search on ",
|
61
|
+
md_url("http://www.gogole.com"),
|
62
|
+
" or ",
|
63
|
+
md_url("http://Here.com"),
|
64
|
+
" or ask ",
|
65
|
+
md_email("bill@google.com"),
|
66
|
+
" or you might ask bill@google.com."
|
67
|
+
]),
|
68
|
+
md_par([
|
69
|
+
"If all else fails, ask ",
|
70
|
+
md_im_link(["Google"], "http://www.google.com", nil)
|
71
|
+
]),
|
72
|
+
md_par([
|
73
|
+
"And now ",
|
74
|
+
md_link(["reference-style link ID with spaces"],"google_images")
|
75
|
+
]),
|
76
|
+
md_ref_def("google", "http://www.google.com", {:title=>nil}),
|
77
|
+
md_ref_def("google2", "http://www.google.com", {:title=>"Single quotes"}),
|
78
|
+
md_ref_def("google3", "http://www.google.com", {:title=>"Double quotes"}),
|
79
|
+
md_ref_def("google4", "http://www.google.com", {:title=>"Parenthesis"}),
|
80
|
+
md_ref_def("google_search", "http://www.google.com", {:title=>"Google search"}),
|
81
|
+
md_ref_def("google_images", "http://images.google.com", {:title=>"Google images"})
|
82
|
+
],{},[])
|
83
|
+
*** Output of to_html ***
|
84
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
85
|
+
|
86
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
87
|
+
|
88
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
89
|
+
|
90
|
+
<p>Search on <a href='http://www.google.com'>Google</a></p>
|
91
|
+
|
92
|
+
<p>Search on <a href='http://images.google.com' title='Google images'>Google images</a></p>
|
93
|
+
|
94
|
+
<p>Inline: <a href='http://google.com'>Google images</a></p>
|
95
|
+
|
96
|
+
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
|
97
|
+
|
98
|
+
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
|
99
|
+
|
100
|
+
<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> or you might ask bill@google.com.</p>
|
101
|
+
|
102
|
+
<p>If all else fails, ask <a href='http://www.google.com'>Google</a></p>
|
103
|
+
|
104
|
+
<p>And now <a href='http://images.google.com' title='Google images'>reference-style link ID with spaces</a></p>
|
105
|
+
*** Output of to_latex ***
|
106
|
+
Search on \href{http://www.google.com}{Google}
|
107
|
+
|
108
|
+
Search on \href{http://www.google.com}{Google}
|
109
|
+
|
110
|
+
Search on \href{http://www.google.com}{Google}
|
111
|
+
|
112
|
+
Search on \href{http://www.google.com}{Google}
|
113
|
+
|
114
|
+
Search on \href{http://images.google.com}{Google images}
|
115
|
+
|
116
|
+
Inline: \href{http://google.com}{Google images}
|
117
|
+
|
118
|
+
Inline with title: \href{http://google.com}{Google images}
|
119
|
+
|
120
|
+
Inline with title: \href{http://google.com}{Google images}
|
121
|
+
|
122
|
+
Search on \href{http://www.gogole.com}{http\char58\char47\char47www\char46gogole\char46com} or \href{http://Here.com}{http\char58\char47\char47Here\char46com} or ask \href{mailto:bill@google.com}{bill\char64google\char46com} or you might ask bill@google.com.
|
123
|
+
|
124
|
+
If all else fails, ask \href{http://www.google.com}{Google}
|
125
|
+
|
126
|
+
And now \href{http://images.google.com}{reference-style link ID with spaces}
|
127
|
+
*** Output of to_md ***
|
128
|
+
Search on Google
|
129
|
+
|
130
|
+
Search on Google
|
131
|
+
|
132
|
+
Search on Google
|
133
|
+
|
134
|
+
Search on Google
|
135
|
+
|
136
|
+
Search on Google images
|
137
|
+
|
138
|
+
Inline: Google images
|
139
|
+
|
140
|
+
Inline with title: Google images
|
141
|
+
|
142
|
+
Inline with title: Google images
|
143
|
+
|
144
|
+
Search on or or ask or you might ask
|
145
|
+
bill@google.com.
|
146
|
+
|
147
|
+
If all else fails, ask Google
|
148
|
+
|
149
|
+
And now
|
150
|
+
reference-style link ID with spaces
|
151
|
+
*** Output of to_s ***
|
152
|
+
Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on or or ask or you might ask bill@google.com.If all else fails, ask GoogleAnd now reference-style link ID with spaces
|
153
|
+
*** EOF ***
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
OK!
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
*** Output of Markdown.pl ***
|
162
|
+
(not used anymore)
|
163
|
+
*** Output of Markdown.pl (parsed) ***
|
164
|
+
(not used anymore)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
See [foo' bar]
|
6
|
+
|
7
|
+
[foo' bar]: http://agorf.gr/
|
8
|
+
|
9
|
+
|
10
|
+
*** Output of inspect ***
|
11
|
+
md_el(:document,[
|
12
|
+
md_par(["See ", md_link(["foo", md_entity("rsquo"), " bar"],"foo_bar")]),
|
13
|
+
md_ref_def("foo_bar", "http://agorf.gr/", {:title=>nil})
|
14
|
+
],{},[])
|
15
|
+
*** Output of to_html ***
|
16
|
+
<p>See <a href='http://agorf.gr/'>foo’ bar</a></p>
|
17
|
+
*** Output of to_latex ***
|
18
|
+
See \href{http://agorf.gr/}{foo'{} bar}
|
19
|
+
*** Output of to_md ***
|
20
|
+
See foo bar
|
21
|
+
*** Output of to_s ***
|
22
|
+
See foo bar
|
23
|
+
*** EOF ***
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
OK!
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
*** Output of Markdown.pl ***
|
32
|
+
(not used anymore)
|
33
|
+
*** Output of Markdown.pl (parsed) ***
|
34
|
+
(not used anymore)
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
* A list item with a blockquote:
|
6
|
+
|
7
|
+
> This is a blockquote
|
8
|
+
> inside a list item.
|
9
|
+
|
10
|
+
*** Output of inspect ***
|
11
|
+
md_el(:document,[
|
12
|
+
md_el(:ul,[
|
13
|
+
md_el(:li,[
|
14
|
+
md_par(["A list item with a blockquote:"]),
|
15
|
+
md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
|
16
|
+
],{:want_my_paragraph=>true},[])
|
17
|
+
],{},[])
|
18
|
+
],{},[])
|
19
|
+
*** Output of to_html ***
|
20
|
+
<ul>
|
21
|
+
<li>
|
22
|
+
<p>A list item with a blockquote:</p>
|
23
|
+
|
24
|
+
<blockquote>
|
25
|
+
<p>This is a blockquote inside a list item.</p>
|
26
|
+
</blockquote>
|
27
|
+
</li>
|
28
|
+
</ul>
|
29
|
+
*** Output of to_latex ***
|
30
|
+
\begin{itemize}%
|
31
|
+
\item A list item with a blockquote:
|
32
|
+
|
33
|
+
\begin{quote}%
|
34
|
+
This is a blockquote inside a list item.
|
35
|
+
|
36
|
+
|
37
|
+
\end{quote}
|
38
|
+
|
39
|
+
|
40
|
+
\end{itemize}
|
41
|
+
*** Output of to_md ***
|
42
|
+
- list item with a blockquote:
|
43
|
+
This is a blockquote inside a list
|
44
|
+
item.
|
45
|
+
*** Output of to_s ***
|
46
|
+
A list item with a blockquote:This is a blockquote inside a list item.
|
47
|
+
*** EOF ***
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
OK!
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
*** Output of Markdown.pl ***
|
56
|
+
(not used anymore)
|
57
|
+
*** Output of Markdown.pl (parsed) ***
|
58
|
+
(not used anymore)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
* [Maruku]: good.
|
6
|
+
|
7
|
+
[maruku]: http://maruku.org/
|
8
|
+
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[
|
11
|
+
md_el(:ul,[
|
12
|
+
md_el(:li_span,[md_link(["Maruku"],"maruku"), ": good."],{:want_my_paragraph=>false},[])
|
13
|
+
],{},[]),
|
14
|
+
md_ref_def("maruku", "http://maruku.org/", {:title=>nil})
|
15
|
+
],{},[])
|
16
|
+
*** Output of to_html ***
|
17
|
+
<ul>
|
18
|
+
<li><a href='http://maruku.org/'>Maruku</a>: good.</li>
|
19
|
+
</ul>
|
20
|
+
*** Output of to_latex ***
|
21
|
+
\begin{itemize}%
|
22
|
+
\item \href{http://maruku.org/}{Maruku}: good.
|
23
|
+
|
24
|
+
\end{itemize}
|
25
|
+
*** Output of to_md ***
|
26
|
+
-aruku: good.
|
27
|
+
*** Output of to_s ***
|
28
|
+
Maruku: good.
|
29
|
+
*** EOF ***
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
OK!
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
*** Output of Markdown.pl ***
|
38
|
+
(not used anymore)
|
39
|
+
*** Output of Markdown.pl (parsed) ***
|
40
|
+
(not used anymore)
|
@@ -0,0 +1,68 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
* This is a list item with two paragraphs.
|
6
|
+
|
7
|
+
This is the second paragraph in the list item. You're
|
8
|
+
only required to indent the first line. Lorem ipsum dolor
|
9
|
+
sit amet, consectetuer adipiscing elit.
|
10
|
+
|
11
|
+
* other
|
12
|
+
|
13
|
+
*** Output of inspect ***
|
14
|
+
md_el(:document,[
|
15
|
+
md_el(:ul,[
|
16
|
+
md_el(:li,[
|
17
|
+
md_par(["This is a list item with two paragraphs."]),
|
18
|
+
md_par([
|
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 dolor sit amet, consectetuer adipiscing elit."
|
22
|
+
])
|
23
|
+
],{:want_my_paragraph=>true},[]),
|
24
|
+
md_el(:li,[md_par(["other"])],{:want_my_paragraph=>false},[])
|
25
|
+
],{},[])
|
26
|
+
],{},[])
|
27
|
+
*** Output of to_html ***
|
28
|
+
<ul>
|
29
|
+
<li>
|
30
|
+
<p>This is a list item with two paragraphs.</p>
|
31
|
+
|
32
|
+
<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>
|
33
|
+
</li>
|
34
|
+
|
35
|
+
<li>
|
36
|
+
<p>other</p>
|
37
|
+
</li>
|
38
|
+
</ul>
|
39
|
+
*** Output of to_latex ***
|
40
|
+
\begin{itemize}%
|
41
|
+
\item This is a list item with two paragraphs.
|
42
|
+
|
43
|
+
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.
|
44
|
+
|
45
|
+
|
46
|
+
\item other
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
\end{itemize}
|
51
|
+
*** Output of to_md ***
|
52
|
+
-This is a list item with two paragraphs.
|
53
|
+
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.
|
54
|
+
-ther
|
55
|
+
*** Output of to_s ***
|
56
|
+
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 dolor sit amet, consectetuer adipiscing elit.other
|
57
|
+
*** EOF ***
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
OK!
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
*** Output of Markdown.pl ***
|
66
|
+
(not used anymore)
|
67
|
+
*** Output of Markdown.pl (parsed) ***
|
68
|
+
(not used anymore)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
* A list item with a blockquote:
|
6
|
+
|
7
|
+
> This is a blockquote
|
8
|
+
> inside a list item.
|
9
|
+
|
10
|
+
* A list item with a code block:
|
11
|
+
|
12
|
+
<code goes here>
|
13
|
+
*** Output of inspect ***
|
14
|
+
md_el(:document,[
|
15
|
+
md_el(:ul,[
|
16
|
+
md_el(:li,[
|
17
|
+
md_par(["A list item with a blockquote:"]),
|
18
|
+
md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
|
19
|
+
],{:want_my_paragraph=>true},[]),
|
20
|
+
md_el(:li,[
|
21
|
+
md_par(["A list item with a code block:"]),
|
22
|
+
md_el(:code,[],{:raw_code=>"<code goes here>"},[])
|
23
|
+
],{:want_my_paragraph=>true},[])
|
24
|
+
],{},[])
|
25
|
+
],{},[])
|
26
|
+
*** Output of to_html ***
|
27
|
+
<ul>
|
28
|
+
<li>
|
29
|
+
<p>A list item with a blockquote:</p>
|
30
|
+
|
31
|
+
<blockquote>
|
32
|
+
<p>This is a blockquote inside a list item.</p>
|
33
|
+
</blockquote>
|
34
|
+
</li>
|
35
|
+
|
36
|
+
<li>
|
37
|
+
<p>A list item with a code block:</p>
|
38
|
+
|
39
|
+
<pre><code><code goes here></code></pre>
|
40
|
+
</li>
|
41
|
+
</ul>
|
42
|
+
*** Output of to_latex ***
|
43
|
+
\begin{itemize}%
|
44
|
+
\item A list item with a blockquote:
|
45
|
+
|
46
|
+
\begin{quote}%
|
47
|
+
This is a blockquote inside a list item.
|
48
|
+
|
49
|
+
|
50
|
+
\end{quote}
|
51
|
+
|
52
|
+
\item A list item with a code block:
|
53
|
+
|
54
|
+
\begin{verbatim}<code goes here>\end{verbatim}
|
55
|
+
|
56
|
+
|
57
|
+
\end{itemize}
|
58
|
+
*** Output of to_md ***
|
59
|
+
- list item with a blockquote:
|
60
|
+
This is a blockquote inside a list
|
61
|
+
item.
|
62
|
+
- list item with a code block:
|
63
|
+
*** Output of to_s ***
|
64
|
+
A list item with a blockquote:This is a blockquote inside a list item.A list item with a code block:
|
65
|
+
*** EOF ***
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
OK!
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
*** Output of Markdown.pl ***
|
74
|
+
(not used anymore)
|
75
|
+
*** Output of Markdown.pl (parsed) ***
|
76
|
+
(not used anymore)
|