1
0
Fork 0
forked from ZeusWPI/drive
drive/scripts/md_to_pdf.sh

8 lines
245 B
Bash
Raw Normal View History

2020-10-11 20:04:51 +02:00
#!/bin/sh
echo "Converting to HTML…"
for file in *.md */*.md
echo " converting $file"
pandoc $file -f markdown -t pdf -o (echo "../$file" | sed '$s/\.md$/.pdf/') -s --data-dir=./ --variable=file:(echo "$file" | sed '$s/\.md$/.pdf/')
end