aboutsummaryrefslogtreecommitdiff
path: root/filters/about-formatting.sh
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'filters/about-formatting.sh')
-rwxr-xr-xfilters/about-formatting.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/filters/about-formatting.sh b/filters/about-formatting.sh
index 313a4e6..85daf9c 100755
--- a/filters/about-formatting.sh
+++ b/filters/about-formatting.sh
@@ -3,7 +3,7 @@
# This may be used with the about-filter or repo.about-filter setting in cgitrc.
# It passes formatting of about pages to differing programs, depending on the usage.
-# Markdown support requires perl.
+# Markdown support requires python and markdown-python.
# RestructuredText support requires python and docutils.
# Man page support requires groff.
@@ -18,8 +18,8 @@
# CGIT_REPO_CLONE_URL ( = repo.clone-url setting )
cd "$(dirname $0)/html-converters/"
-case "$(tr '[:upper:]' '[:lower:]' <<<"$1")" in
- *.md|*.mkd) exec ./md2html; ;;
+case "$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')" in
+ *.markdown|*.mdown|*.md|*.mkd) exec ./md2html; ;;
*.rst) exec ./rst2html; ;;
*.[1-9]) exec ./man2html; ;;
*.htm|*.html) exec cat; ;;