maruku 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -380,4 +380,4 @@ Maruku (to_latex): parsing 0.49 sec + rendering 0.25 sec = 0.73 sec</code></pr
380
380
  <p>Support for images in PDF.</p>
381
381
  </li>
382
382
  </ul>
383
- <div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at 13:49 on Wednesday, January 24th, 2007.</span></div></body></html>
383
+ <div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at 14:05 on Wednesday, January 24th, 2007.</span></div></body></html>
@@ -53,7 +53,6 @@ class LineSource
53
53
  end
54
54
 
55
55
  def describe
56
- #s = "At line ##{@lines_index} of #{@lines.size}:\n"
57
56
  s = "At line #{original_line_number(@lines_index)}\n"
58
57
 
59
58
  context = 3 # lines
@@ -63,8 +62,8 @@ class LineSource
63
62
  for i in from..to
64
63
  prefix = (i == @lines_index) ? '--> ' : ' ';
65
64
  l = @lines[i]
66
- s += "%10s %4s|#{l}" %
67
- [@lines[i].md_type.to_s, prefix]
65
+ s += "%10s %4s|%s" %
66
+ [@lines[i].md_type.to_s, prefix, l]
68
67
 
69
68
  s += "|\n"
70
69
  end
@@ -631,7 +631,8 @@ module MaRuKu; module In; module Markdown; module SpanLevelParser
631
631
  end
632
632
  con.push_element md_image(alt_text, ref_id)
633
633
  else # no stuff
634
- con.push_elements children
634
+ ref_id = alt_text.to_s.downcase.gsub(' ','_')
635
+ con.push_element md_image(alt_text, ref_id)
635
636
  end
636
637
  end # read link
637
638
 
@@ -19,7 +19,7 @@
19
19
  #++
20
20
 
21
21
  module MaRuKu
22
- Version = '0.5.1'
22
+ Version = '0.5.2'
23
23
 
24
24
  MarukuURL = 'http://maruku.rubyforge.org/'
25
25
 
@@ -35,4 +35,4 @@ module MaRuKu
35
35
  true
36
36
  end
37
37
 
38
- end
38
+ end
@@ -33,9 +33,9 @@ This is an email address:
33
33
 
34
34
 
35
35
  *** Output of Markdown.pl ***
36
- <p>This is an email address: <a href="&#x6D;&#x61;&#105;&#108;&#116;&#111;:&#x61;&#x6E;&#100;&#x72;&#x65;&#97;&#64;i&#x6E;v&#97;&#108;&#105;&#100;&#x2E;&#105;&#116;">&#x61;&#x6E;&#100;&#x72;&#x65;&#97;&#64;i&#x6E;v&#97;&#108;&#105;&#100;&#x2E;&#105;&#116;</a></p>
36
+ <p>This is an email address: <a href="&#x6D;a&#105;&#x6C;&#x74;&#111;:&#97;&#x6E;&#x64;&#x72;&#x65;&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#105;&#x74;">&#97;&#x6E;&#x64;&#x72;&#x65;&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#105;&#x74;</a></p>
37
37
 
38
38
  *** Output of Markdown.pl (parsed) ***
39
- <p>This is an email address: <a href='&amp;#x6D;&amp;#x61;&amp;#105;&amp;#108;&amp;#116;&amp;#111;:&amp;#x61;&amp;#x6E;&amp;#100;&amp;#x72;&amp;#x65;&amp;#97;&amp;#64;i&amp;#x6E;v&amp;#97;&amp;#108;&amp;#105;&amp;#100;&amp;#x2E;&amp;#105;&amp;#116;'>&#x61;&#x6E;&#100;&#x72;&#x65;&#97;&#64;i&#x6E;v&#97;&#108;&#105;&#100;&#x2E;&#105;&#116;</a
39
+ <p>This is an email address: <a href='&amp;#x6D;a&amp;#105;&amp;#x6C;&amp;#x74;&amp;#111;:&amp;#97;&amp;#x6E;&amp;#x64;&amp;#x72;&amp;#x65;&amp;#x61;&amp;#64;&amp;#105;&amp;#x6E;&amp;#118;&amp;#x61;&amp;#x6C;&amp;#x69;&amp;#100;&amp;#x2E;&amp;#105;&amp;#x74;'>&#97;&#x6E;&#x64;&#x72;&#x65;&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#105;&#x74;</a
40
40
  ></p
41
41
  >
@@ -12,14 +12,14 @@ This is an ![image].
12
12
  *** Output of inspect ***
13
13
  md_el(:document,[
14
14
  md_par(["This is an ", md_image(["image"], "image"), "."]),
15
- md_par(["This is an ."]),
15
+ md_par(["This is an ", md_image(["image"], "image"), "."]),
16
16
  md_ref_def("image", "image.jpg", {:title=>nil})
17
17
  ],{},[])
18
18
  *** Output of to_html ***
19
19
 
20
20
  <p>This is an <img src='image.jpg' alt='' />.</p>
21
21
 
22
- <p>This is an .</p>
22
+ <p>This is an <img src='image.jpg' alt='' />.</p>
23
23
 
24
24
  *** Output of to_latex ***
25
25
  This is an .
@@ -30,11 +30,11 @@ This is an .
30
30
  *** Output of to_md ***
31
31
  This is an image.
32
32
 
33
- This is an .
33
+ This is an image.
34
34
 
35
35
 
36
36
  *** Output of to_s ***
37
- This is an image.This is an .
37
+ This is an image.This is an image.
38
38
  *** EOF ***
39
39
 
40
40
 
@@ -168,7 +168,7 @@ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google
168
168
 
169
169
  <p>Inline with title: <a href="http://google.com "Title"">Google images</a></p>
170
170
 
171
- <p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="&#x6D;a&#x69;&#x6C;&#x74;&#111;:&#98;&#x69;&#108;&#108;&#64;&#103;&#x6F;&#111;&#x67;&#108;&#101;&#x2E;&#x63;&#x6F;&#x6D;">&#98;&#x69;&#108;&#108;&#64;&#103;&#x6F;&#111;&#x67;&#108;&#101;&#x2E;&#x63;&#x6F;&#x6D;</a>
171
+ <p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="&#x6D;&#x61;&#105;&#108;t&#111;:&#x62;&#x69;&#x6C;&#108;&#64;&#103;o&#111;&#x67;&#x6C;&#x65;&#x2E;&#x63;&#x6F;&#x6D;">&#x62;&#x69;&#x6C;&#108;&#64;&#103;o&#111;&#x67;&#x6C;&#x65;&#x2E;&#x63;&#x6F;&#x6D;</a>
172
172
  or you might ask bill@google.com.</p>
173
173
 
174
174
  <p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: maruku
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.1
6
+ version: 0.5.2
7
7
  date: 2007-01-24
8
8
  summary: A Markdown interpreter in Ruby
9
9
  require_paths: