Add support for markdown with glow

This commit is contained in:
harishnkr 2023-03-13 10:50:59 +05:30 committed by Nikita Ivanov
parent 2936aba143
commit 41507944c4
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
2 changed files with 4 additions and 0 deletions

View File

@ -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),

3
sh/prev/glow.sh Normal file
View File

@ -0,0 +1,3 @@
# markdown: glow
glow -s auto -w "$w" "$f"