maruku 0.5.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/maruku +6 -1
- data/bin/marutest +25 -18
- data/lib/maruku.rb +3 -0
- data/lib/maruku/ext/div.rb +39 -6
- data/lib/maruku/ext/math/latex_fix.rb +1 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +9 -8
- data/lib/maruku/ext/math/parsing.rb +15 -1
- data/lib/maruku/ext/math/to_html.rb +34 -17
- data/lib/maruku/ext/math/to_latex.rb +4 -0
- data/lib/maruku/helpers.rb +3 -3
- data/lib/maruku/input/charsource.rb +1 -1
- data/lib/maruku/input/parse_block.rb +1 -0
- data/lib/maruku/input/parse_doc.rb +12 -5
- data/lib/maruku/input/parse_span_better.rb +24 -10
- data/lib/maruku/output/s5/to_s5.rb +14 -1
- data/lib/maruku/output/to_html.rb +20 -1
- data/lib/maruku/output/to_latex.rb +27 -0
- data/lib/maruku/output/to_latex_entities.rb +2 -2
- data/lib/maruku/output/to_s.rb +5 -2
- data/lib/maruku/string_utils.rb +2 -2
- data/lib/maruku/structures.rb +2 -0
- data/lib/maruku/tests/new_parser.rb +5 -2
- data/lib/maruku/version.rb +1 -1
- data/tests/bugs/code_in_links.md +85 -0
- data/tests/bugs/complex_escaping.md +34 -0
- data/tests/unittest/abbreviations.md +2 -10
- data/tests/unittest/alt.md +2 -3
- data/tests/unittest/attributes/att2.md +2 -4
- data/tests/unittest/attributes/att3.md +2 -7
- data/tests/unittest/attributes/attributes.md +2 -15
- data/tests/unittest/attributes/circular.md +2 -7
- data/tests/unittest/attributes/default.md +2 -6
- data/tests/unittest/blank.md +2 -5
- data/tests/unittest/blanks_in_code.md +2 -21
- data/tests/unittest/bug_def.md +2 -3
- data/tests/unittest/bug_table.md +2 -11
- data/tests/unittest/code.md +2 -9
- data/tests/unittest/code2.md +2 -8
- data/tests/unittest/code3.md +2 -21
- data/tests/unittest/data_loss.md +2 -7
- data/tests/unittest/divs/div1.md +32 -57
- data/tests/unittest/divs/div2.md +6 -7
- data/tests/unittest/divs/div3_nest.md +8 -13
- data/tests/unittest/easy.md +2 -3
- data/tests/unittest/email.md +2 -3
- data/tests/unittest/encoding/iso-8859-1.md +2 -5
- data/tests/unittest/encoding/utf-8.md +2 -5
- data/tests/unittest/entities.md +2 -20
- data/tests/unittest/escaping.md +2 -12
- data/tests/unittest/extra_dl.md +2 -10
- data/tests/unittest/extra_header_id.md +2 -13
- data/tests/unittest/extra_table1.md +2 -8
- data/tests/unittest/footnotes.md +2 -19
- data/tests/{bugs/html.md → unittest/hang.md} +9 -9
- data/tests/unittest/headers.md +2 -7
- data/tests/unittest/hex_entities.md +2 -3
- data/tests/unittest/hrule.md +2 -11
- data/tests/unittest/html2.md +2 -6
- data/tests/unittest/html3.md +2 -6
- data/tests/unittest/html4.md +2 -7
- data/tests/unittest/html5.md +2 -5
- data/tests/unittest/ie.md +2 -23
- data/tests/unittest/images.md +2 -14
- data/tests/unittest/images2.md +2 -5
- data/tests/unittest/inline_html.md +6 -102
- data/tests/unittest/inline_html2.md +2 -5
- data/tests/unittest/links.md +17 -50
- data/tests/unittest/links2.md +2 -3
- data/tests/unittest/list1.md +2 -10
- data/tests/unittest/list12.md +2 -5
- data/tests/unittest/list2.md +2 -10
- data/tests/unittest/list3.md +2 -14
- data/tests/unittest/list4.md +2 -17
- data/tests/unittest/lists.md +2 -39
- data/tests/unittest/lists10.md +2 -7
- data/tests/unittest/lists11.md +2 -5
- data/tests/unittest/lists6.md +2 -3
- data/tests/unittest/lists9.md +2 -11
- data/tests/unittest/lists_after_paragraph.md +3 -51
- data/tests/unittest/lists_ol.md +2 -52
- data/tests/unittest/loss.md +2 -3
- data/tests/unittest/math/equations.md +54 -37
- data/tests/unittest/math/inline.md +4 -12
- data/tests/unittest/math/math2.md +4 -57
- data/tests/unittest/math/notmath.md +2 -5
- data/tests/unittest/math/table.md +5 -11
- data/tests/unittest/math/table2.md +2 -8
- data/tests/unittest/misc_sw.md +2 -80
- data/tests/unittest/notyet/escape.md +2 -5
- data/tests/unittest/notyet/header_after_par.md +2 -13
- data/tests/unittest/notyet/ticks.md +2 -3
- data/tests/unittest/notyet/triggering.md +2 -39
- data/tests/unittest/olist.md +2 -9
- data/tests/unittest/one.md +2 -3
- data/tests/unittest/paragraph.md +2 -3
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +2 -5
- data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -5
- data/tests/unittest/paragraphs.md +2 -10
- data/tests/unittest/pending/amps.md +2 -4
- data/tests/unittest/pending/empty_cells.md +2 -6
- data/tests/unittest/pending/link.md +2 -21
- data/tests/unittest/pending/ref.md +2 -3
- data/tests/unittest/recover/recover_links.md +7 -8
- data/tests/{bugs → unittest/red_tests}/abbrev.md +12 -103
- data/tests/unittest/{lists7.md → red_tests/lists7.md} +2 -13
- data/tests/unittest/{lists7b.md → red_tests/lists7b.md} +2 -10
- data/tests/unittest/{lists8.md → red_tests/lists8.md} +2 -9
- data/tests/unittest/red_tests/xml.md +70 -0
- data/tests/unittest/references/long_example.md +2 -7
- data/tests/unittest/references/spaces_and_numbers.md +2 -3
- data/tests/unittest/smartypants.md +2 -47
- data/tests/unittest/syntax_hl.md +2 -18
- data/tests/unittest/table_attributes.md +2 -8
- data/tests/unittest/test.md +2 -3
- data/tests/unittest/underscore_in_words.md +27 -0
- data/tests/unittest/wrapping.md +2 -11
- data/tests/unittest/xml2.md +2 -5
- data/tests/unittest/xml3.md +2 -8
- data/tests/unittest/xml_instruction.md +2 -10
- data/unit_test_span.sh +2 -1
- metadata +242 -241
- data/docs/changelog.html +0 -490
- data/docs/entity_test.html +0 -258
- data/docs/exd.html +0 -307
- data/docs/index.html +0 -332
- data/docs/markdown_syntax.html +0 -690
- data/docs/maruku.html +0 -332
- data/docs/proposal.html +0 -326
- data/docs/tmp.md +0 -2
- data/lib/sort_prof.rb +0 -22
- data/tests/bugs/links.md +0 -47
- data/tests/diagrams/diagrams.md +0 -302
- data/tests/s5/a.md +0 -13
- data/tests/s5/instiki+s5.md +0 -105
- data/tests/unittest/xml.md +0 -54
data/tests/unittest/links2.md
CHANGED
@@ -29,7 +29,6 @@ See foo bar
|
|
29
29
|
|
30
30
|
|
31
31
|
*** Output of Markdown.pl ***
|
32
|
-
|
33
|
-
|
32
|
+
(not used anymore)
|
34
33
|
*** Output of Markdown.pl (parsed) ***
|
35
|
-
|
34
|
+
(not used anymore)
|
data/tests/unittest/list1.md
CHANGED
@@ -53,14 +53,6 @@ A list item with a blockquote:This is a blockquote inside a list item.
|
|
53
53
|
|
54
54
|
|
55
55
|
*** Output of Markdown.pl ***
|
56
|
-
|
57
|
-
<li><p>A list item with a blockquote:</p>
|
58
|
-
|
59
|
-
<blockquote>
|
60
|
-
<p>This is a blockquote
|
61
|
-
inside a list item.</p>
|
62
|
-
</blockquote></li>
|
63
|
-
</ul>
|
64
|
-
|
56
|
+
(not used anymore)
|
65
57
|
*** Output of Markdown.pl (parsed) ***
|
66
|
-
|
58
|
+
(not used anymore)
|
data/tests/unittest/list12.md
CHANGED
@@ -35,9 +35,6 @@ Maruku: good.
|
|
35
35
|
|
36
36
|
|
37
37
|
*** Output of Markdown.pl ***
|
38
|
-
|
39
|
-
<li>[Maruku]: good.</li>
|
40
|
-
</ul>
|
41
|
-
|
38
|
+
(not used anymore)
|
42
39
|
*** Output of Markdown.pl (parsed) ***
|
43
|
-
|
40
|
+
(not used anymore)
|
data/tests/unittest/list2.md
CHANGED
@@ -63,14 +63,6 @@ This is a list item with two paragraphs.This is the second paragraph in the list
|
|
63
63
|
|
64
64
|
|
65
65
|
*** Output of Markdown.pl ***
|
66
|
-
|
67
|
-
<li><p>This is a list item with two paragraphs.</p>
|
68
|
-
|
69
|
-
<p>This is the second paragraph in the list item. You're
|
70
|
-
only required to indent the first line. Lorem ipsum dolor
|
71
|
-
sit amet, consectetuer adipiscing elit.</p></li>
|
72
|
-
<li><p>other</p></li>
|
73
|
-
</ul>
|
74
|
-
|
66
|
+
(not used anymore)
|
75
67
|
*** Output of Markdown.pl (parsed) ***
|
76
|
-
|
68
|
+
(not used anymore)
|
data/tests/unittest/list3.md
CHANGED
@@ -71,18 +71,6 @@ A list item with a blockquote:This is a blockquote inside a list item.A list ite
|
|
71
71
|
|
72
72
|
|
73
73
|
*** Output of Markdown.pl ***
|
74
|
-
|
75
|
-
<li><p>A list item with a blockquote:</p>
|
76
|
-
|
77
|
-
<blockquote>
|
78
|
-
<p>This is a blockquote
|
79
|
-
inside a list item.</p>
|
80
|
-
</blockquote></li>
|
81
|
-
<li><p>A list item with a code block:</p>
|
82
|
-
|
83
|
-
<pre><code><code goes here>
|
84
|
-
</code></pre></li>
|
85
|
-
</ul>
|
86
|
-
|
74
|
+
(not used anymore)
|
87
75
|
*** Output of Markdown.pl (parsed) ***
|
88
|
-
|
76
|
+
(not used anymore)
|
data/tests/unittest/list4.md
CHANGED
@@ -96,21 +96,6 @@ This is a list:onetwoThis is not a list: * one ciaoThis is a list:onetwoThis is
|
|
96
96
|
|
97
97
|
|
98
98
|
*** Output of Markdown.pl ***
|
99
|
-
|
100
|
-
* one
|
101
|
-
* two</p>
|
102
|
-
|
103
|
-
<p>This is not a list:
|
104
|
-
* one
|
105
|
-
ciao</p>
|
106
|
-
|
107
|
-
<p>This is a list:
|
108
|
-
1. one
|
109
|
-
1. two</p>
|
110
|
-
|
111
|
-
<p>This is not a list:
|
112
|
-
1987. one
|
113
|
-
ciao</p>
|
114
|
-
|
99
|
+
(not used anymore)
|
115
100
|
*** Output of Markdown.pl (parsed) ***
|
116
|
-
|
101
|
+
(not used anymore)
|
data/tests/unittest/lists.md
CHANGED
@@ -199,43 +199,6 @@ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi p
|
|
199
199
|
|
200
200
|
|
201
201
|
*** Output of Markdown.pl ***
|
202
|
-
|
203
|
-
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
204
|
-
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
|
205
|
-
viverra nec, fringilla in, laoreet vitae, risus.</li>
|
206
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
207
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
208
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
209
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.
|
210
|
-
<ul>
|
211
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
212
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
213
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
214
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
215
|
-
</ul></li>
|
216
|
-
</ul>
|
217
|
-
|
218
|
-
<p>Ancora</p>
|
219
|
-
|
220
|
-
<ul>
|
221
|
-
<li><p>This is a list item with two paragraphs. Lorem ipsum dolor
|
222
|
-
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
|
223
|
-
mi posuere lectus.</p>
|
224
|
-
|
225
|
-
<p>ATTENZIONE!</p></li>
|
226
|
-
<li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p></li>
|
227
|
-
</ul>
|
228
|
-
|
229
|
-
<p>Ancora</p>
|
230
|
-
|
231
|
-
<ul>
|
232
|
-
<li><p>This is a list item with two paragraphs.</p>
|
233
|
-
|
234
|
-
<p>This is the second paragraph in the list item. You're
|
235
|
-
only required to indent the first line. Lorem ipsum dolor
|
236
|
-
sit amet, consectetuer adipiscing elit.</p></li>
|
237
|
-
<li><p>Another item in the same list.</p></li>
|
238
|
-
</ul>
|
239
|
-
|
202
|
+
(not used anymore)
|
240
203
|
*** Output of Markdown.pl (parsed) ***
|
241
|
-
|
204
|
+
(not used anymore)
|
data/tests/unittest/lists10.md
CHANGED
@@ -41,11 +41,6 @@ List:è
|
|
41
41
|
|
42
42
|
|
43
43
|
*** Output of Markdown.pl ***
|
44
|
-
|
45
|
-
|
46
|
-
<ul>
|
47
|
-
<li>è<code>gcc</code></li>
|
48
|
-
</ul>
|
49
|
-
|
44
|
+
(not used anymore)
|
50
45
|
*** Output of Markdown.pl (parsed) ***
|
51
|
-
|
46
|
+
(not used anymore)
|
data/tests/unittest/lists11.md
CHANGED
@@ -23,9 +23,6 @@ md_el(:document,[md_par(["- \316\255\316\275\316\261"])],{},[])
|
|
23
23
|
|
24
24
|
|
25
25
|
*** Output of Markdown.pl ***
|
26
|
-
|
27
|
-
<li>ένα</li>
|
28
|
-
</ul>
|
29
|
-
|
26
|
+
(not used anymore)
|
30
27
|
*** Output of Markdown.pl (parsed) ***
|
31
|
-
|
28
|
+
(not used anymore)
|
data/tests/unittest/lists6.md
CHANGED
data/tests/unittest/lists9.md
CHANGED
@@ -71,15 +71,6 @@ DuetretretreDue
|
|
71
71
|
|
72
72
|
|
73
73
|
*** Output of Markdown.pl ***
|
74
|
-
|
75
|
-
<li>Due
|
76
|
-
<ol>
|
77
|
-
<li>tre</li>
|
78
|
-
<li>tre</li>
|
79
|
-
<li>tre</li>
|
80
|
-
</ol></li>
|
81
|
-
<li>Due</li>
|
82
|
-
</ul>
|
83
|
-
|
74
|
+
(not used anymore)
|
84
75
|
*** Output of Markdown.pl (parsed) ***
|
85
|
-
|
76
|
+
(not used anymore)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
This should not trigger the list
|
2
2
|
*** Parameters: ***
|
3
3
|
{}
|
4
4
|
*** Markdown input: ***
|
@@ -215,54 +215,6 @@ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagra
|
|
215
215
|
|
216
216
|
|
217
217
|
*** Output of Markdown.pl ***
|
218
|
-
|
219
|
-
* ciao</p>
|
220
|
-
|
221
|
-
<p>Paragraph, list with 1 space:
|
222
|
-
* ciao</p>
|
223
|
-
|
224
|
-
<p>Paragraph, list with 3 space:
|
225
|
-
* ciao</p>
|
226
|
-
|
227
|
-
<p>Paragraph, list with 4 spaces:
|
228
|
-
* ciao</p>
|
229
|
-
|
230
|
-
<p>Paragraph, list with 1 tab:
|
231
|
-
* ciao</p>
|
232
|
-
|
233
|
-
<p>Paragraph (1 space after), list with no space:
|
234
|
-
* ciao</p>
|
235
|
-
|
236
|
-
<p>Paragraph (2 spaces after), list with no space: <br />
|
237
|
-
* ciao</p>
|
238
|
-
|
239
|
-
<p>Paragraph (3 spaces after), list with no space: <br />
|
240
|
-
* ciao</p>
|
241
|
-
|
242
|
-
<p>Paragraph with block quote:</p>
|
243
|
-
|
244
|
-
<blockquote>
|
245
|
-
<p>Quoted</p>
|
246
|
-
</blockquote>
|
247
|
-
|
248
|
-
<p>Paragraph with header:</p>
|
249
|
-
|
250
|
-
<h3>header</h3>
|
251
|
-
|
252
|
-
<p>Paragraph with header on two lines:</p>
|
253
|
-
|
254
|
-
<h2>header</h2>
|
255
|
-
|
256
|
-
<p>Paragraph with html after</p>
|
257
|
-
|
258
|
-
<div></div>
|
259
|
-
|
260
|
-
<p>Paragraph with html after, indented:
|
261
|
-
<em>Emphasis</em></p>
|
262
|
-
|
263
|
-
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
|
264
|
-
|
265
|
-
<p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em> Emph</em></p>
|
266
|
-
|
218
|
+
(not used anymore)
|
267
219
|
*** Output of Markdown.pl (parsed) ***
|
268
|
-
|
220
|
+
(not used anymore)
|
data/tests/unittest/lists_ol.md
CHANGED
@@ -269,56 +269,6 @@ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi p
|
|
269
269
|
|
270
270
|
|
271
271
|
*** Output of Markdown.pl ***
|
272
|
-
|
273
|
-
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
|
274
|
-
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
|
275
|
-
viverra nec, fringilla in, laoreet vitae, risus.
|
276
|
-
<ol>
|
277
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
278
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
279
|
-
</ol></li>
|
280
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
281
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.
|
282
|
-
<ol>
|
283
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
284
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
285
|
-
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
|
286
|
-
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
|
287
|
-
</ol></li>
|
288
|
-
</ol>
|
289
|
-
|
290
|
-
<p>Ancora</p>
|
291
|
-
|
292
|
-
<ol>
|
293
|
-
<li><p>This is a list item with two paragraphs. Lorem ipsum dolor
|
294
|
-
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
|
295
|
-
mi posuere lectus.</p>
|
296
|
-
|
297
|
-
<p>ATTENZIONE!</p>
|
298
|
-
|
299
|
-
<ul>
|
300
|
-
<li>Uno</li>
|
301
|
-
<li>Due
|
302
|
-
<ol>
|
303
|
-
<li>tre</li>
|
304
|
-
<li>tre</li>
|
305
|
-
<li>tre</li>
|
306
|
-
</ol></li>
|
307
|
-
<li>Due</li>
|
308
|
-
</ul></li>
|
309
|
-
<li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p></li>
|
310
|
-
</ol>
|
311
|
-
|
312
|
-
<p>Ancora</p>
|
313
|
-
|
314
|
-
<ul>
|
315
|
-
<li><p>This is a list item with two paragraphs.</p>
|
316
|
-
|
317
|
-
<p>This is the second paragraph in the list item. You're
|
318
|
-
only required to indent the first line. Lorem ipsum dolor
|
319
|
-
sit amet, consectetuer adipiscing elit.</p></li>
|
320
|
-
<li><p>Another item in the same list.</p></li>
|
321
|
-
</ul>
|
322
|
-
|
272
|
+
(not used anymore)
|
323
273
|
*** Output of Markdown.pl (parsed) ***
|
324
|
-
|
274
|
+
(not used anymore)
|
data/tests/unittest/loss.md
CHANGED
@@ -23,7 +23,6 @@ md_el(:document,[md_html("<br />")],{},[])
|
|
23
23
|
|
24
24
|
|
25
25
|
*** Output of Markdown.pl ***
|
26
|
-
|
27
|
-
|
26
|
+
(not used anymore)
|
28
27
|
*** Output of Markdown.pl (parsed) ***
|
29
|
-
|
28
|
+
(not used anymore)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Write a comment here
|
2
2
|
*** Parameters: ***
|
3
|
-
{}
|
3
|
+
require 'maruku/ext/math';{}
|
4
4
|
*** Markdown input: ***
|
5
5
|
|
6
6
|
$$ x = y $$
|
@@ -16,54 +16,71 @@ $$
|
|
16
16
|
|
17
17
|
*** Output of inspect ***
|
18
18
|
md_el(:document,[
|
19
|
-
|
20
|
-
md_el(:
|
21
|
-
|
22
|
-
|
19
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y ",:num=>nil},[]),
|
20
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[]),
|
21
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[]),
|
22
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[])
|
23
23
|
],{},[])
|
24
24
|
*** Output of to_html ***
|
25
|
-
<
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<p>$$ x = y $$</p>
|
30
|
-
|
31
|
-
<p>$$ x = y $$</p>
|
25
|
+
<div class='maruku-equation'><code class='maruku-mathml'> x = y </code><div class='maruku-eq-tex'><code style='display: none'>x = y</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
|
26
|
+
</code><div class='maruku-eq-tex'><code style='display: none'>x = y</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
|
27
|
+
</code><div class='maruku-eq-tex'><code style='display: none'>x = y</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
|
28
|
+
</code><div class='maruku-eq-tex'><code style='display: none'>x = y</code></div></div>
|
32
29
|
*** Output of to_latex ***
|
33
|
-
|
34
|
-
|
35
|
-
\
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
30
|
+
\begin{displaymath}
|
31
|
+
x = y
|
32
|
+
\end{displaymath}
|
33
|
+
\begin{displaymath}
|
34
|
+
x = y
|
35
|
+
\end{displaymath}
|
36
|
+
\begin{displaymath}
|
37
|
+
x = y
|
38
|
+
\end{displaymath}
|
39
|
+
\begin{displaymath}
|
40
|
+
x = y
|
41
|
+
\end{displaymath}
|
40
42
|
*** Output of to_md ***
|
41
|
-
$$ x = y $$
|
42
|
-
|
43
|
-
$$ x$$ x = y $$
|
44
43
|
|
45
|
-
$$ x = y $$
|
46
44
|
*** Output of to_s ***
|
47
|
-
$$ x = y $$$$ x$$ x = y $$$$ x = y $$
|
48
|
-
*** EOF ***
|
49
|
-
|
50
45
|
|
51
|
-
|
52
|
-
OK!
|
46
|
+
*** EOF ***
|
53
47
|
|
54
48
|
|
55
49
|
|
56
|
-
*** Output of Markdown.pl ***
|
57
|
-
<p>$$ x = y $$</p>
|
58
50
|
|
59
|
-
|
60
|
-
= y $$</p>
|
51
|
+
Failed tests: [:to_html]
|
61
52
|
|
62
|
-
|
63
|
-
|
53
|
+
*** Output of inspect ***
|
54
|
+
md_el(:document,[
|
55
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y ",:num=>nil},[]),
|
56
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[]),
|
57
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[]),
|
58
|
+
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[])
|
59
|
+
],{},[])
|
60
|
+
*** Output of to_html ***
|
61
|
+
-----| WARNING | -----
|
62
|
+
<div class='maruku-equation'><code class='maruku-mathml'> x = y </code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
|
63
|
+
</code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
|
64
|
+
</code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
|
65
|
+
</code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div>
|
66
|
+
*** Output of to_latex ***
|
67
|
+
\begin{displaymath}
|
68
|
+
x = y
|
69
|
+
\end{displaymath}
|
70
|
+
\begin{displaymath}
|
71
|
+
x = y
|
72
|
+
\end{displaymath}
|
73
|
+
\begin{displaymath}
|
74
|
+
x = y
|
75
|
+
\end{displaymath}
|
76
|
+
\begin{displaymath}
|
77
|
+
x = y
|
78
|
+
\end{displaymath}
|
79
|
+
*** Output of to_md ***
|
64
80
|
|
65
|
-
|
66
|
-
$$</p>
|
81
|
+
*** Output of to_s ***
|
67
82
|
|
83
|
+
*** Output of Markdown.pl ***
|
84
|
+
(not used anymore)
|
68
85
|
*** Output of Markdown.pl (parsed) ***
|
69
|
-
|
86
|
+
(not used anymore)
|