1
0
Fork 0

switch to pandoc for markdown compilation

This commit is contained in:
Luca Bilke 2023-03-09 11:56:11 +01:00
parent 57c5666b0c
commit 2214df25c3
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ java)
[ "$loc":w != "" ] && exec "$loc" run -q -p "$(dirname $loc)"
;;
m) octave "$file" ;;
md) if [ -x "$(command -v lowdown)" ]; then
lowdown --parse-no-intraemph "$file" -Tms | groff -mpdfmark -ms -kept -T pdf >"$base".pdf
md) if [ -x "$(command -v pandoc)" ]; then
pandoc -t latex -s -o "$base".pdf "$file"
elif [ -x "$(command -v groffdown)" ]; then
groffdown -i "$file" | groff -T pdf >"$base.pdf"
else