code: def pandoc_process(app, what, name, obj, options, lines):
      Convert docstrings in Markdown into reStructureText using pandoc
      """
  
      if not lines:
          return None
  
      input_format = app.config.mkdsupport_use_parser
      output_format = 'rst'
  
      # Since default encoding for sphinx.ext.autodoc is unicode and pypandoc.convert_text, which will always return a
      # unicode string, expects unicode or utf-8 encodes string, there is on need for dealing with coding
      text = SEP.join(lines)
      text = pypandoc.convert_text(text, output_format, format=input_format)
  
      # The 'lines' in Sphinx is a list of strings and the value should be changed
      del lines[:]
      lines.extend(text.split(SEP))
docs: Convert docstrings in Markdown into reStructureText using pandoc