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"