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:
parent
6b86177620
commit
6f18c90a50
|
@ -122,7 +122,7 @@ module MaRuKu; module In; module Markdown; module BlockLevelParser
|
||||||
if c.children.all? {|li| !li.want_my_paragraph} then
|
if c.children.all? {|li| !li.want_my_paragraph} then
|
||||||
c.children.each do |d|
|
c.children.each do |d|
|
||||||
d.node_type = :li_span
|
d.node_type = :li_span
|
||||||
d.children = d.children[0].children
|
d.children = d.children[0].children if d.children[0]
|
||||||
end
|
end
|
||||||
end
|
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
|
if c.children.all?{|defi| !defi.want_my_paragraph} then
|
||||||
c.children.each do |definition|
|
c.children.each do |definition|
|
||||||
definition.definitions.each do |dd|
|
definition.definitions.each do |dd|
|
||||||
dd.children = dd.children[0].children
|
dd.children = dd.children[0].children if dd.children[0]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -637,7 +637,9 @@ of the form `#ff00ff`.
|
||||||
code['lang'] = lang
|
code['lang'] = lang
|
||||||
code['class'] = lang
|
code['class'] = lang
|
||||||
end
|
end
|
||||||
pre << (code << text)
|
code << text
|
||||||
|
pre << code
|
||||||
|
pre
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_html_inline_code;
|
def to_html_inline_code;
|
||||||
|
|
Loading…
Reference in a new issue