switch to pandoc for markdown compilation
This commit is contained in:
parent
57c5666b0c
commit
2214df25c3
|
@ -41,8 +41,8 @@ java)
|
||||||
[ "$loc":w != "" ] && exec "$loc" run -q -p "$(dirname $loc)"
|
[ "$loc":w != "" ] && exec "$loc" run -q -p "$(dirname $loc)"
|
||||||
;;
|
;;
|
||||||
m) octave "$file" ;;
|
m) octave "$file" ;;
|
||||||
md) if [ -x "$(command -v lowdown)" ]; then
|
md) if [ -x "$(command -v pandoc)" ]; then
|
||||||
lowdown --parse-no-intraemph "$file" -Tms | groff -mpdfmark -ms -kept -T pdf >"$base".pdf
|
pandoc -t latex -s -o "$base".pdf "$file"
|
||||||
elif [ -x "$(command -v groffdown)" ]; then
|
elif [ -x "$(command -v groffdown)" ]; then
|
||||||
groffdown -i "$file" | groff -T pdf >"$base.pdf"
|
groffdown -i "$file" | groff -T pdf >"$base.pdf"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue