munge_list_items

in resources/asciidoctor/lib/docbook_compat/convert_lists.rb [44:54]


    def munge_list_items(node, html)
      node.items.each do |item|
        next unless item.text
        next if item.blocks?

        text = item_text node, item
        html.sub!("<p>#{text}</p>", text) ||
          raise("Couldn't remove <p> for #{text} in #{html}")
      end
    end