mirror of https://github.com/dyne/webnomad.git
added pandoc as preferred markdown renderer
This commit is contained in:
parent
27de3187cd
commit
1382618bdb
13
render
13
render
|
|
@ -188,14 +188,17 @@ render_html() {
|
||||||
act -n "${#mds} markdown fields "
|
act -n "${#mds} markdown fields "
|
||||||
|
|
||||||
# check which markdown parser is available in PATH
|
# check which markdown parser is available in PATH
|
||||||
command -v maruku > /dev/null
|
command -v pandoc > /dev/null
|
||||||
if [ "$?" = "0" ]; then parser="maruku --html-frag"
|
if [ "$?" = "0" ]; then parser="pandoc -f markdown_github -t html5"
|
||||||
else command -v markdown > /dev/null;
|
else command -v maruku > /dev/null
|
||||||
|
if [ "$?" = "0" ]; then parser="maruku --html-frag"
|
||||||
|
else command -v markdown > /dev/null;
|
||||||
if [ "$?" = "0" ]; then parser=markdown
|
if [ "$?" = "0" ]; then parser=markdown
|
||||||
else command -v multimarkdown > /dev/null
|
else command -v multimarkdown > /dev/null
|
||||||
if [ "$?" = "0"]; then parser=multimarkdown
|
if [ "$?" = "0"]; then parser=multimarkdown
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# parses all html and renders each markdown in the html
|
# parses all html and renders each markdown in the html
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue