#!/bin/sh

# easy to add more extensions if you want.
case "$1" in
	(*.md)
		/usr/lib/cgit/filters/html-converters/md2html "$1"
		;;
	(*.[1-9].scd)
		scdoc | groff -mandoc -Thtml
		;;
	(*)
		/usr/lib/cgit/filters/syntax-highlighting.py "$1"
		;;
esac
