config/initializers/transformers.rb
# Top-level <li> elements are removed because they can break out of
# containing markup.
Top-level  elements are removed because they can break out of
containing markup.
Top - level elements are removed because they can break out of containing markup .
def top_level_li
    lambda do |env|
      name, node = env[:node_name], env[:node]
      if name == LIST_ITEM && !node.ancestors.any?{ |n| LISTS.include?(n.name) }
        node.replace(node.children)
      end
    end
  end
def top_level_li lambda do | env | name , node = env [ :node_name ] , env [ :node ] if name == LIST_ITEM && ! node . ancestors . any? { | n | LISTS . include? ( n . name ) } node . replace ( node . children ) end end end
Top-level <li> elements are removed because they can break out of
containing markup.
Top - level <li > elements are removed because they can break out of containing markup .