vendor/bundle/ruby/2.1.0/gems/org-ruby-0.9.12/lib/org-ruby/parser.rb
def to_markdown
      mark_trees_for_export
      export_options = {
        :markup_file        => @parser_options[:markup_file]
      }
      output = ""
      output_buffer = MarkdownOutputBuffer.new(output, export_options)

      translate(@header_lines, output_buffer)
      @headlines.each do |headline|
        next if headline.export_state == :exclude
        case headline.export_state
        when :exclude
          # NOTHING
        when :headline_only
          translate(headline.body_lines[0, 1], output_buffer)
        when :all
          translate(headline.body_lines, output_buffer)
        end
      end
      output
    end
# Exports the Org mode content into Markdown format
Exports the Org mode content into Markdown format
Exports the Org mode content into Markdown format
def to_markdown
      mark_trees_for_export
      export_options = {
        :markup_file        => @parser_options[:markup_file]
      }
      output = ""
      output_buffer = MarkdownOutputBuffer.new(output, export_options)
      translate(@header_lines, output_buffer)
      @headlines.each do |headline|
        next if headline.export_state == :exclude
        case headline.export_state
        when :exclude
        when :headline_only
          translate(headline.body_lines[0, 1], output_buffer)
        when :all
          translate(headline.body_lines, output_buffer)
        end
      end
      output
    end
def to_markdown mark_trees_for_export export_options = { :markup_file => @parser_options [ :markup_file ] } output = "" output_buffer = MarkdownOutputBuffer . new ( output , export_options ) translate ( @header_lines , output_buffer ) @headlines . each do | headline | next if headline . export_state == :exclude case headline . export_state when :exclude when :headline_only translate ( headline . body_lines [ 0 , 1 ] , output_buffer ) when :all translate ( headline . body_lines , output_buffer ) end end output end
Exports the Org mode content into Markdown format
Exports the Org mode content into Markdown format
# NOTHING