about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxchangelog2
1 files changed, 2 insertions, 0 deletions
diff --git a/xchangelog b/xchangelog
index 8f25228..77a0753 100755
--- a/xchangelog
+++ b/xchangelog
@@ -29,6 +29,8 @@ if ! [ -t 1 ]; then
 elif curl -sI -w "%{content_type}" -o /dev/null -- "$changelog" | grep -qi "^text/plain"; then
 	if [ -n "$PAGER" ]; then
 		curl -s -- "$changelog" | "$PAGER"
+	elif [[ "$changelog" = *".md" ]] && type mdless >/dev/null; then
+		curl -s -- "$changelog" | mdless
 	elif type less >/dev/null; then
 		curl -s -- "$changelog" | less
 	else