patcito-maruku 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/AUTHORS +23 -0
  2. data/LICENSE +340 -0
  3. data/README.md +73 -0
  4. data/bin/maruku +196 -0
  5. data/bin/marutex +4 -0
  6. data/data/entities.xml +261 -0
  7. data/docs/changelog.md +334 -0
  8. data/docs/div_syntax.md +36 -0
  9. data/docs/entity_test.md +23 -0
  10. data/docs/markdown_syntax.md +899 -0
  11. data/docs/maruku.md +346 -0
  12. data/docs/math.md +194 -0
  13. data/docs/other_stuff.md +51 -0
  14. data/docs/proposal.md +309 -0
  15. data/docs/website/src/bluecloth.md +25 -0
  16. data/docs/website/src/download.md +31 -0
  17. data/docs/website/src/maruku.md +261 -0
  18. data/docs/website/src/proposal.md +271 -0
  19. data/lib/maruku.rb +132 -0
  20. data/lib/maruku/attributes.rb +138 -0
  21. data/lib/maruku/defaults.rb +69 -0
  22. data/lib/maruku/errors.rb +89 -0
  23. data/lib/maruku/ext/div.rb +121 -0
  24. data/lib/maruku/ext/fenced_code.rb +78 -0
  25. data/lib/maruku/ext/math.rb +37 -0
  26. data/lib/maruku/ext/math/elements.rb +21 -0
  27. data/lib/maruku/ext/math/latex_fix.rb +12 -0
  28. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +93 -0
  29. data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +39 -0
  30. data/lib/maruku/ext/math/mathml_engines/none.rb +21 -0
  31. data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
  32. data/lib/maruku/ext/math/parsing.rb +125 -0
  33. data/lib/maruku/ext/math/to_html.rb +237 -0
  34. data/lib/maruku/ext/math/to_latex.rb +36 -0
  35. data/lib/maruku/ext/yaml.rb +43 -0
  36. data/lib/maruku/helpers.rb +214 -0
  37. data/lib/maruku/input/charsource.rb +326 -0
  38. data/lib/maruku/input/extensions.rb +69 -0
  39. data/lib/maruku/input/html_helper.rb +189 -0
  40. data/lib/maruku/input/linesource.rb +111 -0
  41. data/lib/maruku/input/parse_block.rb +608 -0
  42. data/lib/maruku/input/parse_doc.rb +240 -0
  43. data/lib/maruku/input/parse_span_better.rb +746 -0
  44. data/lib/maruku/input/rubypants.rb +225 -0
  45. data/lib/maruku/input/type_detection.rb +147 -0
  46. data/lib/maruku/input_textile2/t2_parser.rb +163 -0
  47. data/lib/maruku/maruku.rb +31 -0
  48. data/lib/maruku/output/s5/fancy.rb +756 -0
  49. data/lib/maruku/output/s5/to_s5.rb +138 -0
  50. data/lib/maruku/output/to_html.rb +994 -0
  51. data/lib/maruku/output/to_latex.rb +580 -0
  52. data/lib/maruku/output/to_latex_entities.rb +101 -0
  53. data/lib/maruku/output/to_latex_strings.rb +64 -0
  54. data/lib/maruku/output/to_markdown.rb +164 -0
  55. data/lib/maruku/output/to_s.rb +54 -0
  56. data/lib/maruku/string_utils.rb +185 -0
  57. data/lib/maruku/structures.rb +143 -0
  58. data/lib/maruku/structures_inspect.rb +51 -0
  59. data/lib/maruku/structures_iterators.rb +48 -0
  60. data/lib/maruku/textile2.rb +1 -0
  61. data/lib/maruku/toc.rb +214 -0
  62. data/lib/maruku/usage/example1.rb +33 -0
  63. data/lib/maruku/version +0 -0
  64. data/lib/maruku/version.rb +54 -0
  65. data/spec/block_docs/abbreviations.md +52 -0
  66. data/spec/block_docs/alt.md +17 -0
  67. data/spec/block_docs/attributes/att2.md +20 -0
  68. data/spec/block_docs/attributes/att3.md +28 -0
  69. data/spec/block_docs/attributes/attributes.md +57 -0
  70. data/spec/block_docs/attributes/circular.md +26 -0
  71. data/spec/block_docs/attributes/default.md +22 -0
  72. data/spec/block_docs/blank.md +24 -0
  73. data/spec/block_docs/blanks_in_code.md +75 -0
  74. data/spec/block_docs/bug_def.md +16 -0
  75. data/spec/block_docs/bug_table.md +46 -0
  76. data/spec/block_docs/code.md +34 -0
  77. data/spec/block_docs/code2.md +28 -0
  78. data/spec/block_docs/code3.md +71 -0
  79. data/spec/block_docs/data_loss.md +25 -0
  80. data/spec/block_docs/divs/div1.md +167 -0
  81. data/spec/block_docs/divs/div2.md +21 -0
  82. data/spec/block_docs/divs/div3_nest.md +45 -0
  83. data/spec/block_docs/easy.md +15 -0
  84. data/spec/block_docs/email.md +20 -0
  85. data/spec/block_docs/encoding/iso-8859-1.md +23 -0
  86. data/spec/block_docs/encoding/utf-8.md +18 -0
  87. data/spec/block_docs/entities.md +94 -0
  88. data/spec/block_docs/escaping.md +67 -0
  89. data/spec/block_docs/extra_dl.md +52 -0
  90. data/spec/block_docs/extra_header_id.md +63 -0
  91. data/spec/block_docs/extra_table1.md +37 -0
  92. data/spec/block_docs/footnotes.md +97 -0
  93. data/spec/block_docs/headers.md +37 -0
  94. data/spec/block_docs/hex_entities.md +37 -0
  95. data/spec/block_docs/hrule.md +39 -0
  96. data/spec/block_docs/html2.md +22 -0
  97. data/spec/block_docs/html3.md +31 -0
  98. data/spec/block_docs/html4.md +25 -0
  99. data/spec/block_docs/html5.md +23 -0
  100. data/spec/block_docs/ie.md +49 -0
  101. data/spec/block_docs/images.md +90 -0
  102. data/spec/block_docs/images2.md +31 -0
  103. data/spec/block_docs/inline_html.md +152 -0
  104. data/spec/block_docs/inline_html2.md +21 -0
  105. data/spec/block_docs/links.md +152 -0
  106. data/spec/block_docs/links2.md +22 -0
  107. data/spec/block_docs/list1.md +46 -0
  108. data/spec/block_docs/list12.md +28 -0
  109. data/spec/block_docs/list2.md +56 -0
  110. data/spec/block_docs/list3.md +64 -0
  111. data/spec/block_docs/list4.md +89 -0
  112. data/spec/block_docs/lists.md +192 -0
  113. data/spec/block_docs/lists10.md +34 -0
  114. data/spec/block_docs/lists11.md +23 -0
  115. data/spec/block_docs/lists6.md +41 -0
  116. data/spec/block_docs/lists9.md +64 -0
  117. data/spec/block_docs/lists_after_paragraph.md +208 -0
  118. data/spec/block_docs/lists_ol.md +262 -0
  119. data/spec/block_docs/loss.md +16 -0
  120. data/spec/block_docs/math/equations.md +45 -0
  121. data/spec/block_docs/math/inline.md +46 -0
  122. data/spec/block_docs/math/math2.md +45 -0
  123. data/spec/block_docs/math/notmath.md +25 -0
  124. data/spec/block_docs/math/table.md +25 -0
  125. data/spec/block_docs/math/table2.md +42 -0
  126. data/spec/block_docs/misc_sw.md +525 -0
  127. data/spec/block_docs/notyet/escape.md +21 -0
  128. data/spec/block_docs/notyet/header_after_par.md +58 -0
  129. data/spec/block_docs/notyet/ticks.md +18 -0
  130. data/spec/block_docs/notyet/triggering.md +157 -0
  131. data/spec/block_docs/olist.md +45 -0
  132. data/spec/block_docs/one.md +15 -0
  133. data/spec/block_docs/paragraph.md +16 -0
  134. data/spec/block_docs/paragraph_rules/dont_merge_ref.md +42 -0
  135. data/spec/block_docs/paragraph_rules/tab_is_blank.md +24 -0
  136. data/spec/block_docs/paragraphs.md +46 -0
  137. data/spec/block_docs/pending/amps.md +15 -0
  138. data/spec/block_docs/pending/empty_cells.md +37 -0
  139. data/spec/block_docs/pending/link.md +72 -0
  140. data/spec/block_docs/pending/ref.md +21 -0
  141. data/spec/block_docs/recover/recover_links.md +15 -0
  142. data/spec/block_docs/red_tests/abbrev.md +679 -0
  143. data/spec/block_docs/red_tests/lists7.md +32 -0
  144. data/spec/block_docs/red_tests/lists7b.md +65 -0
  145. data/spec/block_docs/red_tests/lists8.md +42 -0
  146. data/spec/block_docs/red_tests/ref.md +23 -0
  147. data/spec/block_docs/red_tests/xml.md +35 -0
  148. data/spec/block_docs/references/long_example.md +71 -0
  149. data/spec/block_docs/references/spaces_and_numbers.md +15 -0
  150. data/spec/block_docs/smartypants.md +114 -0
  151. data/spec/block_docs/syntax_hl.md +52 -0
  152. data/spec/block_docs/table_attributes.md +34 -0
  153. data/spec/block_docs/test.md +19 -0
  154. data/spec/block_docs/underscore_in_words.md +15 -0
  155. data/spec/block_docs/wrapping.md +67 -0
  156. data/spec/block_docs/xml2.md +19 -0
  157. data/spec/block_docs/xml3.md +26 -0
  158. data/spec/block_docs/xml_instruction.md +52 -0
  159. data/spec/block_spec.rb +49 -0
  160. data/spec/span_spec.rb +254 -0
  161. data/spec/spec_helper.rb +6 -0
  162. metadata +247 -0
@@ -0,0 +1,262 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ 1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
6
+ Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
7
+ viverra nec, fringilla in, laoreet vitae, risus.
8
+ 2. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
9
+ Suspendisse id sem consectetuer libero luctus adipiscing.
10
+ 3. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
11
+ Suspendisse id sem consectetuer libero luctus adipiscing.
12
+ 3. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
13
+ Suspendisse id sem consectetuer libero luctus adipiscing.
14
+ 4. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
15
+ Suspendisse id sem consectetuer libero luctus adipiscing.
16
+
17
+ Ancora
18
+
19
+ 1. This is a list item with two paragraphs. Lorem ipsum dolor
20
+ sit amet, consectetuer adipiscing elit. Aliquam hendrerit
21
+ mi posuere lectus.
22
+
23
+ ATTENZIONE!
24
+
25
+ - Uno
26
+ - Due
27
+ 1. tre
28
+ 1. tre
29
+ 1. tre
30
+ - Due
31
+
32
+ 2. Suspendisse id sem consectetuer libero luctus adipiscing.
33
+
34
+
35
+ Ancora
36
+
37
+ * This is a list item with two paragraphs.
38
+
39
+ This is the second paragraph in the list item. You're
40
+ only required to indent the first line. Lorem ipsum dolor
41
+ sit amet, consectetuer adipiscing elit.
42
+
43
+ * Another item in the same list.
44
+ *** Output of inspect ***
45
+ md_el(:document,[
46
+ md_el(:ol,[
47
+ md_el(:li_span,[
48
+ "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus."
49
+ ],{:want_my_paragraph=>false},[]),
50
+ md_el(:li_span,[
51
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
52
+ ],{:want_my_paragraph=>false},[]),
53
+ md_el(:li_span,[
54
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
55
+ ],{:want_my_paragraph=>false},[]),
56
+ md_el(:li_span,[
57
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
58
+ ],{:want_my_paragraph=>false},[]),
59
+ md_el(:li_span,[
60
+ "Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
61
+ ],{:want_my_paragraph=>false},[])
62
+ ],{},[]),
63
+ md_par(["Ancora"]),
64
+ md_el(:ol,[
65
+ md_el(:li,[
66
+ md_par([
67
+ "This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus."
68
+ ]),
69
+ md_par(["ATTENZIONE!"]),
70
+ md_el(:ul,[
71
+ md_el(:li,[md_par(["Uno"])],{:want_my_paragraph=>false},[]),
72
+ md_el(:li,[
73
+ md_par(["Due"]),
74
+ md_el(:ol,[
75
+ md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
76
+ md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
77
+ md_el(:li_span,["tre"],{:want_my_paragraph=>false},[])
78
+ ],{},[])
79
+ ],{:want_my_paragraph=>true},[]),
80
+ md_el(:li,[md_par(["Due"])],{:want_my_paragraph=>false},[])
81
+ ],{},[])
82
+ ],{:want_my_paragraph=>true},[]),
83
+ md_el(:li,[
84
+ md_par(["Suspendisse id sem consectetuer libero luctus adipiscing."])
85
+ ],{:want_my_paragraph=>false},[])
86
+ ],{},[]),
87
+ md_par(["Ancora"]),
88
+ md_el(:ul,[
89
+ md_el(:li,[
90
+ md_par(["This is a list item with two paragraphs."]),
91
+ md_par([
92
+ "This is the second paragraph in the list item. You",
93
+ md_entity("rsquo"),
94
+ "re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
95
+ ])
96
+ ],{:want_my_paragraph=>true},[]),
97
+ md_el(:li,[md_par(["Another item in the same list."])],{:want_my_paragraph=>false},[])
98
+ ],{},[])
99
+ ],{},[])
100
+ *** Output of to_html ***
101
+ <ol>
102
+ <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</li>
103
+
104
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
105
+
106
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
107
+
108
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
109
+
110
+ <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
111
+ </ol>
112
+
113
+ <p>Ancora</p>
114
+
115
+ <ol>
116
+ <li>
117
+ <p>This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.</p>
118
+
119
+ <p>ATTENZIONE!</p>
120
+
121
+ <ul>
122
+ <li>
123
+ <p>Uno</p>
124
+ </li>
125
+
126
+ <li>
127
+ <p>Due</p>
128
+
129
+ <ol>
130
+ <li>tre</li>
131
+
132
+ <li>tre</li>
133
+
134
+ <li>tre</li>
135
+ </ol>
136
+ </li>
137
+
138
+ <li>
139
+ <p>Due</p>
140
+ </li>
141
+ </ul>
142
+ </li>
143
+
144
+ <li>
145
+ <p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
146
+ </li>
147
+ </ol>
148
+
149
+ <p>Ancora</p>
150
+
151
+ <ul>
152
+ <li>
153
+ <p>This is a list item with two paragraphs.</p>
154
+
155
+ <p>This is the second paragraph in the list item. You&#8217;re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
156
+ </li>
157
+
158
+ <li>
159
+ <p>Another item in the same list.</p>
160
+ </li>
161
+ </ul>
162
+ *** Output of to_latex ***
163
+ \begin{enumerate}%
164
+ \item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
165
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
166
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
167
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
168
+ \item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
169
+
170
+ \end{enumerate}
171
+ Ancora
172
+
173
+ \begin{enumerate}%
174
+ \item This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
175
+
176
+ ATTENZIONE!
177
+
178
+ \begin{itemize}%
179
+ \item Uno
180
+
181
+
182
+ \item Due
183
+
184
+ \begin{enumerate}%
185
+ \item tre
186
+ \item tre
187
+ \item tre
188
+
189
+ \end{enumerate}
190
+
191
+ \item Due
192
+
193
+
194
+
195
+ \end{itemize}
196
+
197
+ \item Suspendisse id sem consectetuer libero luctus adipiscing.
198
+
199
+
200
+
201
+ \end{enumerate}
202
+ Ancora
203
+
204
+ \begin{itemize}%
205
+ \item This is a list item with two paragraphs.
206
+
207
+ 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.
208
+
209
+
210
+ \item Another item in the same list.
211
+
212
+
213
+
214
+ \end{itemize}
215
+ *** Output of to_md ***
216
+ 1. Lorem ipsum dolor sit amet,
217
+ consectetuer adipiscing elit.
218
+ Aliquam hendrerit mi posuere
219
+ lectus. Vestibulum enim wisi,
220
+ viverra nec, fringilla in, laoreet
221
+ vitae, risus.
222
+ 2. Donec sit amet nisl. Aliquam semper
223
+ ipsum sit amet velit. Suspendisse
224
+ id sem consectetuer libero luctus
225
+ adipiscing.
226
+ 3. Donec sit amet nisl. Aliquam semper
227
+ ipsum sit amet velit. Suspendisse
228
+ id sem consectetuer libero luctus
229
+ adipiscing.
230
+ 4. Donec sit amet nisl. Aliquam semper
231
+ ipsum sit amet velit. Suspendisse
232
+ id sem consectetuer libero luctus
233
+ adipiscing.
234
+ 5. Donec sit amet nisl. Aliquam semper
235
+ ipsum sit amet velit. Suspendisse
236
+ id sem consectetuer libero luctus
237
+ adipiscing.
238
+
239
+ Ancora
240
+
241
+ 1.
242
+ This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
243
+ ATTENZIONE!
244
+ Uno
245
+
246
+ Due
247
+
248
+ 1. tre
249
+ 2. tre
250
+ 3. tre
251
+
252
+ Due
253
+ 2.
254
+ Suspendisse id sem consectetuer libero luctus adipiscing.
255
+
256
+ Ancora
257
+
258
+ -This is a list item with two paragraphs.
259
+ 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.
260
+ -nother item in the same list.
261
+ *** Output of to_s ***
262
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.ATTENZIONE!UnoDuetretretreDueSuspendisse id sem consectetuer libero luctus adipiscing.AncoraThis 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.Another item in the same list.
@@ -0,0 +1,16 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ <br/>123
6
+
7
+ *** Output of inspect ***
8
+ md_el(:document,[md_html("<br />")],{},[])
9
+ *** Output of to_html ***
10
+ <br />
11
+ *** Output of to_latex ***
12
+
13
+ *** Output of to_md ***
14
+
15
+ *** Output of to_s ***
16
+
@@ -0,0 +1,45 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ require 'maruku/ext/math';{}
4
+ *** Markdown input: ***
5
+
6
+ $$ x = y $$
7
+
8
+ $$ x
9
+ = y $$
10
+
11
+ $$
12
+ x = y $$
13
+
14
+ $$ x = y
15
+ $$
16
+
17
+ *** Output of inspect ***
18
+ md_el(:document,[
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
+ ],{},[])
24
+ *** Output of to_html ***
25
+ <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
26
+ </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
27
+ </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
28
+ </code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div>
29
+ *** Output of to_latex ***
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}
42
+ *** Output of to_md ***
43
+
44
+ *** Output of to_s ***
45
+
@@ -0,0 +1,46 @@
1
+
2
+ *** Parameters: ***
3
+ require 'maruku/ext/math'; {}
4
+ *** Markdown input: ***
5
+ Here are some formulas:
6
+
7
+ * $\alpha$
8
+ * $x^{n}+y^{n} \neq z^{n}$
9
+
10
+ That's it, nothing else is supported.
11
+
12
+ *** Output of inspect ***
13
+ md_el(:document,[
14
+ md_par(["Here are some formulas:"]),
15
+ md_el(:ul,[
16
+ md_el(:li_span,[md_el(:inline_math,[],{:math=>"\\alpha"},[])],{:want_my_paragraph=>false},[]),
17
+ md_el(:li_span,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \\neq z^{n}"},[])],{:want_my_paragraph=>false},[])
18
+ ],{},[]),
19
+ md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."])
20
+ ],{},[])
21
+ *** Output of to_html ***
22
+ <p>Here are some formulas:</p>
23
+
24
+ <ul>
25
+ <li><code class='maruku-mathml'>\alpha</code></li>
26
+
27
+ <li><code class='maruku-mathml'>x^{n}+y^{n} \neq z^{n}</code></li>
28
+ </ul>
29
+
30
+ <p>That&#8217;s it, nothing else is supported.</p>
31
+ *** Output of to_latex ***
32
+ Here are some formulas:
33
+
34
+ \begin{itemize}%
35
+ \item $\alpha$
36
+ \item $x^{n}+y^{n} \neq z^{n}$
37
+
38
+ \end{itemize}
39
+ That'{}s it, nothing else is supported.
40
+ *** Output of to_md ***
41
+ Here are some formulas:
42
+
43
+ --
44
+ That s it, nothing else is supported.
45
+ *** Output of to_s ***
46
+ Here are some formulas:Thats it, nothing else is supported.
@@ -0,0 +1,45 @@
1
+
2
+ *** Parameters: ***
3
+ require 'maruku/ext/math'
4
+ {:math_numbered => ['\\['], :html_math_engine => 'itex2mml' }
5
+ *** Markdown input: ***
6
+
7
+ \[
8
+ \alpha
9
+ \]
10
+
11
+ \begin{equation}
12
+ \alpha
13
+ \end{equation}
14
+
15
+ \begin{equation} \beta
16
+ \end{equation}
17
+
18
+
19
+ \begin{equation} \gamma \end{equation}
20
+ *** Output of inspect ***
21
+ md_el(:document,[
22
+ md_el(:equation,[],{:label=>"eq1",:math=>"\t\\alpha\n\n",:num=>1},[]),
23
+ md_el(:equation,[],{:label=>nil,:math=>"\t\\alpha\n\n",:num=>nil},[]),
24
+ md_el(:equation,[],{:label=>nil,:math=>" \\beta\n",:num=>nil},[]),
25
+ md_el(:equation,[],{:label=>nil,:math=>" \\gamma ",:num=>nil},[])
26
+ ],{},[])
27
+ *** Output of to_html ***
28
+ <div class='maruku-equation' id='eq:eq1'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math><span class='maruku-eq-tex'><code style='display: none'>\alpha</code></span><span class='maruku-eq-number'>(1)</span></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math><span class='maruku-eq-tex'><code style='display: none'>\alpha</code></span></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&beta;</mi></math><span class='maruku-eq-tex'><code style='display: none'>\beta</code></span></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&gamma;</mi></math><span class='maruku-eq-tex'><code style='display: none'>\gamma</code></span></div>
29
+ *** Output of to_latex ***
30
+ \begin{equation}
31
+ \alpha
32
+ \label{eq1}\end{equation}
33
+ \begin{displaymath}
34
+ \alpha
35
+ \end{displaymath}
36
+ \begin{displaymath}
37
+ \beta
38
+ \end{displaymath}
39
+ \begin{displaymath}
40
+ \gamma
41
+ \end{displaymath}
42
+ *** Output of to_md ***
43
+
44
+ *** Output of to_s ***
45
+
@@ -0,0 +1,25 @@
1
+
2
+ *** Parameters: ***
3
+ require 'maruku/ext/math'; {:math_enabled => false}
4
+ *** Markdown input: ***
5
+
6
+ This is not $math$.
7
+
8
+ \[ \alpha \]
9
+
10
+ *** Output of inspect ***
11
+ md_el(:document,[md_par(["This is not $math$."]), md_par(["[ \\alpha ]"])],{},[])
12
+ *** Output of to_html ***
13
+ <p>This is not $math$.</p>
14
+
15
+ <p>[ \alpha ]</p>
16
+ *** Output of to_latex ***
17
+ This is not \$math\$.
18
+
19
+ [ $\backslash$alpha ]
20
+ *** Output of to_md ***
21
+ This is not $math$.
22
+
23
+ [ \alpha ]
24
+ *** Output of to_s ***
25
+ This is not $math$.[ \alpha ]
@@ -0,0 +1,25 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ require 'maruku/ext/math';{:html_math_engine => 'itex2mml' }
4
+ *** Markdown input: ***
5
+ <table markdown='1'>
6
+ $\alpha$
7
+ <thead>
8
+ <td>$\beta$</td>
9
+ </thead>
10
+ </table>
11
+ *** Output of inspect ***
12
+ md_el(:document,[
13
+ md_html("<table markdown='1'>\n\t$\\alpha$\n\t<thead>\n\t\t<td>$\\beta$</td>\n\t</thead>\n</table>")
14
+ ],{},[])
15
+ *** Output of to_html ***
16
+ <table><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math><thead>
17
+ <td><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&beta;</mi></math></td>
18
+ </thead>
19
+ </table>
20
+ *** Output of to_latex ***
21
+
22
+ *** Output of to_md ***
23
+
24
+ *** Output of to_s ***
25
+