diff --git a/lib/maruku/input/linesource.rb b/lib/maruku/input/linesource.rb index 5d0a67d8..f346ab7f 100644 --- a/lib/maruku/input/linesource.rb +++ b/lib/maruku/input/linesource.rb @@ -53,7 +53,6 @@ class LineSource end def describe - #s = "At line ##{@lines_index} of #{@lines.size}:\n" s = "At line #{original_line_number(@lines_index)}\n" context = 3 # lines @@ -63,8 +62,8 @@ class LineSource for i in from..to prefix = (i == @lines_index) ? '--> ' : ' '; l = @lines[i] - s += "%10s %4s|#{l}" % - [@lines[i].md_type.to_s, prefix] + s += "%10s %4s|%s" % + [@lines[i].md_type.to_s, prefix, l] s += "|\n" end diff --git a/lib/maruku/input/parse_span_better.rb b/lib/maruku/input/parse_span_better.rb index e5d52ede..22971304 100644 --- a/lib/maruku/input/parse_span_better.rb +++ b/lib/maruku/input/parse_span_better.rb @@ -631,7 +631,8 @@ module MaRuKu; module In; module Markdown; module SpanLevelParser end con.push_element md_image(alt_text, ref_id) else # no stuff - con.push_elements children + ref_id = alt_text.to_s.downcase.gsub(' ','_') + con.push_element md_image(alt_text, ref_id) end end # read link diff --git a/lib/maruku/version.rb b/lib/maruku/version.rb index c86755ea..2f212835 100644 --- a/lib/maruku/version.rb +++ b/lib/maruku/version.rb @@ -19,7 +19,7 @@ #++ module MaRuKu - Version = '0.5.1' + Version = '0.5.2' MarukuURL = 'http://maruku.rubyforge.org/' @@ -35,4 +35,4 @@ module MaRuKu true end -end \ No newline at end of file +end