From cf1c5694ba393acbb017f47bd4b9c65a4f756f1e Mon Sep 17 00:00:00 2001 From: niansa Date: Sun, 15 Jul 2018 09:41:29 +0000 Subject: [PATCH] Update config.sh, sendfile.sh files --- config.sh | 2 +- sendfile.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.sh b/config.sh index 908f86f..a3514c8 100644 --- a/config.sh +++ b/config.sh @@ -24,7 +24,7 @@ WEBSITE="http://localhost:$PORT" # Should PHP be enabled? You need to install php-cli package to use it. May be false or true ENABLE_PHP="false" -# Should Markdown be enabled? You need to install markdown package to use it. May be false or true +# Should Markdown be enabled? You need to install pandoc package to use it. May be false or true ENABLE_MARKDOWN="false" # Error code pages, they need to be HTML documents diff --git a/sendfile.sh b/sendfile.sh index 7436c47..dccaa16 100644 --- a/sendfile.sh +++ b/sendfile.sh @@ -8,7 +8,7 @@ if [[ "$FILE" == *.php ]] && [ "$(which php)" != "" ] && [ "$ENABLE_PHP" = "true elif [[ "$FILE" == *.md ]] && [ "$(which markdown)" != "" ] && [ "$ENABLE_MARKDOWN" = "true" ]; then CONTENTTYPE="text/html" . ./httpheaders.sh - markdown -b "$FILES" "$FILE" >> $OUTFILE + pandoc -f markdown_github "$FILE" >> $OUTFILE elif [ -f "${FILE}" ]; then CONTENTTYPE=$(file -b -i "$FILE") . ./httpheaders.sh