Skip to content

Instantly share code, notes, and snippets.

View nw13slx's full-sized avatar
🤦‍♀️
typing

Lixin Sun nw13slx

🤦‍♀️
typing
View GitHub Profile
@nw13slx
nw13slx / compile.sh
Last active February 22, 2019 18:33 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents to make them look more awesome. (Tested with Markdown)
#
# use pandoc to compile all the md file in the current folder
# need a pandoc.css file
#
for file in $(ls *.md)
do
prefix=$(echo $file|sed "s/\.md//g")
if [[ ! -f $prefix.html ]]; then
pandoc --wrap=auto --mathjax --mathml -c pandoc.css -s --toc --toc-depth=2 $prefix.md -o $prefix.html
echo "first time compile $prefix"