Skip to content

Instantly share code, notes, and snippets.

@ivn951
Forked from zaiste/rst_to_md.sh
Created December 3, 2018 04:16
Show Gist options
  • Save ivn951/887f1e2483c193053b5a8c0872701119 to your computer and use it in GitHub Desktop.
Save ivn951/887f1e2483c193053b5a8c0872701119 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