added pandoc as preferred markdown renderer

This commit is contained in:
Jaromil 2014-08-01 13:05:31 +02:00
parent 27de3187cd
commit 1382618bdb
1 changed files with 8 additions and 5 deletions

5
render
View File

@ -188,7 +188,9 @@ render_html() {
act -n "${#mds} markdown fields "
# check which markdown parser is available in PATH
command -v maruku > /dev/null
command -v pandoc > /dev/null
if [ "$?" = "0" ]; then parser="pandoc -f markdown_github -t html5"
else command -v maruku > /dev/null
if [ "$?" = "0" ]; then parser="maruku --html-frag"
else command -v markdown > /dev/null;
if [ "$?" = "0" ]; then parser=markdown
@ -197,6 +199,7 @@ render_html() {
fi
fi
fi
fi
# parses all html and renders each markdown in the html
for i in $mds; do