Using entr and pandoc, watch and render the passed markdown file.

This commit is contained in:
Nicholas Warzin 2024-07-03 11:32:09 -04:00
parent 273352de57
commit f4eb6da107

15
render.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
file=$1
echo $file.md |
entr -s \
"pandoc \
-f gfm \
$file.md \
-o $file.pdf \
-V fontfamily=merriweather \
-V geometry:margin=0.8in \
-V pagestyle:empty \
-V fontfamilyoptions:light \
-V linestretch:1.1"