Skip to content

Instantly share code, notes, and snippets.

@versionsix
Forked from zaiste/rst_to_md.sh
Created July 17, 2018 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save versionsix/287999232dd4f48d6d2e7e268b3b6e98 to your computer and use it in GitHub Desktop.
Save versionsix/287999232dd4f48d6d2e7e268b3b6e98 to your computer and use it in GitHub Desktop.
Convert RST to Markdown using Pandoc
FILES=*.rst
for f in $FILES
do
filename="${f%.*}"
echo "Converting $f to $filename.md"
`pandoc $f -f rst -t markdown -o $filename.md`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment