def convert(*args)
      @options += args if args
      outputfile = @options.map{ |x| x[:output] }.compact
      tmp_file = Tempfile.new('pandoc-conversion')
      @options += [{ output: tmp_file.path }] if outputfile.empty?
      @option_string = prepare_options(@options)
      begin
        run_pandoc
        IO.binread(tmp_file)
      ensure
        tmp_file.close
        tmp_file.unlink
      end
    end
def convert(*args)
      @options += args if args
      outputfile = @options.map{ |x| x[:output] }.compact
      tmp_file = Tempfile.new('pandoc-conversion')
      @options += [{ output: tmp_file.path }] if outputfile.empty?
      @option_string = prepare_options(@options)
      begin
        run_pandoc
        IO.binread(tmp_file)
      ensure
        tmp_file.close
        tmp_file.unlink
      end
    end
Create a new RubyPandoc converter object. The first argument contains the
 input either as string or as an array of filenames.

 Any other arguments will be converted to pandoc options.

 Usage:
   new("# A String", :option1 => :value, :option2)
   new(["/path/to/file.md"], :option1 => :value, :option2)
   new(["/to/file1.html", "/to/file2.html"], :option1 => :value)
 Run the conversion. The convert method can take any number of arguments,
 which will be converted to pandoc options. If options were already
 specified in an initializer or reader method, they will be combined with
 any that are passed to this method.

 Returns a string with the converted content.

 Example:

   RubyPandoc.new("# text").convert
   # => "<h1 id=\"text\">text</h1>\n"