From 41507944c49c4bbbf8f3a21dde42243c6b4e1b79 Mon Sep 17 00:00:00 2001 From: harishnkr Date: Mon, 13 Mar 2023 10:50:59 +0530 Subject: [PATCH] Add support for markdown with glow --- previews.h | 1 + sh/prev/glow.sh | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 sh/prev/glow.sh diff --git a/previews.h b/previews.h index 43db2c4..271d3c2 100644 --- a/previews.h +++ b/previews.h @@ -15,6 +15,7 @@ Preview b_previews[] = { PR(NULL, NULL, NULL, any, PREV_ATTR_NONE), + PR("md", NULL, NULL, glow, PREV_ATTR_NONE), PR("md", NULL, NULL, mdcat, PREV_ATTR_NONE), PR("torrent", NULL, NULL, torrent, PREV_ATTR_NONE), diff --git a/sh/prev/glow.sh b/sh/prev/glow.sh new file mode 100644 index 0000000..e9e9b1c --- /dev/null +++ b/sh/prev/glow.sh @@ -0,0 +1,3 @@ +# markdown: glow + +glow -s auto -w "$w" "$f"