Skip to content

Instantly share code, notes, and snippets.

@wohugb
Forked from zaiste/rst_to_md.sh
Created January 26, 2018 13:35
Show Gist options
  • Save wohugb/1e8eeca44fed8dfdf037327da38ba8bf to your computer and use it in GitHub Desktop.
Save wohugb/1e8eeca44fed8dfdf037327da38ba8bf 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