Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
pandoc debugging due to rst conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
nnadeau committed Jan 22, 2017
1 parent 364390d commit 6ba5202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion convert_readme.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pypandoc
import os

# TODO: pypandoc.convert() function returns wrong RST format, but saving/loading a file works
print('Pandoc version: {}'.format(pypandoc.get_pandoc_version()))
print('Pandoc path: {}'.format(pypandoc.get_pandoc_path()))
print('Pandoc formats: {}'.format(pypandoc.get_pandoc_formats()))

file_path = os.path.abspath(os.path.dirname(__file__))
pypandoc.convert_file('README.md', 'rst', outputfile=os.path.join(file_path, 'README.rst'))

0 comments on commit 6ba5202

Please sign in to comment.