lib/kramdown/parser/kramdown/list.rb in kramdown-0.13.5 vs lib/kramdown/parser/kramdown/list.rb in kramdown-0.13.6

- old
+ new

@@ -121,10 +121,10 @@ if it.children.first.type == :p && (it.children.length < 2 || it.children[1].type != :blank || (it == list.children.last && it.children.length == 2 && !eob_found)) && (list.children.last != it || list.children.size == 1 || - list.children[0..-2].any? {|cit| cit.children.first.type != :p || cit.children.first.options[:transparent]}) + list.children[0..-2].any? {|cit| !cit.children.first || cit.children.first.type != :p || cit.children.first.options[:transparent]}) it.children.first.children.first.value << "\n" if it.children.size > 1 && it.children[1].type != :blank it.children.first.options[:transparent] = true end if it.children.last.type == :blank