Releases: swsnr/mdcat
Releases · swsnr/mdcat
mdcat-0.21.1
Fixed
- Update pulldown cmark to correctly ignore footnote refs (see GH-155).
mdcat-0.21.0
Added
- Add
--paginate
flag to paginate the output of mdcat (see GH-152);
with this flag mdcat sends it output toless -R
or any alternative pager set in$MDCAT_PAGER
or$PAGER
.
This flag also disables all terminal-specific formatting as the pager likely won't support it. - Paginate output by default if invoked as
mdless
, that is, ifmdcat
is hard-linked tomdless
.
Fixed
- Render email autolinks (i.e.
<hello@example.com>
) asmailto:
links.
mdcat-0.20.0
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.
mdcat-0.19.0
Added
- Release packages now include generated shell completions for Bash, Zsh and Fish.
Changed
- Blockquotes no longer have green foreground text (see GH-144).
mdcat-0.18.4
Fixed
- Fix typo in release workflow.
- Update all dependencies to no longer depend on yanked crate versions.
mdcat-0.18.3
Fixed
- Properly ignore alt text of inline images (see GH-148).
mdcat-0.18.2
Fixed
- Properly upload binaries for releases.
mdcat-0.18.1
Fixed
- Fix release workflow.
mdcat-0.18.0
Added
- Add
mdcat::Error
as type alias tostd::io::Error
.
Changed
- New simpler rendering algorithm (see GH-142) which solves numerous rendering issues (see below).
- Handle internal errors with anyhow to add more context to errors (see GH-139).
mdcat::push_tty
only fails withstd::io::Error
:mdcat
never visibly
fails unless it can’t write output.
Fixed
- Respect
--local-only
and resource access policy; this got lost in some
refactoring (see GH-146). - Consistent margins and newlines around paragraphs, HTML blocks and inside list
items (see GH-142). - Correctly indent nested code blocks in lists and block quotes (see GH-142).
- No longer print leading blank lines before lists (see GH-142).
- Correctly indent block quotes (see GH-142).
- Colorize the entire text of links (see GH-142).
mdcat-0.17.1
mdcat 0.17.1