vendor/bundle/ruby/2.1.0/gems/org-ruby-0.9.12/lib/org-ruby/markdown_output_buffer.rb
def inline_formatting(input)
      @re_help.rewrite_emphasis input do |marker, body|
        m = MarkdownMap[marker]
        "#{m}#{body}#{m}"
      end
      @re_help.rewrite_subp input do |type, text|
        if type == "_" then
          "<sub>#{text}</sub>"
        elsif type == "^" then
          "<sup>#{text}</sup>"
        end
      end
      @re_help.rewrite_links input do |link, defi|
        # We don't add a description for images in links, because its
        # empty value forces the image to be inlined.
        defi ||= link unless link =~ @re_help.org_image_file_regexp
        link = link.gsub(/ /, "%%20")

        if defi =~ @re_help.org_image_file_regexp
          "![#{defi}](#{defi})"
        elsif defi
          "[#{defi}](#{link})"
        else
          "[#{link}](#{link})"
        end
      end

      # Just reuse Textile special symbols for now?
      Orgmode.special_symbols_to_textile(input)
      input = @re_help.restore_code_snippets input
      input
    end
# Handles inline formatting for markdown.
Handles inline formatting for markdown.
Handles inline formatting for markdown .
def inline_formatting(input)
      @re_help.rewrite_emphasis input do |marker, body|
        m = MarkdownMap[marker]
        "#{m}#{body}#{m}"
      end
      @re_help.rewrite_subp input do |type, text|
        if type == "_" then
          "<sub>#{text}</sub>"
        elsif type == "^" then
          "<sup>#{text}</sup>"
        end
      end
      @re_help.rewrite_links input do |link, defi|
        defi ||= link unless link =~ @re_help.org_image_file_regexp
        link = link.gsub(/ /, "%%20")
        if defi =~ @re_help.org_image_file_regexp
          "![#{defi}](#{defi})"
        elsif defi
          "[#{defi}](#{link})"
        else
          "[#{link}](#{link})"
        end
      end
      Orgmode.special_symbols_to_textile(input)
      input = @re_help.restore_code_snippets input
      input
    end
def inline_formatting ( input ) @re_help . rewrite_emphasis input do | marker , body | m = MarkdownMap [ marker ] "#{m}#{body}#{m}" end @re_help . rewrite_subp input do | type , text | if type == "_" then "<sub>#{text}</sub>" elsif type == "^" then "<sup>#{text}</sup>" end end @re_help . rewrite_links input do | link , defi | defi ||= link unless link =~ @re_help . org_image_file_regexp link = link . gsub ( / / , "%%20" ) if defi =~ @re_help . org_image_file_regexp "![#{defi}](#{defi})" elsif defi "[#{defi}](#{link})" else "[#{link}](#{link})" end end Orgmode . special_symbols_to_textile ( input ) input = @re_help . restore_code_snippets input input end
Handles inline formatting for markdown.
Handles inline formatting for markdown .
# We don't add a description for images in links, because its # empty value forces the image to be inlined. # Just reuse Textile special symbols for now?
input