maruku 0.5.9 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/bin/maruku +6 -1
  2. data/bin/marutest +25 -18
  3. data/lib/maruku.rb +3 -0
  4. data/lib/maruku/ext/div.rb +39 -6
  5. data/lib/maruku/ext/math/latex_fix.rb +1 -0
  6. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +9 -8
  7. data/lib/maruku/ext/math/parsing.rb +15 -1
  8. data/lib/maruku/ext/math/to_html.rb +34 -17
  9. data/lib/maruku/ext/math/to_latex.rb +4 -0
  10. data/lib/maruku/helpers.rb +3 -3
  11. data/lib/maruku/input/charsource.rb +1 -1
  12. data/lib/maruku/input/parse_block.rb +1 -0
  13. data/lib/maruku/input/parse_doc.rb +12 -5
  14. data/lib/maruku/input/parse_span_better.rb +24 -10
  15. data/lib/maruku/output/s5/to_s5.rb +14 -1
  16. data/lib/maruku/output/to_html.rb +20 -1
  17. data/lib/maruku/output/to_latex.rb +27 -0
  18. data/lib/maruku/output/to_latex_entities.rb +2 -2
  19. data/lib/maruku/output/to_s.rb +5 -2
  20. data/lib/maruku/string_utils.rb +2 -2
  21. data/lib/maruku/structures.rb +2 -0
  22. data/lib/maruku/tests/new_parser.rb +5 -2
  23. data/lib/maruku/version.rb +1 -1
  24. data/tests/bugs/code_in_links.md +85 -0
  25. data/tests/bugs/complex_escaping.md +34 -0
  26. data/tests/unittest/abbreviations.md +2 -10
  27. data/tests/unittest/alt.md +2 -3
  28. data/tests/unittest/attributes/att2.md +2 -4
  29. data/tests/unittest/attributes/att3.md +2 -7
  30. data/tests/unittest/attributes/attributes.md +2 -15
  31. data/tests/unittest/attributes/circular.md +2 -7
  32. data/tests/unittest/attributes/default.md +2 -6
  33. data/tests/unittest/blank.md +2 -5
  34. data/tests/unittest/blanks_in_code.md +2 -21
  35. data/tests/unittest/bug_def.md +2 -3
  36. data/tests/unittest/bug_table.md +2 -11
  37. data/tests/unittest/code.md +2 -9
  38. data/tests/unittest/code2.md +2 -8
  39. data/tests/unittest/code3.md +2 -21
  40. data/tests/unittest/data_loss.md +2 -7
  41. data/tests/unittest/divs/div1.md +32 -57
  42. data/tests/unittest/divs/div2.md +6 -7
  43. data/tests/unittest/divs/div3_nest.md +8 -13
  44. data/tests/unittest/easy.md +2 -3
  45. data/tests/unittest/email.md +2 -3
  46. data/tests/unittest/encoding/iso-8859-1.md +2 -5
  47. data/tests/unittest/encoding/utf-8.md +2 -5
  48. data/tests/unittest/entities.md +2 -20
  49. data/tests/unittest/escaping.md +2 -12
  50. data/tests/unittest/extra_dl.md +2 -10
  51. data/tests/unittest/extra_header_id.md +2 -13
  52. data/tests/unittest/extra_table1.md +2 -8
  53. data/tests/unittest/footnotes.md +2 -19
  54. data/tests/{bugs/html.md → unittest/hang.md} +9 -9
  55. data/tests/unittest/headers.md +2 -7
  56. data/tests/unittest/hex_entities.md +2 -3
  57. data/tests/unittest/hrule.md +2 -11
  58. data/tests/unittest/html2.md +2 -6
  59. data/tests/unittest/html3.md +2 -6
  60. data/tests/unittest/html4.md +2 -7
  61. data/tests/unittest/html5.md +2 -5
  62. data/tests/unittest/ie.md +2 -23
  63. data/tests/unittest/images.md +2 -14
  64. data/tests/unittest/images2.md +2 -5
  65. data/tests/unittest/inline_html.md +6 -102
  66. data/tests/unittest/inline_html2.md +2 -5
  67. data/tests/unittest/links.md +17 -50
  68. data/tests/unittest/links2.md +2 -3
  69. data/tests/unittest/list1.md +2 -10
  70. data/tests/unittest/list12.md +2 -5
  71. data/tests/unittest/list2.md +2 -10
  72. data/tests/unittest/list3.md +2 -14
  73. data/tests/unittest/list4.md +2 -17
  74. data/tests/unittest/lists.md +2 -39
  75. data/tests/unittest/lists10.md +2 -7
  76. data/tests/unittest/lists11.md +2 -5
  77. data/tests/unittest/lists6.md +2 -3
  78. data/tests/unittest/lists9.md +2 -11
  79. data/tests/unittest/lists_after_paragraph.md +3 -51
  80. data/tests/unittest/lists_ol.md +2 -52
  81. data/tests/unittest/loss.md +2 -3
  82. data/tests/unittest/math/equations.md +54 -37
  83. data/tests/unittest/math/inline.md +4 -12
  84. data/tests/unittest/math/math2.md +4 -57
  85. data/tests/unittest/math/notmath.md +2 -5
  86. data/tests/unittest/math/table.md +5 -11
  87. data/tests/unittest/math/table2.md +2 -8
  88. data/tests/unittest/misc_sw.md +2 -80
  89. data/tests/unittest/notyet/escape.md +2 -5
  90. data/tests/unittest/notyet/header_after_par.md +2 -13
  91. data/tests/unittest/notyet/ticks.md +2 -3
  92. data/tests/unittest/notyet/triggering.md +2 -39
  93. data/tests/unittest/olist.md +2 -9
  94. data/tests/unittest/one.md +2 -3
  95. data/tests/unittest/paragraph.md +2 -3
  96. data/tests/unittest/paragraph_rules/dont_merge_ref.md +2 -5
  97. data/tests/unittest/paragraph_rules/tab_is_blank.md +2 -5
  98. data/tests/unittest/paragraphs.md +2 -10
  99. data/tests/unittest/pending/amps.md +2 -4
  100. data/tests/unittest/pending/empty_cells.md +2 -6
  101. data/tests/unittest/pending/link.md +2 -21
  102. data/tests/unittest/pending/ref.md +2 -3
  103. data/tests/unittest/recover/recover_links.md +7 -8
  104. data/tests/{bugs → unittest/red_tests}/abbrev.md +12 -103
  105. data/tests/unittest/{lists7.md → red_tests/lists7.md} +2 -13
  106. data/tests/unittest/{lists7b.md → red_tests/lists7b.md} +2 -10
  107. data/tests/unittest/{lists8.md → red_tests/lists8.md} +2 -9
  108. data/tests/unittest/red_tests/xml.md +70 -0
  109. data/tests/unittest/references/long_example.md +2 -7
  110. data/tests/unittest/references/spaces_and_numbers.md +2 -3
  111. data/tests/unittest/smartypants.md +2 -47
  112. data/tests/unittest/syntax_hl.md +2 -18
  113. data/tests/unittest/table_attributes.md +2 -8
  114. data/tests/unittest/test.md +2 -3
  115. data/tests/unittest/underscore_in_words.md +27 -0
  116. data/tests/unittest/wrapping.md +2 -11
  117. data/tests/unittest/xml2.md +2 -5
  118. data/tests/unittest/xml3.md +2 -8
  119. data/tests/unittest/xml_instruction.md +2 -10
  120. data/unit_test_span.sh +2 -1
  121. metadata +242 -241
  122. data/docs/changelog.html +0 -490
  123. data/docs/entity_test.html +0 -258
  124. data/docs/exd.html +0 -307
  125. data/docs/index.html +0 -332
  126. data/docs/markdown_syntax.html +0 -690
  127. data/docs/maruku.html +0 -332
  128. data/docs/proposal.html +0 -326
  129. data/docs/tmp.md +0 -2
  130. data/lib/sort_prof.rb +0 -22
  131. data/tests/bugs/links.md +0 -47
  132. data/tests/diagrams/diagrams.md +0 -302
  133. data/tests/s5/a.md +0 -13
  134. data/tests/s5/instiki+s5.md +0 -105
  135. data/tests/unittest/xml.md +0 -54
@@ -29,7 +29,6 @@ See foo bar
29
29
 
30
30
 
31
31
  *** Output of Markdown.pl ***
32
- <p>See [foo' bar]</p>
33
-
32
+ (not used anymore)
34
33
  *** Output of Markdown.pl (parsed) ***
35
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
34
+ (not used anymore)
@@ -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
- <ul>
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
58
+ (not used anymore)
@@ -35,9 +35,6 @@ Maruku: good.
35
35
 
36
36
 
37
37
  *** Output of Markdown.pl ***
38
- <ul>
39
- <li>[Maruku]: good.</li>
40
- </ul>
41
-
38
+ (not used anymore)
42
39
  *** Output of Markdown.pl (parsed) ***
43
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
40
+ (not used anymore)
@@ -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
- <ul>
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
68
+ (not used anymore)
@@ -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
- <ul>
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>&lt;code goes here&gt;
84
- </code></pre></li>
85
- </ul>
86
-
74
+ (not used anymore)
87
75
  *** Output of Markdown.pl (parsed) ***
88
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
76
+ (not used anymore)
@@ -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
- <p>This is a list:
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
101
+ (not used anymore)
@@ -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
- <ul>
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
204
+ (not used anymore)
@@ -41,11 +41,6 @@ List:è
41
41
 
42
42
 
43
43
  *** Output of Markdown.pl ***
44
- <p>List:</p>
45
-
46
- <ul>
47
- <li>è<code>gcc</code></li>
48
- </ul>
49
-
44
+ (not used anymore)
50
45
  *** Output of Markdown.pl (parsed) ***
51
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
46
+ (not used anymore)
@@ -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
- <ul>
27
- <li>ένα</li>
28
- </ul>
29
-
26
+ (not used anymore)
30
27
  *** Output of Markdown.pl (parsed) ***
31
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
28
+ (not used anymore)
@@ -48,7 +48,6 @@ md_el(:document,[],{},[])
48
48
 
49
49
 
50
50
  *** Output of Markdown.pl ***
51
-
52
-
51
+ (not used anymore)
53
52
  *** Output of Markdown.pl (parsed) ***
54
- Error: #<NoMethodError: private method `write_children' called for <div/>:REXML::Element>
53
+ (not used anymore)
@@ -71,15 +71,6 @@ DuetretretreDue
71
71
 
72
72
 
73
73
  *** Output of Markdown.pl ***
74
- <ul>
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
76
+ (not used anymore)
@@ -1,4 +1,4 @@
1
- Write a comment abouth the test here.
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
- <p>Paragraph, list with no space:
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
220
+ (not used anymore)
@@ -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
- <ol>
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
274
+ (not used anymore)
@@ -23,7 +23,6 @@ md_el(:document,[md_html("<br />")],{},[])
23
23
 
24
24
 
25
25
  *** Output of Markdown.pl ***
26
- <p><br/>123</p>
27
-
26
+ (not used anymore)
28
27
  *** Output of Markdown.pl (parsed) ***
29
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
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
- md_par(["$$ x = y $$"]),
20
- md_el(:header,["$$ x"],{:level=>1},[]),
21
- md_par(["$$ x = y $$"]),
22
- md_par(["$$ x = y $$"])
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
- <p>$$ x = y $$</p>
26
-
27
- <h1 id='_x'>$$ x</h1>
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
- \$\$ x = y \$\$
34
-
35
- \hypertarget{_x}{}\section*{{\$\$ x}}\label{_x}
36
-
37
- \$\$ x = y \$\$
38
-
39
- \$\$ x = y \$\$
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
- <p>$$ x
60
- = y $$</p>
51
+ Failed tests: [:to_html]
61
52
 
62
- <p>$$
63
- x = y $$</p>
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
- <p>$$ x = y
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
- Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
86
+ (not used anymore)