Skip to content

Instantly share code, notes, and snippets.

@KenCrandall
Forked from zaiste/rst_to_md.sh
Created February 4, 2022 15:00
Show Gist options
  • Select an option

  • Save KenCrandall/38c323f56b44db413e86c45032864069 to your computer and use it in GitHub Desktop.

Select an option

Save KenCrandall/38c323f56b44db413e86c45032864069 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