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
data/docs/changelog.html DELETED
@@ -1,490 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC
3
- "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
4
- "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
5
- <html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
6
- <head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title><link href='style.css' rel='stylesheet' type='text/css' />
7
- </head>
8
- <body><!-- #### Changes in the development version (**not yet released**) #### {#last} -->
9
- <h4 id='stable'>Changes in 0.5.6</h4>
10
-
11
- <ul>
12
- <li>
13
- <p>News:</p>
14
-
15
- <ul>
16
- <li>Now Maruku is in the official Gentoo Portage tree (done by <a href='http://agorf.gr/'>Aggelos Orfanakos</a>)</li>
17
- </ul>
18
- </li>
19
-
20
- <li>
21
- <p>New stuff:</p>
22
-
23
- <ul>
24
- <li>Attribute <code>maruku_signature</code> defaults to false. (many people asked this)</li>
25
-
26
- <li>unittests scripts are included in the distribution.</li>
27
-
28
- <li>New attribute <code>filter_html</code>: if true, raw HTML/XML is discarded. (asked by Marik)</li>
29
-
30
- <li>Command line: if output file is <code>-</code>, Maruku writes to stdout.</li>
31
- </ul>
32
- </li>
33
-
34
- <li>
35
- <p>Bug fixes:</p>
36
-
37
- <ul>
38
- <li>Another tiny bug in HTML parsing.</li>
39
-
40
- <li>In latex, <code>\linebreak</code> was used instead of <code>\newline</code> (reported by Sam Kleinman)</li>
41
-
42
- <li>Fixed bug with non-alpha numeric characters in ref.ids (reported by Aggelos Orfanakos)</li>
43
- </ul>
44
- </li>
45
-
46
- <li>
47
- <p>Pending bugs/feature requests:</p>
48
-
49
- <ul>
50
- <li>Maruku does not allow 3-space indented lists.</li>
51
-
52
- <li>Lists item whose first character is UTF8 are not recognized (reported by Aggelos Orfanakos)</li>
53
-
54
- <li>Maruku cannot output <code>&quot;</code>-delimited attributes, because <code>REXML</code> does not support it.</li>
55
- </ul>
56
- </li>
57
- </ul>
58
-
59
- <h4 id='changes_in_055'>Changes in 0.5.5</h4>
60
-
61
- <ul>
62
- <li>
63
- <p>Features:</p>
64
-
65
- <ul>
66
- <li>
67
- <p>Input of HTML numeric entities:</p>
68
-
69
- <pre><code>Examples of numeric character references include &amp;#169; or &amp;#xA9;
70
- for the copyright symbol, &amp;#913; or &amp;#x391; for the Greek capital
71
- letter alpha, and &amp;#1575; or &amp;#x627; for the Arabic letter alef.</code></pre>
72
-
73
- <blockquote>
74
- <p>Examples of numeric character references include &#169; or &#169; for the copyright symbol, &#913; or &#913; for the Greek capital letter alpha, and &#1575; or &#1575; for the Arabic letter alef.</p>
75
- </blockquote>
76
- </li>
77
- </ul>
78
- </li>
79
-
80
- <li>
81
- <p>Bug fixes:</p>
82
-
83
- <ul>
84
- <li>
85
- <p>Alt text was ignored for images.</p>
86
- </li>
87
-
88
- <li>
89
- <p>Fixed minor bug in reading HTML inside paragraph.</p>
90
- </li>
91
-
92
- <li>
93
- <p>Changed rules for block-level HTML to make it similar to Markdown.pl. For example:</p>
94
-
95
- <pre><code>Paragraph
96
- &lt;div&gt;&lt;/div&gt;</code></pre>
97
-
98
- <p>will be translated to</p>
99
-
100
- <pre><code>&lt;p&gt;Paragraph
101
- &lt;div&gt;&lt;/div&gt;&lt;/p&gt;</code></pre>
102
-
103
- <p>while this:</p>
104
-
105
- <pre><code>Paragraph
106
-
107
- &lt;div&gt;&lt;/div&gt;</code></pre>
108
-
109
- <p>becomes</p>
110
-
111
- <pre><code>&lt;p&gt;Paragraph&lt;/p&gt;
112
-
113
- &lt;div&gt;&lt;/div&gt;</code></pre>
114
- </li>
115
- </ul>
116
- </li>
117
-
118
- <li>
119
- <p><strong>Pending bugs</strong>: there are some problems when parsing lists. It is difficult to get it right because the spec is very fuzzy. At the moment, list items cannot be indented by more than 1 space.</p>
120
- </li>
121
- </ul>
122
-
123
- <h4 id='changes_in_054'>Changes in 0.5.4</h4>
124
-
125
- <ul>
126
- <li>
127
- <p>Features:</p>
128
-
129
- <ul>
130
- <li>
131
- <p><a href='http://www.w3.org/TR/html4/index/attributes.html'>All HTML attributes</a> are supported.</p>
132
-
133
- <pre><code>&gt; Science is a wonderful thing if one does not
134
- &gt; have to earn one&#39;s living at it.
135
- {: cite=&quot;http://en.wikiquote.org/wiki/Albert_Einstein&quot;}</code></pre>
136
- </li>
137
-
138
- <li>
139
- <p>Attribute <code>doc_prefix</code>.</p>
140
- </li>
141
-
142
- <li>
143
- <p>Math:</p>
144
-
145
- <ul>
146
- <li><code>\begin{equation}</code> and <code>\end{equation}</code> are understood.</li>
147
-
148
- <li>Math parsing enabled per-instance using the <code>math_enabled</code> attribute.</li>
149
-
150
- <li><code>math_numbered</code> attribute.</li>
151
- </ul>
152
- </li>
153
- </ul>
154
- </li>
155
-
156
- <li>
157
- <p>Bug fixes:</p>
158
-
159
- <ul>
160
- <li>Runs quietly with <code>ruby -w</code>.</li>
161
-
162
- <li>Fixed a bug which could cause data-loss when reading indented lines.</li>
163
- </ul>
164
- </li>
165
- </ul>
166
-
167
- <h4 id='changes_in_053'>Changes in 0.5.3</h4>
168
-
169
- <ul>
170
- <li>
171
- <p>Features:</p>
172
-
173
- <ul>
174
- <li>
175
- <p><a href='http://www.w3.org/TR/html4/struct/tables.html#h-11.2.1'>All HTML <code>table</code> attributes</a> can be used (<code>summary</code>, <code>width</code>, <code>frame</code>, <code>rules</code>, <code>border</code>, <code>cellspacing</code>, <code>cellpadding</code>).</p>
176
-
177
- <p>The next version will hopefully use all HTML attributes.</p>
178
- </li>
179
- </ul>
180
- <!-- A version of Markdown that is more Japanese or something --></li>
181
-
182
- <li>
183
- <p>Bug fixes:</p>
184
-
185
- <ul>
186
- <li>
187
- <p>Crash on this line: (found by Aggelos Orfanakos)</p>
188
-
189
- <pre><code>[test][]:</code></pre>
190
- </li>
191
-
192
- <li>
193
- <p>Regression with attribute system (found by Charles)</p>
194
- </li>
195
- </ul>
196
- </li>
197
- </ul>
198
-
199
- <h4 id='changes_in_051'>Changes in 0.5.1</h4>
200
-
201
- <ul>
202
- <li>
203
- <p>Bug fixes:</p>
204
-
205
- <ul>
206
- <li>
207
- <p>Workaround for Internet Explorer bug: be very sure that <code>&amp;apos;</code> is always written as <code>&amp;#39;</code>.</p>
208
- </li>
209
-
210
- <li>
211
- <p>Support for empty images ref: <code>![image]</code> and <code>![image][]</code>.</p>
212
- </li>
213
-
214
- <li>
215
- <p>Fixed bug in parsing attribute lists definitions.</p>
216
- </li>
217
- </ul>
218
- </li>
219
-
220
- <li>
221
- <p>Minor things:</p>
222
-
223
- <ul>
224
- <li>
225
- <p>Now code blocks are written as a <code>&lt;code&gt;</code> element inside a <code>&lt;pre&gt;</code>, and <code>&lt;code&gt;</code> elements have both <code>class</code> and <code>lang</code> attributes set to the specified language.</p>
226
-
227
- <p>Example:</p>
228
-
229
- <pre><code class='markdown' lang='markdown'> Example
230
- {:lang=ruby}</code></pre>
231
-
232
- <p>produces:</p>
233
-
234
- <pre><code class='xml' lang='xml'><span class='punct'>&lt;</span><span class='tag'>pre</span><span class='punct'>&gt;&lt;</span><span class='tag'>code</span> <span class='attribute'>class</span><span class='punct'>=&#39;</span><span class='string'>ruby</span><span class='punct'>&#39;</span> <span class='attribute'>lang</span><span class='punct'>=&#39;</span><span class='string'>ruby</span><span class='punct'>&#39;&gt;</span>Example<span class='punct'>&lt;/</span><span class='tag'>code</span><span class='punct'>&gt;&lt;/</span><span class='tag'>pre</span><span class='punct'>&gt;</span></code></pre>
235
- </li>
236
- </ul>
237
- </li>
238
- </ul>
239
-
240
- <h4 id='changes_in_050'>Changes in 0.5.0</h4>
241
-
242
- <ul>
243
- <li>
244
- <p>Syntax changes:</p>
245
-
246
- <ul>
247
- <li>
248
- <p>Compatibility with newest Markdown.pl: <code>[text]</code> as a synonim of <code>[text][]</code>.</p>
249
- </li>
250
-
251
- <li>
252
- <p>Meta data: the first IAL in a span environment now refers to the parent. This makes it possible to set attributes for cells:</p>
253
-
254
- <pre><code>Head | Head |
255
- ---------------+-------+--
256
- {:r} Hello + ...
257
-
258
- {:r: scope=&#39;row&#39;}</code></pre>
259
-
260
- <p>The first cell will have the <code>scope</code> attribute set to <code>row</code>.</p>
261
- </li>
262
- </ul>
263
- </li>
264
-
265
- <li>
266
- <p>New settings:</p>
267
-
268
- <ul>
269
- <li>Disable the Maruku signature by setting <code>maruku signature: false</code></li>
270
- </ul>
271
- </li>
272
-
273
- <li>
274
- <p>Stricter doctype. By the way &#8211; did I mention it? &#8211; <strong>Maruku HTML has always been proper validating XHTML strict</strong> (if a page does not validate, please report it as a bug).</p>
275
-
276
- <p>Of course, this only matters when using <code>maruku</code> as a standalone program.</p>
277
-
278
- <ul>
279
- <li>I have updated the XHTML DTD used to support MathML: currently using XHTML+MathML+SVG.</li>
280
-
281
- <li>Content-type set to <code>application/xhtml+xml</code></li>
282
-
283
- <li>All entities are written as numeric entities.</li>
284
- </ul>
285
- </li>
286
-
287
- <li>
288
- <p>Bug fixes</p>
289
-
290
- <ul>
291
- <li>Many fixes in the code handling the sanitizing of inline HTML.</li>
292
-
293
- <li><code>markdown=1</code> did not propagate to children.</li>
294
-
295
- <li>LaTeX: An exception was raised if an unknown entity was used.</li>
296
- </ul>
297
- </li>
298
- </ul>
299
-
300
- <h4 id='changes_in_042'>Changes in 0.4.2</h4>
301
-
302
- <ul>
303
- <li>
304
- <p>Adapted syntax to the <a href='http://maruku.rubyforge.org/proposal.html'>new meta-data proposal</a>.</p>
305
- </li>
306
-
307
- <li>
308
- <p>Changes in LaTeX export:</p>
309
-
310
- <ul>
311
- <li>
312
- <p>Links to external URLs are blue by default.</p>
313
- </li>
314
-
315
- <li>
316
- <p>New attributes: <code>latex_preamble</code> to add a custom preamble, and <code>latex_cjk</code> to add packages for UTF-8 Japanese characters. (<strong>support for this is still shaky</strong>). Example:</p>
317
-
318
- <pre><code>Title: my document
319
- LaTeX CJK: true
320
- LaTeX preamble: preamble.tex
321
-
322
- Content</code></pre>
323
- </li>
324
- </ul>
325
- </li>
326
-
327
- <li>
328
- <p>Bug fixes</p>
329
-
330
- <ul>
331
- <li>
332
- <p>Images were not given <code>id</code> or <code>class</code> attributes.</p>
333
- </li>
334
-
335
- <li>
336
- <p>Fixed bug in LaTeX export with handling of <code>&lt;</code>,<code>&gt;</code> enclosed URLs: <code>&lt;google.com&gt;</code>.</p>
337
- </li>
338
- </ul>
339
- </li>
340
- </ul>
341
-
342
- <h4 id='changes_in_041_aka_typographer'>Changes in 0.4.1 aka &#8220;Typographer&#8221;</h4>
343
-
344
- <ul>
345
- <li>
346
- <p>Implemented SmartyPants support:</p>
347
-
348
- <pre><code>&#39;Twas a &quot;test&quot; to &#39;remember&#39; -- in the &#39;90s
349
- --- while I was &lt;&lt;ok&gt;&gt;. She was 6\&quot;12\&#39;.</code></pre>
350
-
351
- <blockquote>
352
- <p>&#8216;Twas a &#8220;test&#8221; to &#8216;remember&#8217; &#8211; in the &#8217;90s &#8212; while I was &#171;ok&#187;. She was 6&#34;12&#39;.</p>
353
- </blockquote>
354
-
355
- <p>I adapted the code from RubyPants.</p>
356
- </li>
357
-
358
- <li>
359
- <p>Server directives between <code>&lt;? ?&gt;</code> are properly preserved.</p>
360
- </li>
361
-
362
- <li>
363
- <p>Changes in LaTeX export:</p>
364
-
365
- <ul>
366
- <li>
367
- <p>Now Japanese text rendering sort of works, using the following packages:</p>
368
-
369
- <pre><code>\usepackage[C40]{fontenc}
370
- \usepackage[cjkjis]{ucs}
371
- \usepackage[utf8x]{inputenc}</code></pre>
372
-
373
- <p>Nevertheless, I could only get bitmap fonts working &#8211; probably it&#8217;s a problem with my setup.</p>
374
-
375
- <p>A quick test: 日本、中国、ひらがな、カタカナ。</p>
376
- </li>
377
-
378
- <li>
379
- <p>Fixed bugs in rendering of immediate links.</p>
380
- </li>
381
-
382
- <li>
383
- <p>External packages are <code>require</code>d only if needed.</p>
384
- </li>
385
-
386
- <li>
387
- <p>More symbols supported. See the symbol list <a href='http://maruku.rubyforge.org/entity_test.html'>in HTML</a> and <a href='http://maruku.rubyforge.org/entity_test.pdf'>in PDF</a>.</p>
388
- </li>
389
- </ul>
390
- </li>
391
- </ul>
392
-
393
- <h4 id='changes_in_04'>Changes in 0.4</h4>
394
-
395
- <ul>
396
- <li>First implementation of <a href='http://maruku.rubyforge.org/proposal.html'>the new meta-data syntax</a>.</li>
397
-
398
- <li>General refactorization of the code and much cleaner error reporting.</li>
399
-
400
- <li>Created <a href='http://maruku.rubyforge.org/rdoc/'>the RDOC documentation</a>.</li>
401
-
402
- <li>The <code>add_whitespace</code> method took too much time &#8211; it was O(n^2).</li>
403
-
404
- <li>Added unit-tests for block-level elements.</li>
405
- </ul>
406
-
407
- <h4 id='changes_in_03'>Changes in 0.3</h4>
408
-
409
- <ul>
410
- <li>
411
- <p>A real parser is used instead of a regexp-based system, also for span-level elements.</p>
412
-
413
- <p>Now Maruku is almost 2x faster than Bluecloth, while having more features.</p>
414
-
415
- <p>Here are some benchmarks:</p>
416
-
417
- <pre><code>BlueCloth (to_html): parsing 0.00 sec + rendering 1.54 sec = 1.55 sec
418
- Maruku (to_html): parsing 0.47 sec + rendering 0.38 sec = 0.85 sec
419
- Maruku (to_latex): parsing 0.49 sec + rendering 0.25 sec = 0.73 sec</code></pre>
420
-
421
- <p>This is the result of running <code>lib/maruku/tests/benchmark.rb</code> on the Markdown specification.</p>
422
- </li>
423
-
424
- <li>
425
- <p>Prettier HTML output by adding whitespace.</p>
426
- </li>
427
-
428
- <li>
429
- <p>Added a full suite of unit-tests for the span-level parser.</p>
430
- </li>
431
-
432
- <li>
433
- <p>Error management: Having a real parser, Maruku warns you about syntax issues.</p>
434
-
435
- <p>The default action is to warn and try to continue. If you do this:</p>
436
-
437
- <pre><code>Maruku.new(string, {:on_error =&gt; :raise})</code></pre>
438
-
439
- <p>then syntax errors will cause an exception to be raised (you can catch this and retry).</p>
440
- </li>
441
-
442
- <li>
443
- <p>Fixed a series of bugs in handling inline HTML code.</p>
444
- </li>
445
- </ul>
446
-
447
- <p>Immediate TODO-list:</p>
448
-
449
- <ul>
450
- <li>
451
- <p>UTF-8 input/output works OK for HTML, however I am having pain trying to export to LaTeX. I want at least Japanese characters support, so if you know how to do this you are very welcome to give me an hand.</p>
452
-
453
- <p>For example: in the HTML version, you should see accented characters in this parenthesis:</p>
454
-
455
- <blockquote>
456
- <p>(àèìòù)</p>
457
- </blockquote>
458
-
459
- <p>and Japanese text in these other parentheses:</p>
460
-
461
- <blockquote>
462
- <p>(カタカナで 私の 名前は アンドレア チェンシ です).</p>
463
-
464
- <p>(日本のガルは 大好き、でも、日本語は難しですから、そうぞ 英語話すガルを おしえてください).</p>
465
- </blockquote>
466
-
467
- <p>In the LaTeX version, these do not appear. I know how to do LaTeX with ISO-8859-1 encoding (European characters), but I&#8217;m struggling with half-baked solutions for UTF-8 encoded documents.</p>
468
- </li>
469
-
470
- <li>
471
- <p>Implement the <a href='http://maruku.rubyforge.org/proposal.html'>new meta-data proposal</a>.</p>
472
- </li>
473
-
474
- <li>
475
- <p>Exporting to Markdown (pretty printing).</p>
476
- </li>
477
-
478
- <li>
479
- <p>Exporting to HTML splitting in multiple files.</p>
480
- </li>
481
-
482
- <li>
483
- <p>RubyPants.</p>
484
- </li>
485
-
486
- <li>
487
- <p>Support for images in PDF.</p>
488
- </li>
489
- </ul>
490
- </body></html>