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,21 @@
|
|
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
|
+
|
@@ -0,0 +1,152 @@
|
|
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
|
@@ -0,0 +1,22 @@
|
|
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
|
@@ -0,0 +1,46 @@
|
|
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.
|
@@ -0,0 +1,28 @@
|
|
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.
|
@@ -0,0 +1,56 @@
|
|
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
|
@@ -0,0 +1,64 @@
|
|
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:
|
@@ -0,0 +1,89 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
This is a list:
|
6
|
+
* one
|
7
|
+
* two
|
8
|
+
|
9
|
+
This is not a list:
|
10
|
+
* one
|
11
|
+
ciao
|
12
|
+
|
13
|
+
This is a list:
|
14
|
+
1. one
|
15
|
+
1. two
|
16
|
+
|
17
|
+
This is not a list:
|
18
|
+
1987. one
|
19
|
+
ciao
|
20
|
+
|
21
|
+
*** Output of inspect ***
|
22
|
+
md_el(:document,[
|
23
|
+
md_par(["This is a list:"]),
|
24
|
+
md_el(:ul,[
|
25
|
+
md_el(:li_span,["one"],{:want_my_paragraph=>false},[]),
|
26
|
+
md_el(:li_span,["two"],{:want_my_paragraph=>false},[])
|
27
|
+
],{},[]),
|
28
|
+
md_par(["This is not a list: * one ciao"]),
|
29
|
+
md_par(["This is a list:"]),
|
30
|
+
md_el(:ol,[
|
31
|
+
md_el(:li_span,["one"],{:want_my_paragraph=>false},[]),
|
32
|
+
md_el(:li_span,["two"],{:want_my_paragraph=>false},[])
|
33
|
+
],{},[]),
|
34
|
+
md_par(["This is not a list: 1987. one ciao"])
|
35
|
+
],{},[])
|
36
|
+
*** Output of to_html ***
|
37
|
+
<p>This is a list:</p>
|
38
|
+
|
39
|
+
<ul>
|
40
|
+
<li>one</li>
|
41
|
+
|
42
|
+
<li>two</li>
|
43
|
+
</ul>
|
44
|
+
|
45
|
+
<p>This is not a list: * one ciao</p>
|
46
|
+
|
47
|
+
<p>This is a list:</p>
|
48
|
+
|
49
|
+
<ol>
|
50
|
+
<li>one</li>
|
51
|
+
|
52
|
+
<li>two</li>
|
53
|
+
</ol>
|
54
|
+
|
55
|
+
<p>This is not a list: 1987. one ciao</p>
|
56
|
+
*** Output of to_latex ***
|
57
|
+
This is a list:
|
58
|
+
|
59
|
+
\begin{itemize}%
|
60
|
+
\item one
|
61
|
+
\item two
|
62
|
+
|
63
|
+
\end{itemize}
|
64
|
+
This is not a list: * one ciao
|
65
|
+
|
66
|
+
This is a list:
|
67
|
+
|
68
|
+
\begin{enumerate}%
|
69
|
+
\item one
|
70
|
+
\item two
|
71
|
+
|
72
|
+
\end{enumerate}
|
73
|
+
This is not a list: 1987. one ciao
|
74
|
+
*** Output of to_md ***
|
75
|
+
This is a list:
|
76
|
+
|
77
|
+
-ne
|
78
|
+
-wo
|
79
|
+
|
80
|
+
This is not a list: * one ciao
|
81
|
+
|
82
|
+
This is a list:
|
83
|
+
|
84
|
+
1. one
|
85
|
+
2. two
|
86
|
+
|
87
|
+
This is not a list: 1987. one ciao
|
88
|
+
*** Output of to_s ***
|
89
|
+
This is a list:onetwoThis is not a list: * one ciaoThis is a list:onetwoThis is not a list: 1987. one ciao
|