Add disclaimer about using bat to README
-- [glow](https://repology.org/project/glow/packages) or [bat](https://repology.org/project/bat-cat/packages) for rendering markdown in the terminal
+- [glow](https://repology.org/project/glow/packages) for rendering markdown in the terminal ([bat](https://repology.org/project/bat-cat/packages) can be used as a fallback, but glows output is clearer and therefore recommended)
- [cabal](https://repology.org/project/cabal/packages) for compiling the helper program for creating configurations
## Configuration
- [cabal](https://repology.org/project/cabal/packages) for compiling the helper program for creating configurations
## Configuration
USE_GLOW=true
elif command -v bat >/dev/null 2>/dev/null; then
USE_BAT=true
USE_GLOW=true
elif command -v bat >/dev/null 2>/dev/null; then
USE_BAT=true
+ printf "Glow not found, markdown rendering will be done by bat.\n"
+ printf "Install glow for easier reading & copy-paste.\n"
else
printf "Glow or bat not found, markdown rendering not available.\n"
printf "Output will be raw markdown and might look weird.\n"
else
printf "Glow or bat not found, markdown rendering not available.\n"
printf "Output will be raw markdown and might look weird.\n"
- printf "Install glow or bat for easier reading & copy-paste.\n"
+ printf "Install glow for easier reading & copy-paste.\n"
- printf "%s" "$HELP" | glow -
+ printf "%s\n" "$HELP" | glow -
- printf "%s" "$HELP" | bat -pp -f --language markdown
+ printf "%s\n" "$HELP" | bat -pp -f --language markdown