mdcat-0.20.0
github-actions
released this
05 Jul 09:27
·
514 commits
to main
since this release
Added
mdcat::TerminalCapabilities
now exposes constructors for specific terminal emulators.- Render reference link definitions as inline links if possible (see GH-149).
This mainly affects image links inside inline links which get rendered as reference links. mdcat::Environment
now contains all environment information required to render properly, namely the local hostname and the base URL.
Changed
mdcat::push_tty
now takes anmdcat::Environment
instead ofbase_dir
.
base_dir
is now part ofmdcat::Environment
.- Image links now use purple foreground text (see GH-140 and GH-149).
- Image links render as inline links if the terminal does not support inline images and the image is not inside another link (see GH-141).
mdcat::TerminalCapabilities
now usesOption
to denote missing capabilities.
Fixed
- Always treat links targets as URLs, never as paths.
- On ITerm2 only use the last segment of image URLs as filename for inline images (see GH-149).
Previously mdcat used the full URL based on a misunderstanding of the Inline Images Protocol.