def rst2markdown_github(path_to_rst, path_to_md, pandoc="<STR_LIT>"):
_proc = subprocess.Popen([pandoc, "<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>", "<STR_LIT>",<EOL>path_to_rst],<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>print("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>_stdout, _stderr = _proc.communicate()<EOL>with _open(path_to_md, "<STR_LIT:w>", encoding="<STR_LIT:utf-8>") as _md:<EOL><INDENT>_skip_newline = False<EOL>for line in _stdout.decode('<STR_LIT:utf-8>').split(os.linesep):<EOL><INDENT>line = re.sub("<STR_LIT>", "<STR_LIT>", line)<EOL>if line.startswith("<STR_LIT>"):<EOL><INDENT>_md.write(line)<EOL>_md.write("<STR_LIT:\n>")<EOL>if not line.startswith(("<STR_LIT>")):<EOL><INDENT>_skip_newline = True<EOL><DEDENT><DEDENT>elif _skip_newline and line == "<STR_LIT>":<EOL><INDENT>_skip_newline = False<EOL>continue<EOL><DEDENT>else:<EOL><INDENT>_md.write(line)<EOL>_md.write("<STR_LIT:\n>")<EOL><DEDENT><DEDENT><DEDENT>if _stderr:<EOL><INDENT>print("<STR_LIT>", _stderr)<EOL><DEDENT>if os.path.isfile(path_to_md) and os.stat(path_to_md).st_size > <NUM_LIT:0>:<EOL><INDENT>print("<STR_LIT>".format(path_to_md))<EOL><DEDENT>
Converts ``rst`` to **markdown_github**, using :program:`pandoc`

**Input**

    * ``FILE.rst``

**Output**

    * ``FILE.md``