remi-maruku 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +73 -0
- data/bin/marudown +29 -0
- data/bin/maruku +176 -0
- data/bin/marutest +338 -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 +70 -0
- data/lib/maruku/errors_management.rb +92 -0
- data/lib/maruku/ext/div.rb +100 -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 +11 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +104 -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 +105 -0
- data/lib/maruku/ext/math/to_html.rb +170 -0
- data/lib/maruku/ext/math/to_latex.rb +22 -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 +613 -0
- data/lib/maruku/input/parse_doc.rb +227 -0
- data/lib/maruku/input/parse_span_better.rb +732 -0
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +144 -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 +125 -0
- data/lib/maruku/output/to_html.rb +971 -0
- data/lib/maruku/output/to_latex.rb +563 -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 +53 -0
- data/lib/maruku/string_utils.rb +191 -0
- data/lib/maruku/structures.rb +165 -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 +370 -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/tests/bugs/code_in_links.md +16 -0
- data/tests/bugs/complex_escaping.md +4 -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 +72 -0
- data/tests/unittest/alt.md +30 -0
- data/tests/unittest/attributes/att2.md +34 -0
- data/tests/unittest/attributes/att3.md +45 -0
- data/tests/unittest/attributes/attributes.md +82 -0
- data/tests/unittest/attributes/circular.md +43 -0
- data/tests/unittest/attributes/default.md +38 -0
- data/tests/unittest/blank.md +39 -0
- data/tests/unittest/blanks_in_code.md +106 -0
- data/tests/unittest/bug_def.md +29 -0
- data/tests/unittest/bug_table.md +67 -0
- data/tests/unittest/code.md +53 -0
- data/tests/unittest/code2.md +46 -0
- data/tests/unittest/code3.md +102 -0
- data/tests/unittest/data_loss.md +42 -0
- data/tests/unittest/divs/div1.md +204 -0
- data/tests/unittest/divs/div2.md +34 -0
- data/tests/unittest/divs/div3_nest.md +62 -0
- data/tests/unittest/easy.md +28 -0
- data/tests/unittest/email.md +33 -0
- data/tests/unittest/encoding/iso-8859-1.md +38 -0
- data/tests/unittest/encoding/utf-8.md +33 -0
- data/tests/unittest/entities.md +124 -0
- data/tests/unittest/escaping.md +89 -0
- data/tests/unittest/extra_dl.md +72 -0
- data/tests/unittest/extra_header_id.md +86 -0
- data/tests/unittest/extra_table1.md +55 -0
- data/tests/unittest/footnotes.md +126 -0
- data/tests/unittest/headers.md +54 -0
- data/tests/unittest/hex_entities.md +50 -0
- data/tests/unittest/hrule.md +60 -0
- data/tests/unittest/html2.md +38 -0
- data/tests/unittest/html3.md +47 -0
- data/tests/unittest/html4.md +42 -0
- data/tests/unittest/html5.md +38 -0
- data/tests/unittest/ie.md +82 -0
- data/tests/unittest/images.md +114 -0
- data/tests/unittest/images2.md +46 -0
- data/tests/unittest/inline_html.md +260 -0
- data/tests/unittest/inline_html2.md +36 -0
- data/tests/unittest/links.md +197 -0
- data/tests/unittest/list1.md +66 -0
- data/tests/unittest/list2.md +76 -0
- data/tests/unittest/list3.md +88 -0
- data/tests/unittest/list4.md +116 -0
- data/tests/unittest/lists.md +241 -0
- data/tests/unittest/lists11.md +31 -0
- data/tests/unittest/lists6.md +54 -0
- data/tests/unittest/lists7.md +79 -0
- data/tests/unittest/lists7b.md +136 -0
- data/tests/unittest/lists8.md +83 -0
- data/tests/unittest/lists9.md +85 -0
- data/tests/unittest/lists_after_paragraph.md +268 -0
- data/tests/unittest/lists_ol.md +324 -0
- data/tests/unittest/loss.md +29 -0
- data/tests/unittest/math/equations.md +69 -0
- data/tests/unittest/math/inline.md +66 -0
- data/tests/unittest/math/math2.md +110 -0
- data/tests/unittest/math/notmath.md +40 -0
- data/tests/unittest/math/table.md +43 -0
- data/tests/unittest/math/table2.md +60 -0
- data/tests/unittest/misc_sw.md +615 -0
- data/tests/unittest/notyet/escape.md +36 -0
- data/tests/unittest/notyet/header_after_par.md +81 -0
- data/tests/unittest/notyet/ticks.md +31 -0
- data/tests/unittest/notyet/triggering.md +206 -0
- data/tests/unittest/olist.md +64 -0
- data/tests/unittest/one.md +28 -0
- data/tests/unittest/paragraph.md +29 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +57 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +39 -0
- data/tests/unittest/paragraphs.md +66 -0
- data/tests/unittest/pending/amps.md +29 -0
- data/tests/unittest/pending/empty_cells.md +53 -0
- data/tests/unittest/pending/link.md +103 -0
- data/tests/unittest/recover/recover_links.md +28 -0
- data/tests/unittest/references/long_example.md +88 -0
- data/tests/unittest/references/spaces_and_numbers.md +28 -0
- data/tests/unittest/smartypants.md +171 -0
- data/tests/unittest/syntax_hl.md +80 -0
- data/tests/unittest/table_attributes.md +52 -0
- data/tests/unittest/test.md +32 -0
- data/tests/unittest/wrapping.md +88 -0
- data/tests/unittest/xml.md +54 -0
- data/tests/unittest/xml2.md +34 -0
- data/tests/unittest/xml3.md +44 -0
- data/tests/unittest/xml_instruction.md +72 -0
- data/tests/utf8-files/simple.md +1 -0
- data/unit_test_block.sh +5 -0
- data/unit_test_span.sh +2 -0
- metadata +243 -0
@@ -0,0 +1,204 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
require 'maruku/ext/div'; {} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
+---------
|
6
|
+
| text
|
7
|
+
+----------
|
8
|
+
|
9
|
+
+---------
|
10
|
+
|text
|
11
|
+
|
12
|
+
+--
|
13
|
+
text
|
14
|
+
|
15
|
+
=--
|
16
|
+
|
17
|
+
|
18
|
+
+---------
|
19
|
+
| text
|
20
|
+
+----------
|
21
|
+
|
22
|
+
+---------
|
23
|
+
|text
|
24
|
+
|
25
|
+
+--
|
26
|
+
text
|
27
|
+
|
28
|
+
=--
|
29
|
+
|
30
|
+
|
31
|
+
+---------
|
32
|
+
| text
|
33
|
+
+----------
|
34
|
+
|
35
|
+
+---------
|
36
|
+
|text
|
37
|
+
|
38
|
+
+--
|
39
|
+
text
|
40
|
+
|
41
|
+
=--
|
42
|
+
|
43
|
+
+---------
|
44
|
+
| text
|
45
|
+
+----------
|
46
|
+
|
47
|
+
+---------
|
48
|
+
|text
|
49
|
+
|
50
|
+
+--
|
51
|
+
text
|
52
|
+
|
53
|
+
=--
|
54
|
+
|
55
|
+
*** Output of inspect ***
|
56
|
+
md_el(:document,[
|
57
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
58
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
59
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
60
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
61
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
62
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
63
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
64
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
65
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
66
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
67
|
+
md_el(:div,[md_par(["text"])],{},[]),
|
68
|
+
md_el(:div,[md_par(["text"])],{},[])
|
69
|
+
],{},[])
|
70
|
+
*** Output of to_html ***
|
71
|
+
<div>
|
72
|
+
<p>text</p>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div>
|
76
|
+
<p>text</p>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div>
|
80
|
+
<p>text</p>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div>
|
84
|
+
<p>text</p>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div>
|
88
|
+
<p>text</p>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
<div>
|
92
|
+
<p>text</p>
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<div>
|
96
|
+
<p>text</p>
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<div>
|
100
|
+
<p>text</p>
|
101
|
+
</div>
|
102
|
+
|
103
|
+
<div>
|
104
|
+
<p>text</p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div>
|
108
|
+
<p>text</p>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<div>
|
112
|
+
<p>text</p>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div>
|
116
|
+
<p>text</p>
|
117
|
+
</div>
|
118
|
+
*** Output of to_latex ***
|
119
|
+
|
120
|
+
*** Output of to_md ***
|
121
|
+
text
|
122
|
+
|
123
|
+
text
|
124
|
+
|
125
|
+
text
|
126
|
+
|
127
|
+
text
|
128
|
+
|
129
|
+
text
|
130
|
+
|
131
|
+
text
|
132
|
+
|
133
|
+
text
|
134
|
+
|
135
|
+
text
|
136
|
+
|
137
|
+
text
|
138
|
+
|
139
|
+
text
|
140
|
+
|
141
|
+
text
|
142
|
+
|
143
|
+
text
|
144
|
+
*** Output of to_s ***
|
145
|
+
texttexttexttexttexttexttexttexttexttexttexttext
|
146
|
+
*** EOF ***
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
OK!
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
*** Output of Markdown.pl ***
|
155
|
+
<p>+---------
|
156
|
+
| text
|
157
|
+
+----------</p>
|
158
|
+
|
159
|
+
<p>+---------
|
160
|
+
|text</p>
|
161
|
+
|
162
|
+
<p>+--
|
163
|
+
text</p>
|
164
|
+
|
165
|
+
<p>=--</p>
|
166
|
+
|
167
|
+
<p>+---------
|
168
|
+
| text
|
169
|
+
+----------</p>
|
170
|
+
|
171
|
+
<p>+---------
|
172
|
+
|text</p>
|
173
|
+
|
174
|
+
<p>+--
|
175
|
+
text</p>
|
176
|
+
|
177
|
+
<p>=--</p>
|
178
|
+
|
179
|
+
<p>+---------
|
180
|
+
| text
|
181
|
+
+----------</p>
|
182
|
+
|
183
|
+
<p>+---------
|
184
|
+
|text</p>
|
185
|
+
|
186
|
+
<p>+--
|
187
|
+
text</p>
|
188
|
+
|
189
|
+
<p>=--</p>
|
190
|
+
|
191
|
+
<p>+---------
|
192
|
+
| text
|
193
|
+
+----------</p>
|
194
|
+
|
195
|
+
<p>+---------
|
196
|
+
|text</p>
|
197
|
+
|
198
|
+
<p>+--
|
199
|
+
text</p>
|
200
|
+
|
201
|
+
<p>=--</p>
|
202
|
+
|
203
|
+
*** Output of Markdown.pl (parsed) ***
|
204
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
require 'maruku/ext/div'; {} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
+--
|
6
|
+
ciao
|
7
|
+
=--
|
8
|
+
*** Output of inspect ***
|
9
|
+
md_el(:document,[md_el(:div,[md_par(["ciao"])],{},[])],{},[])
|
10
|
+
*** Output of to_html ***
|
11
|
+
<div>
|
12
|
+
<p>ciao</p>
|
13
|
+
</div>
|
14
|
+
*** Output of to_latex ***
|
15
|
+
|
16
|
+
*** Output of to_md ***
|
17
|
+
ciao
|
18
|
+
*** Output of to_s ***
|
19
|
+
ciao
|
20
|
+
*** EOF ***
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
OK!
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
*** Output of Markdown.pl ***
|
29
|
+
<p>+--
|
30
|
+
ciao
|
31
|
+
=--</p>
|
32
|
+
|
33
|
+
*** Output of Markdown.pl (parsed) ***
|
34
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
require 'maruku/ext/div'; {} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
+-----------------------------------{.warning}------
|
6
|
+
| this is the last warning!
|
7
|
+
|
|
8
|
+
| please, go away!
|
9
|
+
|
|
10
|
+
| +------------------------------------- {.menace} --
|
11
|
+
| | or else terrible things will happen
|
12
|
+
| +--------------------------------------------------
|
13
|
+
+---------------------------------------------------
|
14
|
+
*** Output of inspect ***
|
15
|
+
md_el(:document,[
|
16
|
+
md_el(:div,[
|
17
|
+
md_par(["this is the last warning!"]),
|
18
|
+
md_par(["please, go away!"]),
|
19
|
+
md_el(:div,[md_par(["or else terrible things will happen"])],{},[[:class, "menace"]])
|
20
|
+
],{},[[:class, "warning"]])
|
21
|
+
],{},[])
|
22
|
+
*** Output of to_html ***
|
23
|
+
<div class='warning'>
|
24
|
+
<p>this is the last warning!</p>
|
25
|
+
|
26
|
+
<p>please, go away!</p>
|
27
|
+
|
28
|
+
<div class='menace'>
|
29
|
+
<p>or else terrible things will happen</p>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
*** Output of to_latex ***
|
33
|
+
|
34
|
+
*** Output of to_md ***
|
35
|
+
this is the last warning!
|
36
|
+
|
37
|
+
please, go away!
|
38
|
+
|
39
|
+
or else terrible things will happen
|
40
|
+
*** Output of to_s ***
|
41
|
+
this is the last warning!please, go away!or else terrible things will happen
|
42
|
+
*** EOF ***
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
OK!
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
*** Output of Markdown.pl ***
|
51
|
+
<p>+-----------------------------------{.warning}------
|
52
|
+
| this is the last warning!
|
53
|
+
|
|
54
|
+
| please, go away!
|
55
|
+
|
|
56
|
+
| +------------------------------------- {.menace} --
|
57
|
+
| | or else terrible things will happen
|
58
|
+
| +--------------------------------------------------
|
59
|
+
+---------------------------------------------------</p>
|
60
|
+
|
61
|
+
*** Output of Markdown.pl (parsed) ***
|
62
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Simple test for emphasis.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
*Hello!* how are **you**?
|
6
|
+
*** Output of inspect ***
|
7
|
+
md_el(:document,[md_par([md_em(["Hello!"]), " how are ", md_strong(["you"]), "?"])],{},[])
|
8
|
+
*** Output of to_html ***
|
9
|
+
<p><em>Hello!</em> how are <strong>you</strong>?</p>
|
10
|
+
*** Output of to_latex ***
|
11
|
+
\emph{Hello!} how are \textbf{you}?
|
12
|
+
*** Output of to_md ***
|
13
|
+
Hello!how are you?
|
14
|
+
*** Output of to_s ***
|
15
|
+
Hello! how are you?
|
16
|
+
*** EOF ***
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
OK!
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
*** Output of Markdown.pl ***
|
25
|
+
<p><em>Hello!</em> how are <strong>you</strong>?</p>
|
26
|
+
|
27
|
+
*** Output of Markdown.pl (parsed) ***
|
28
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
|
7
|
+
This is an email address: <andrea@invalid.it>
|
8
|
+
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[
|
11
|
+
md_par(["This is an email address: ", md_email("andrea@invalid.it")])
|
12
|
+
],{},[])
|
13
|
+
*** Output of to_html ***
|
14
|
+
<p>This is an email address: <a href='mailto:andrea@invalid.it'>andrea@invalid.it</a></p>
|
15
|
+
*** Output of to_latex ***
|
16
|
+
This is an email address: \href{mailto:andrea@invalid.it}{andrea\char64invalid\char46it}
|
17
|
+
*** Output of to_md ***
|
18
|
+
This is an email address:
|
19
|
+
*** Output of to_s ***
|
20
|
+
This is an email address:
|
21
|
+
*** EOF ***
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
OK!
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
*** Output of Markdown.pl ***
|
30
|
+
<p>This is an email address: <a href="mailto:andrea@invalid.it">andrea@invalid.it</a></p>
|
31
|
+
|
32
|
+
*** Output of Markdown.pl (parsed) ***
|
33
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
Encoding: iso-8859-1
|
2
|
+
|
3
|
+
*** Parameters: ***
|
4
|
+
{}
|
5
|
+
*** Markdown input: ***
|
6
|
+
Encoding: iso-8859-1
|
7
|
+
|
8
|
+
This is iso-8859-1: àèìàù.
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[
|
11
|
+
md_par([
|
12
|
+
"This is iso-8859-1: \303\203\302\240\303\203\302\250\303\203\302\254\303\203\302\240\303\203\302\271."
|
13
|
+
])
|
14
|
+
],{},[])
|
15
|
+
*** Output of to_html ***
|
16
|
+
<p>This is iso-8859-1: à èìà ù.</p>
|
17
|
+
*** Output of to_latex ***
|
18
|
+
This is iso-8859-1: à èìà ù.
|
19
|
+
*** Output of to_md ***
|
20
|
+
This is iso-8859-1:
|
21
|
+
à èìà ù.
|
22
|
+
*** Output of to_s ***
|
23
|
+
This is iso-8859-1: à èìà ù.
|
24
|
+
*** EOF ***
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
OK!
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
*** Output of Markdown.pl ***
|
33
|
+
<p>Encoding: iso-8859-1</p>
|
34
|
+
|
35
|
+
<p>This is iso-8859-1: àèìàù.</p>
|
36
|
+
|
37
|
+
*** Output of Markdown.pl (parsed) ***
|
38
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:italian=>"\303\240\303\250\303\254\303\262\303\271."}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Italian: àèìòù.
|
6
|
+
|
7
|
+
Japanese: マルク
|
8
|
+
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[md_par(["Japanese: \343\203\236\343\203\253\343\202\257"])],{},[])
|
11
|
+
*** Output of to_html ***
|
12
|
+
<p>Japanese: マルク</p>
|
13
|
+
*** Output of to_latex ***
|
14
|
+
Japanese: マルク
|
15
|
+
*** Output of to_md ***
|
16
|
+
Japanese: マルク
|
17
|
+
*** Output of to_s ***
|
18
|
+
Japanese: マルク
|
19
|
+
*** EOF ***
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
OK!
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
*** Output of Markdown.pl ***
|
28
|
+
<p>Italian: àèìòù.</p>
|
29
|
+
|
30
|
+
<p>Japanese: マルク</p>
|
31
|
+
|
32
|
+
*** Output of Markdown.pl (parsed) ***
|
33
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Maruku translates HTML entities to the equivalent in LaTeX:
|
6
|
+
|
7
|
+
Entity | Result
|
8
|
+
------------|----------
|
9
|
+
`©` | ©
|
10
|
+
`£` | £
|
11
|
+
`a b` | a b
|
12
|
+
`λ` | λ
|
13
|
+
`—` | —
|
14
|
+
|
15
|
+
|
16
|
+
Entity-substitution does not happen in code blocks or inline code.
|
17
|
+
|
18
|
+
The following should not be translated:
|
19
|
+
|
20
|
+
©
|
21
|
+
|
22
|
+
It should read just like this: `©`.
|
23
|
+
|
24
|
+
|
25
|
+
*** Output of inspect ***
|
26
|
+
md_el(:document,[
|
27
|
+
md_par(["Maruku translates HTML entities to the equivalent in LaTeX:"]),
|
28
|
+
md_el(:table,[
|
29
|
+
md_el(:head_cell,["Entity"],{},[]),
|
30
|
+
md_el(:head_cell,["Result"],{},[]),
|
31
|
+
md_el(:cell,[md_code("©")],{},[]),
|
32
|
+
md_el(:cell,[md_entity("copy")],{},[]),
|
33
|
+
md_el(:cell,[md_code("£")],{},[]),
|
34
|
+
md_el(:cell,[md_entity("pound")],{},[]),
|
35
|
+
md_el(:cell,[md_code("a b")],{},[]),
|
36
|
+
md_el(:cell,["a", md_entity("nbsp"), "b"],{},[]),
|
37
|
+
md_el(:cell,[md_code("λ")],{},[]),
|
38
|
+
md_el(:cell,[md_entity("lambda")],{},[]),
|
39
|
+
md_el(:cell,[md_code("—")],{},[]),
|
40
|
+
md_el(:cell,[md_entity("mdash")],{},[])
|
41
|
+
],{:align=>[:left, :left]},[]),
|
42
|
+
md_par([
|
43
|
+
"Entity-substitution does not happen in code blocks or inline code."
|
44
|
+
]),
|
45
|
+
md_par(["The following should not be translated:"]),
|
46
|
+
md_el(:code,[],{:raw_code=>"©"},[]),
|
47
|
+
md_par(["It should read just like this: ", md_code("©"), "."])
|
48
|
+
],{},[])
|
49
|
+
*** Output of to_html ***
|
50
|
+
<p>Maruku translates HTML entities to the equivalent in LaTeX:</p>
|
51
|
+
<table><thead><tr><th>Entity</th><th>Result</th></tr></thead><tbody><tr><td style='text-align: left;'><code>&copy;</code></td><td style='text-align: left;'>©</td>
|
52
|
+
</tr><tr><td style='text-align: left;'><code>&pound;</code></td><td style='text-align: left;'>£</td>
|
53
|
+
</tr><tr><td style='text-align: left;'><code>a&nbsp;b</code></td><td style='text-align: left;'>a b</td>
|
54
|
+
</tr><tr><td style='text-align: left;'><code>&lambda;</code></td><td style='text-align: left;'>λ</td>
|
55
|
+
</tr><tr><td style='text-align: left;'><code>&mdash;</code></td><td style='text-align: left;'>—</td>
|
56
|
+
</tr></tbody></table>
|
57
|
+
<p>Entity-substitution does not happen in code blocks or inline code.</p>
|
58
|
+
|
59
|
+
<p>The following should not be translated:</p>
|
60
|
+
|
61
|
+
<pre><code>&copy;</code></pre>
|
62
|
+
|
63
|
+
<p>It should read just like this: <code>&copy;</code>.</p>
|
64
|
+
*** Output of to_latex ***
|
65
|
+
Maruku translates HTML entities to the equivalent in \LaTeX\xspace :
|
66
|
+
|
67
|
+
\begin{tabular}{l|l}
|
68
|
+
Entity&Result\\
|
69
|
+
\hline
|
70
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38copy\char59}}&\copyright{}\\
|
71
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38pound\char59}}&\pounds{}\\
|
72
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt a\char38nbsp\char59b}}&a~{}b\\
|
73
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38lambda\char59}}&$\lambda${}\\
|
74
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38mdash\char59}}&---{}\\
|
75
|
+
\end{tabular}
|
76
|
+
|
77
|
+
Entity-substitution does not happen in code blocks or inline code.
|
78
|
+
|
79
|
+
The following should not be translated:
|
80
|
+
|
81
|
+
\begin{verbatim}©\end{verbatim}
|
82
|
+
It should read just like this: {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38copy\char59}}.
|
83
|
+
*** Output of to_md ***
|
84
|
+
Maruku translates HTML entities to the
|
85
|
+
equivalent in LaTeX:
|
86
|
+
|
87
|
+
EntityResultabEntity-substitution does not happen in
|
88
|
+
code blocks or inline code.
|
89
|
+
|
90
|
+
The following should not be translated:
|
91
|
+
|
92
|
+
It should read just like this: .
|
93
|
+
*** Output of to_s ***
|
94
|
+
Maruku translates HTML entities to the equivalent in LaTeX:EntityResultabEntity-substitution does not happen in code blocks or inline code.The following should not be translated:It should read just like this: .
|
95
|
+
*** EOF ***
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
OK!
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
*** Output of Markdown.pl ***
|
104
|
+
<p>Maruku translates HTML entities to the equivalent in LaTeX:</p>
|
105
|
+
|
106
|
+
<p>Entity | Result
|
107
|
+
------------|----------
|
108
|
+
<code>&copy;</code> | ©
|
109
|
+
<code>&pound;</code> | £
|
110
|
+
<code>a&nbsp;b</code> | a b
|
111
|
+
<code>&lambda;</code> | λ
|
112
|
+
<code>&mdash;</code> | —</p>
|
113
|
+
|
114
|
+
<p>Entity-substitution does not happen in code blocks or inline code.</p>
|
115
|
+
|
116
|
+
<p>The following should not be translated:</p>
|
117
|
+
|
118
|
+
<pre><code>&copy;
|
119
|
+
</code></pre>
|
120
|
+
|
121
|
+
<p>It should read just like this: <code>&copy;</code>.</p>
|
122
|
+
|
123
|
+
*** Output of Markdown.pl (parsed) ***
|
124
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|