bai-maruku 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. data/Rakefile +102 -0
  2. data/bin/marudown +29 -0
  3. data/bin/maruku +181 -0
  4. data/bin/marutest +345 -0
  5. data/bin/marutex +31 -0
  6. data/docs/changelog.md +334 -0
  7. data/docs/div_syntax.md +36 -0
  8. data/docs/entity_test.md +23 -0
  9. data/docs/markdown_syntax.md +899 -0
  10. data/docs/maruku.md +346 -0
  11. data/docs/math.md +194 -0
  12. data/docs/other_stuff.md +51 -0
  13. data/docs/proposal.md +309 -0
  14. data/lib/maruku.rb +141 -0
  15. data/lib/maruku/attributes.rb +227 -0
  16. data/lib/maruku/defaults.rb +71 -0
  17. data/lib/maruku/errors_management.rb +92 -0
  18. data/lib/maruku/ext/div.rb +133 -0
  19. data/lib/maruku/ext/math.rb +41 -0
  20. data/lib/maruku/ext/math/elements.rb +27 -0
  21. data/lib/maruku/ext/math/latex_fix.rb +12 -0
  22. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +107 -0
  23. data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +29 -0
  24. data/lib/maruku/ext/math/mathml_engines/none.rb +20 -0
  25. data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
  26. data/lib/maruku/ext/math/parsing.rb +119 -0
  27. data/lib/maruku/ext/math/to_html.rb +187 -0
  28. data/lib/maruku/ext/math/to_latex.rb +26 -0
  29. data/lib/maruku/helpers.rb +260 -0
  30. data/lib/maruku/input/charsource.rb +326 -0
  31. data/lib/maruku/input/extensions.rb +69 -0
  32. data/lib/maruku/input/html_helper.rb +189 -0
  33. data/lib/maruku/input/linesource.rb +111 -0
  34. data/lib/maruku/input/parse_block.rb +614 -0
  35. data/lib/maruku/input/parse_doc.rb +227 -0
  36. data/lib/maruku/input/parse_span_better.rb +746 -0
  37. data/lib/maruku/input/rubypants.rb +225 -0
  38. data/lib/maruku/input/type_detection.rb +147 -0
  39. data/lib/maruku/input_textile2/t2_parser.rb +163 -0
  40. data/lib/maruku/maruku.rb +33 -0
  41. data/lib/maruku/output/s5/fancy.rb +756 -0
  42. data/lib/maruku/output/s5/to_s5.rb +138 -0
  43. data/lib/maruku/output/to_html.rb +991 -0
  44. data/lib/maruku/output/to_latex.rb +590 -0
  45. data/lib/maruku/output/to_latex_entities.rb +367 -0
  46. data/lib/maruku/output/to_latex_strings.rb +64 -0
  47. data/lib/maruku/output/to_markdown.rb +164 -0
  48. data/lib/maruku/output/to_s.rb +56 -0
  49. data/lib/maruku/string_utils.rb +191 -0
  50. data/lib/maruku/structures.rb +167 -0
  51. data/lib/maruku/structures_inspect.rb +87 -0
  52. data/lib/maruku/structures_iterators.rb +61 -0
  53. data/lib/maruku/tests/benchmark.rb +82 -0
  54. data/lib/maruku/tests/new_parser.rb +373 -0
  55. data/lib/maruku/tests/tests.rb +136 -0
  56. data/lib/maruku/textile2.rb +1 -0
  57. data/lib/maruku/toc.rb +199 -0
  58. data/lib/maruku/usage/example1.rb +33 -0
  59. data/lib/maruku/version.rb +40 -0
  60. data/maruku.gemspec +32 -0
  61. data/tests/bugs/code_in_links.md +101 -0
  62. data/tests/bugs/complex_escaping.md +38 -0
  63. data/tests/math/syntax.md +46 -0
  64. data/tests/math_usage/document.md +13 -0
  65. data/tests/others/abbreviations.md +11 -0
  66. data/tests/others/blank.md +4 -0
  67. data/tests/others/code.md +5 -0
  68. data/tests/others/code2.md +8 -0
  69. data/tests/others/code3.md +16 -0
  70. data/tests/others/email.md +4 -0
  71. data/tests/others/entities.md +19 -0
  72. data/tests/others/escaping.md +16 -0
  73. data/tests/others/extra_dl.md +101 -0
  74. data/tests/others/extra_header_id.md +13 -0
  75. data/tests/others/extra_table1.md +40 -0
  76. data/tests/others/footnotes.md +17 -0
  77. data/tests/others/headers.md +10 -0
  78. data/tests/others/hrule.md +10 -0
  79. data/tests/others/images.md +20 -0
  80. data/tests/others/inline_html.md +42 -0
  81. data/tests/others/links.md +38 -0
  82. data/tests/others/list1.md +4 -0
  83. data/tests/others/list2.md +5 -0
  84. data/tests/others/list3.md +8 -0
  85. data/tests/others/lists.md +32 -0
  86. data/tests/others/lists_after_paragraph.md +44 -0
  87. data/tests/others/lists_ol.md +39 -0
  88. data/tests/others/misc_sw.md +105 -0
  89. data/tests/others/one.md +1 -0
  90. data/tests/others/paragraphs.md +13 -0
  91. data/tests/others/sss06.md +352 -0
  92. data/tests/others/test.md +4 -0
  93. data/tests/s5/s5profiling.md +48 -0
  94. data/tests/unittest/abbreviations.md +64 -0
  95. data/tests/unittest/alt.md +29 -0
  96. data/tests/unittest/attributes/att2.md +32 -0
  97. data/tests/unittest/attributes/att3.md +40 -0
  98. data/tests/unittest/attributes/attributes.md +69 -0
  99. data/tests/unittest/attributes/circular.md +38 -0
  100. data/tests/unittest/attributes/default.md +34 -0
  101. data/tests/unittest/blank.md +36 -0
  102. data/tests/unittest/blanks_in_code.md +87 -0
  103. data/tests/unittest/bug_def.md +28 -0
  104. data/tests/unittest/bug_table.md +58 -0
  105. data/tests/unittest/code.md +46 -0
  106. data/tests/unittest/code2.md +40 -0
  107. data/tests/unittest/code3.md +83 -0
  108. data/tests/unittest/data_loss.md +37 -0
  109. data/tests/unittest/divs/div1.md +179 -0
  110. data/tests/unittest/divs/div2.md +33 -0
  111. data/tests/unittest/divs/div3_nest.md +57 -0
  112. data/tests/unittest/easy.md +27 -0
  113. data/tests/unittest/email.md +32 -0
  114. data/tests/unittest/encoding/iso-8859-1.md +35 -0
  115. data/tests/unittest/encoding/utf-8.md +30 -0
  116. data/tests/unittest/entities.md +106 -0
  117. data/tests/unittest/escaping.md +79 -0
  118. data/tests/unittest/extra_dl.md +64 -0
  119. data/tests/unittest/extra_header_id.md +75 -0
  120. data/tests/unittest/extra_table1.md +49 -0
  121. data/tests/unittest/footnotes.md +109 -0
  122. data/tests/unittest/headers.md +49 -0
  123. data/tests/unittest/hex_entities.md +49 -0
  124. data/tests/unittest/hrule.md +51 -0
  125. data/tests/unittest/html2.md +34 -0
  126. data/tests/unittest/html3.md +43 -0
  127. data/tests/unittest/html4.md +37 -0
  128. data/tests/unittest/html5.md +35 -0
  129. data/tests/unittest/ie.md +61 -0
  130. data/tests/unittest/images.md +102 -0
  131. data/tests/unittest/images2.md +43 -0
  132. data/tests/unittest/inline_html.md +187 -0
  133. data/tests/unittest/inline_html2.md +33 -0
  134. data/tests/unittest/links.md +164 -0
  135. data/tests/unittest/links2.md +34 -0
  136. data/tests/unittest/list1.md +58 -0
  137. data/tests/unittest/list12.md +40 -0
  138. data/tests/unittest/list2.md +68 -0
  139. data/tests/unittest/list3.md +76 -0
  140. data/tests/unittest/list4.md +101 -0
  141. data/tests/unittest/lists.md +204 -0
  142. data/tests/unittest/lists10.md +46 -0
  143. data/tests/unittest/lists11.md +28 -0
  144. data/tests/unittest/lists6.md +53 -0
  145. data/tests/unittest/lists9.md +76 -0
  146. data/tests/unittest/lists_after_paragraph.md +220 -0
  147. data/tests/unittest/lists_ol.md +274 -0
  148. data/tests/unittest/loss.md +28 -0
  149. data/tests/unittest/math/equations.md +86 -0
  150. data/tests/unittest/math/inline.md +58 -0
  151. data/tests/unittest/math/math2.md +88 -0
  152. data/tests/unittest/math/notmath.md +37 -0
  153. data/tests/unittest/math/table.md +52 -0
  154. data/tests/unittest/math/table2.md +54 -0
  155. data/tests/unittest/misc_sw.md +537 -0
  156. data/tests/unittest/notyet/escape.md +33 -0
  157. data/tests/unittest/notyet/header_after_par.md +70 -0
  158. data/tests/unittest/notyet/ticks.md +30 -0
  159. data/tests/unittest/notyet/triggering.md +169 -0
  160. data/tests/unittest/olist.md +57 -0
  161. data/tests/unittest/one.md +27 -0
  162. data/tests/unittest/paragraph.md +28 -0
  163. data/tests/unittest/paragraph_rules/dont_merge_ref.md +54 -0
  164. data/tests/unittest/paragraph_rules/tab_is_blank.md +36 -0
  165. data/tests/unittest/paragraphs.md +58 -0
  166. data/tests/unittest/pending/amps.md +27 -0
  167. data/tests/unittest/pending/empty_cells.md +49 -0
  168. data/tests/unittest/pending/link.md +84 -0
  169. data/tests/unittest/pending/ref.md +33 -0
  170. data/tests/unittest/recover/recover_links.md +27 -0
  171. data/tests/unittest/red_tests/abbrev.md +1388 -0
  172. data/tests/unittest/red_tests/lists7.md +68 -0
  173. data/tests/unittest/red_tests/lists7b.md +128 -0
  174. data/tests/unittest/red_tests/lists8.md +76 -0
  175. data/tests/unittest/references/long_example.md +83 -0
  176. data/tests/unittest/references/spaces_and_numbers.md +27 -0
  177. data/tests/unittest/smartypants.md +126 -0
  178. data/tests/unittest/syntax_hl.md +64 -0
  179. data/tests/unittest/table_attributes.md +46 -0
  180. data/tests/unittest/test.md +31 -0
  181. data/tests/unittest/underscore_in_words.md +27 -0
  182. data/tests/unittest/wrapping.md +79 -0
  183. data/tests/unittest/xml.md +45 -0
  184. data/tests/unittest/xml2.md +31 -0
  185. data/tests/unittest/xml3.md +38 -0
  186. data/tests/unittest/xml_instruction.md +64 -0
  187. data/tests/utf8-files/simple.md +1 -0
  188. data/unit_test_block.sh +5 -0
  189. data/unit_test_span.sh +3 -0
  190. metadata +251 -0
data/unit_test_span.sh ADDED
@@ -0,0 +1,3 @@
1
+ # try ruby -Ilib lib/maruku/tests/new_parser.rb v b
2
+ ruby -Ilib lib/maruku/tests/new_parser.rb $*
3
+
metadata ADDED
@@ -0,0 +1,251 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bai-maruku
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.9
5
+ platform: ruby
6
+ authors:
7
+ - Andrea Censi
8
+ autorequire: maruku
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-05-04 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: syntax
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.0.0
24
+ version:
25
+ description: Maruku is a Markdown interpreter in Ruby. It features native export to HTML and PDF (via Latex). The output is really beautiful!
26
+ email: andrea@rubyforge.org
27
+ executables:
28
+ - maruku
29
+ - marutex
30
+ extensions: []
31
+
32
+ extra_rdoc_files: []
33
+
34
+ files:
35
+ - lib/maruku.rb
36
+ - lib/maruku/ext/math/to_latex.rb
37
+ - lib/maruku/ext/math/to_html.rb
38
+ - lib/maruku/ext/math/parsing.rb
39
+ - lib/maruku/ext/math/mathml_engines/blahtex.rb
40
+ - lib/maruku/ext/math/mathml_engines/itex2mml.rb
41
+ - lib/maruku/ext/math/mathml_engines/none.rb
42
+ - lib/maruku/ext/math/mathml_engines/ritex.rb
43
+ - lib/maruku/ext/math/latex_fix.rb
44
+ - lib/maruku/ext/math/elements.rb
45
+ - lib/maruku/ext/math.rb
46
+ - lib/maruku/ext/div.rb
47
+ - lib/maruku/errors_management.rb
48
+ - lib/maruku/input/linesource.rb
49
+ - lib/maruku/input/parse_span_better.rb
50
+ - lib/maruku/input/parse_block.rb
51
+ - lib/maruku/input/parse_doc.rb
52
+ - lib/maruku/input/charsource.rb
53
+ - lib/maruku/input/type_detection.rb
54
+ - lib/maruku/input/extensions.rb
55
+ - lib/maruku/input/html_helper.rb
56
+ - lib/maruku/input/rubypants.rb
57
+ - lib/maruku/tests/benchmark.rb
58
+ - lib/maruku/tests/tests.rb
59
+ - lib/maruku/tests/new_parser.rb
60
+ - lib/maruku/usage/example1.rb
61
+ - lib/maruku/defaults.rb
62
+ - lib/maruku/helpers.rb
63
+ - lib/maruku/structures_inspect.rb
64
+ - lib/maruku/maruku.rb
65
+ - lib/maruku/attributes.rb
66
+ - lib/maruku/string_utils.rb
67
+ - lib/maruku/structures.rb
68
+ - lib/maruku/structures_iterators.rb
69
+ - lib/maruku/output/s5/fancy.rb
70
+ - lib/maruku/output/s5/to_s5.rb
71
+ - lib/maruku/output/to_latex.rb
72
+ - lib/maruku/output/to_html.rb
73
+ - lib/maruku/output/to_latex_strings.rb
74
+ - lib/maruku/output/to_latex_entities.rb
75
+ - lib/maruku/output/to_s.rb
76
+ - lib/maruku/output/to_markdown.rb
77
+ - lib/maruku/toc.rb
78
+ - lib/maruku/textile2.rb
79
+ - lib/maruku/input_textile2/t2_parser.rb
80
+ - lib/maruku/version.rb
81
+ - docs/markdown_syntax.md
82
+ - docs/math.md
83
+ - docs/maruku.md
84
+ - docs/proposal.md
85
+ - docs/div_syntax.md
86
+ - docs/other_stuff.md
87
+ - docs/entity_test.md
88
+ - docs/changelog.md
89
+ - tests/s5/s5profiling.md
90
+ - tests/bugs/complex_escaping.md
91
+ - tests/bugs/code_in_links.md
92
+ - tests/math/syntax.md
93
+ - tests/unittest/hrule.md
94
+ - tests/unittest/divs/div1.md
95
+ - tests/unittest/divs/div2.md
96
+ - tests/unittest/divs/div3_nest.md
97
+ - tests/unittest/math/math2.md
98
+ - tests/unittest/math/table.md
99
+ - tests/unittest/math/equations.md
100
+ - tests/unittest/math/notmath.md
101
+ - tests/unittest/math/inline.md
102
+ - tests/unittest/math/table2.md
103
+ - tests/unittest/escaping.md
104
+ - tests/unittest/code.md
105
+ - tests/unittest/misc_sw.md
106
+ - tests/unittest/list1.md
107
+ - tests/unittest/list2.md
108
+ - tests/unittest/list3.md
109
+ - tests/unittest/list4.md
110
+ - tests/unittest/lists.md
111
+ - tests/unittest/xml2.md
112
+ - tests/unittest/xml3.md
113
+ - tests/unittest/footnotes.md
114
+ - tests/unittest/inline_html2.md
115
+ - tests/unittest/recover/recover_links.md
116
+ - tests/unittest/lists_after_paragraph.md
117
+ - tests/unittest/abbreviations.md
118
+ - tests/unittest/images2.md
119
+ - tests/unittest/paragraph_rules/dont_merge_ref.md
120
+ - tests/unittest/paragraph_rules/tab_is_blank.md
121
+ - tests/unittest/ie.md
122
+ - tests/unittest/extra_table1.md
123
+ - tests/unittest/olist.md
124
+ - tests/unittest/easy.md
125
+ - tests/unittest/paragraphs.md
126
+ - tests/unittest/html2.md
127
+ - tests/unittest/html3.md
128
+ - tests/unittest/html4.md
129
+ - tests/unittest/html5.md
130
+ - tests/unittest/bug_table.md
131
+ - tests/unittest/email.md
132
+ - tests/unittest/syntax_hl.md
133
+ - tests/unittest/blank.md
134
+ - tests/unittest/paragraph.md
135
+ - tests/unittest/attributes/attributes.md
136
+ - tests/unittest/attributes/circular.md
137
+ - tests/unittest/attributes/default.md
138
+ - tests/unittest/attributes/att2.md
139
+ - tests/unittest/attributes/att3.md
140
+ - tests/unittest/smartypants.md
141
+ - tests/unittest/code2.md
142
+ - tests/unittest/code3.md
143
+ - tests/unittest/red_tests/lists7b.md
144
+ - tests/unittest/red_tests/lists7.md
145
+ - tests/unittest/red_tests/lists8.md
146
+ - tests/unittest/red_tests/abbrev.md
147
+ - tests/unittest/loss.md
148
+ - tests/unittest/encoding/iso-8859-1.md
149
+ - tests/unittest/encoding/utf-8.md
150
+ - tests/unittest/test.md
151
+ - tests/unittest/bug_def.md
152
+ - tests/unittest/data_loss.md
153
+ - tests/unittest/alt.md
154
+ - tests/unittest/lists10.md
155
+ - tests/unittest/lists11.md
156
+ - tests/unittest/table_attributes.md
157
+ - tests/unittest/lists_ol.md
158
+ - tests/unittest/images.md
159
+ - tests/unittest/extra_header_id.md
160
+ - tests/unittest/list12.md
161
+ - tests/unittest/notyet/triggering.md
162
+ - tests/unittest/notyet/escape.md
163
+ - tests/unittest/notyet/header_after_par.md
164
+ - tests/unittest/notyet/ticks.md
165
+ - tests/unittest/one.md
166
+ - tests/unittest/lists6.md
167
+ - tests/unittest/lists9.md
168
+ - tests/unittest/blanks_in_code.md
169
+ - tests/unittest/xml.md
170
+ - tests/unittest/references/spaces_and_numbers.md
171
+ - tests/unittest/references/long_example.md
172
+ - tests/unittest/entities.md
173
+ - tests/unittest/pending/link.md
174
+ - tests/unittest/pending/ref.md
175
+ - tests/unittest/pending/amps.md
176
+ - tests/unittest/pending/empty_cells.md
177
+ - tests/unittest/hex_entities.md
178
+ - tests/unittest/links2.md
179
+ - tests/unittest/inline_html.md
180
+ - tests/unittest/wrapping.md
181
+ - tests/unittest/underscore_in_words.md
182
+ - tests/unittest/headers.md
183
+ - tests/unittest/extra_dl.md
184
+ - tests/unittest/links.md
185
+ - tests/unittest/xml_instruction.md
186
+ - tests/others/hrule.md
187
+ - tests/others/escaping.md
188
+ - tests/others/code.md
189
+ - tests/others/misc_sw.md
190
+ - tests/others/list1.md
191
+ - tests/others/list2.md
192
+ - tests/others/list3.md
193
+ - tests/others/lists.md
194
+ - tests/others/footnotes.md
195
+ - tests/others/lists_after_paragraph.md
196
+ - tests/others/abbreviations.md
197
+ - tests/others/extra_table1.md
198
+ - tests/others/paragraphs.md
199
+ - tests/others/email.md
200
+ - tests/others/blank.md
201
+ - tests/others/code2.md
202
+ - tests/others/code3.md
203
+ - tests/others/test.md
204
+ - tests/others/lists_ol.md
205
+ - tests/others/images.md
206
+ - tests/others/extra_header_id.md
207
+ - tests/others/one.md
208
+ - tests/others/sss06.md
209
+ - tests/others/entities.md
210
+ - tests/others/inline_html.md
211
+ - tests/others/headers.md
212
+ - tests/others/extra_dl.md
213
+ - tests/others/links.md
214
+ - tests/utf8-files/simple.md
215
+ - tests/math_usage/document.md
216
+ - bin/marutex
217
+ - bin/marudown
218
+ - bin/marutest
219
+ - bin/maruku
220
+ - unit_test_block.sh
221
+ - unit_test_span.sh
222
+ - Rakefile
223
+ - maruku.gemspec
224
+ has_rdoc: false
225
+ homepage: http://maruku.rubyforge.org
226
+ post_install_message:
227
+ rdoc_options: []
228
+
229
+ require_paths:
230
+ - lib
231
+ required_ruby_version: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: "0"
236
+ version:
237
+ required_rubygems_version: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: "0"
242
+ version:
243
+ requirements: []
244
+
245
+ rubyforge_project:
246
+ rubygems_version: 1.2.0
247
+ signing_key:
248
+ specification_version: 2
249
+ summary: Maruku is a Markdown-superset interpreter written in Ruby.
250
+ test_files: []
251
+