1 2 3 4
import pypandoc DESC = pypandoc.convert('README.md', 'rst') DESC = DESC.replace("\r", "") print(DESC)