File tree Expand file tree Collapse file tree 1 file changed +8
-19
lines changed
Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -19210,25 +19210,14 @@ Can't show archives. Export archive and expand to edit.\\n"
1921019210 "mdless" \
1921119211 "mdv"
1921219212 then
19213- if [[ "${_markdown_tool:-}" == "bat" ]]
19214- then
19215- bat --language "${_target_extension:-md}"
19216- elif [[ "${_markdown_tool:-}" == "glow" ]]
19217- then
19218- glow --pager
19219- elif [[ "${_markdown_tool:-}" == "lowdown" ]]
19220- then
19221- lowdown -Tterm | _pager
19222- elif [[ "${_markdown_tool:-}" == "mdcat" ]]
19223- then
19224- mdcat --paginate
19225- elif [[ "${_markdown_tool:-}" == "mdless" ]]
19226- then
19227- mdless
19228- elif [[ "${_markdown_tool:-}" == "mdv" ]]
19229- then
19230- mdv "${_target_path}" | _pager
19231- fi
19213+ case "${_markdown_tool:-}" in
19214+ "bat") bat --language "${_target_extension:-md}" ;;
19215+ "glow") glow --pager ;;
19216+ "lowdown") COLS=$(tput cols); lowdown -Tterm --term-width="$COLS" --term-columns="$COLS" --term-hmargin=1 | _pager ;;
19217+ "mdcat") mdcat --paginate ;;
19218+ "mdless") mdless ;;
19219+ "mdv") mdv "${_target_path}" | _pager ;;
19220+ esac
1923219221 else
1923319222 {
1923419223 # fold to current terminal width and preserve list formatting
You can’t perform that action at this time.
0 commit comments