Sync with Maruku.
This commit is contained in:
parent
488dd334f7
commit
f406318168
3 changed files with 6 additions and 6 deletions
|
@ -53,7 +53,6 @@ class LineSource
|
||||||
end
|
end
|
||||||
|
|
||||||
def describe
|
def describe
|
||||||
#s = "At line ##{@lines_index} of #{@lines.size}:\n"
|
|
||||||
s = "At line #{original_line_number(@lines_index)}\n"
|
s = "At line #{original_line_number(@lines_index)}\n"
|
||||||
|
|
||||||
context = 3 # lines
|
context = 3 # lines
|
||||||
|
@ -63,8 +62,8 @@ class LineSource
|
||||||
for i in from..to
|
for i in from..to
|
||||||
prefix = (i == @lines_index) ? '--> ' : ' ';
|
prefix = (i == @lines_index) ? '--> ' : ' ';
|
||||||
l = @lines[i]
|
l = @lines[i]
|
||||||
s += "%10s %4s|#{l}" %
|
s += "%10s %4s|%s" %
|
||||||
[@lines[i].md_type.to_s, prefix]
|
[@lines[i].md_type.to_s, prefix, l]
|
||||||
|
|
||||||
s += "|\n"
|
s += "|\n"
|
||||||
end
|
end
|
||||||
|
|
|
@ -631,7 +631,8 @@ module MaRuKu; module In; module Markdown; module SpanLevelParser
|
||||||
end
|
end
|
||||||
con.push_element md_image(alt_text, ref_id)
|
con.push_element md_image(alt_text, ref_id)
|
||||||
else # no stuff
|
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
|
||||||
end # read link
|
end # read link
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#++
|
#++
|
||||||
|
|
||||||
module MaRuKu
|
module MaRuKu
|
||||||
Version = '0.5.1'
|
Version = '0.5.2'
|
||||||
|
|
||||||
MarukuURL = 'http://maruku.rubyforge.org/'
|
MarukuURL = 'http://maruku.rubyforge.org/'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue