code: def get_pandoc_formats():
      
      try:
          p = subprocess.Popen(
              ['pandoc', '-h'],
              stdin=subprocess.PIPE,
              stdout=subprocess.PIPE)
      except OSError:
          raise OSError("You probably do not have pandoc installed.")
  
      help_text = p.communicate()[0].decode().splitlines(False)
      txt = ' '.join(help_text[1:help_text.index('Options:')])
  
      aux = txt.split('Output formats: ')
      in_ = aux[0].split('Input formats: ')[1].split(',')
      out = aux[1].split(',')
  
      return [f.strip() for f in in_], [f.strip() for f in out]
docs: Dynamic preprocessor for Pandoc formats.
  
      Return 2 lists. "from_formats" and "to_formats".