Skip to content

Instantly share code, notes, and snippets.

@yjzhang
Created February 14, 2018 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjzhang/7c509d3d4dc0978061156f1635f79347 to your computer and use it in GitHub Desktop.
Save yjzhang/7c509d3d4dc0978061156f1635f79347 to your computer and use it in GitHub Desktop.
uses pandoc to convert a bunch of files to html
#!/bin/bash
for var in "$@"; do
filename=${var%.*}
#echo $filename
#echo $@
echo "writing to $filename.html"
pandoc $var --self-contained --toc -c /home/yjzhang/Dropbox/Notes/buttondown.css -s --mathml -o $filename.html
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment