Ack! 2 more Maruku Errors

1. #to_html_code was not working
  (my own #$%* fault, for trying
  to be too fancy).
2. Empty list items. 
   Reported by Andrew Stacey
This commit is contained in:
Jacques Distler 2011-08-22 10:20:17 -05:00
parent 6b86177620
commit 6f18c90a50
2 changed files with 5 additions and 3 deletions

View file

@ -122,7 +122,7 @@ module MaRuKu; module In; module Markdown; module BlockLevelParser
if c.children.all? {|li| !li.want_my_paragraph} then
c.children.each do |d|
d.node_type = :li_span
d.children = d.children[0].children
d.children = d.children[0].children if d.children[0]
end
end
end
@ -130,7 +130,7 @@ module MaRuKu; module In; module Markdown; module BlockLevelParser
if c.children.all?{|defi| !defi.want_my_paragraph} then
c.children.each do |definition|
definition.definitions.each do |dd|
dd.children = dd.children[0].children
dd.children = dd.children[0].children if dd.children[0]
end
end
end

View file

@ -637,7 +637,9 @@ of the form `#ff00ff`.
code['lang'] = lang
code['class'] = lang
end
pre << (code << text)
code << text
pre << code
pre
end
def to_html_inline_code;