module Pricecut
  module Elements
    class Li < Element
      def output!
        case node.parent.name
        when "ol"
          p "1.  "; yield_children; eol
        when "ul"
          p "-  "; yield_children; eol
        end
      end
    end
  end
end