1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Updated pandoc usage

This commit is contained in:
niansa 2020-08-04 14:48:43 +02:00
parent 482feb559a
commit df16ff520a

View file

@ -11,7 +11,7 @@ if [[ "$FILE" == *.php ]] && [ "$ENABLE_PHP" = "true" ]; then
php "$FILE" >> $OUTFILE
elif [[ "$FILE" == *.md ]] && [ "$ENABLE_MARKDOWN" = "true" ]; then
. ./httpheaders.sh
pandoc -f markdown_github "$FILE" >> $OUTFILE
pandoc -f gfm "$FILE" >> $OUTFILE
elif [ -f "${FILE}" ]; then
CONTENTTYPE=$(file -b -i "$FILE")
. ./httpheaders.sh