Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Created April 26, 2012 23:14
Show Gist options
  • Save bzerangue/2504041 to your computer and use it in GitHub Desktop.
Save bzerangue/2504041 to your computer and use it in GitHub Desktop.
RECURSIVELY Bash convert all your html to markdown files (with Pandoc)
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done
@AlexJameson
Copy link

Thank you! Helped me to convert multiple folders of .md files to .docx and saved a lot of time

@matiasdiez
Copy link

This is great! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment