Skip to content

Commit

Permalink
add --ansi to mdcat, fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Nov 4, 2024
1 parent 5d50dd9 commit 4a9699e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
****************************************************************************
# ChangeLog for lesspipe.sh #
****************************************************************************
- add --ansi to mdcat (fixes #48)
- improved recognition of appimage files
Version 2.15 Oct 03 2024
- improved parsing of bat/batcat options in LESSCOLORIZE
Expand Down
2 changes: 1 addition & 1 deletion lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ isfinal () {
# filename needs to end in .class
has_cmd procyon && t=$t.class && cat "$1" > "$t" && cmd=(procyon "$t") ;;
markdown)
[[ $COLOR = *always ]] && mdopt=() || mdopt=(-c)
[[ $COLOR = *always ]] && mdopt=(--ansi ) || mdopt=(-c)
{ has_cmd mdcat && cmd=(mdcat "${mdopt[@]}" "$1"); } ||
{ has_cmd pandoc && cmd=(pandoc -t plain "$1"); } ;;
docx)
Expand Down

0 comments on commit 4a9699e

Please sign in to comment.