Skip to content

Instantly share code, notes, and snippets.

@hellowac
Forked from zaiste/rst_to_md.sh
Created October 6, 2023 05:24
Show Gist options
  • Select an option

  • Save hellowac/c97dc79f0a3c1d783bff17f12007fe82 to your computer and use it in GitHub Desktop.

Select an option

Save hellowac/c97dc79f0a3c1d783bff17f12007fe82 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