class Kramdown::Parser::Html::ElementConverter

def wrap_text_children(el)

def wrap_text_children(el)
  tmp = []
  last_is_p = false
  el.children.each do |c|
    if c.options[:category] != :block || c.type == :text
      if !last_is_p
        tmp << Element.new(:p, nil, :transparent => true)
        last_is_p = true
      end
      tmp.last.children << c
      tmp
    else
      tmp << c
      last_is_p = false
    end
  end
  el.children = tmp
end