[file_previewer.sh]: Use defaults for Markdown handling

This commit is contained in:
2025-01-11 01:05:55 +00:00
parent 9f5ba139d4
commit 4555bfa6b3

View File

@ -66,9 +66,6 @@ case "$mimetype" in
text/html) text/html)
lynx -width="$width" -display_charset=utf-8 -dump "$file";; lynx -width="$width" -display_charset=utf-8 -dump "$file";;
text/markdown)
markdown-it "$file" | lynx -width="$width" -display_charset=utf-8 -dump -stdin;;
video/*) video/*)
ffmpeg -ss 00:00:00 -i "$file" -frames:v 1 -q:v 2 "$preview_image" ffmpeg -ss 00:00:00 -i "$file" -frames:v 1 -q:v 2 "$preview_image"
chafa "$preview_image" --size "$(($width-4))"x"$height" chafa "$preview_image" --size "$(($width-4))"x"$height"