This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
Releases: swsnr/mdcat
Releases · swsnr/mdcat
mdcat-2.1.1
mdcat-2.1.0
Added
- Support images in VSCode integrated terminal, 1.80 or newer (see GH-266).
Changed
- When rendering iTerm2 images append
.png
to the file name reported to the terminal if mdcat rendered an SVG to PNG (see GH-267).
Previously, mdcat retained the original file extension, and would ask iTerm2 to download a PNG image to an.svg
file.
Fixed
mdcat-2.0.4
mdcat-2.0.3
Changed
- mdcat now uses the kitty protocol to render images on WezTerm (see GH-258).
- mdcat now downscales images to the column limit if rendering with the kitty protocol (see GH-258).
Previously mdcat scaled down to the window size, which looked strange if a given--columns
was much smaller than the window size.
[0....
mdcat-2.0.2
Changed
- Update dependencies.
Fixed
mdcat-2.0.1
Fixed
mdcat-2.0.0
Added
- mdcat now fills paragraph text to the column limit, i.e. fills up short lines and wraps long lines (see GH-4).
- mdcat now allows to control color and style via a new
theme
field inpulldown_cmark_mdcat::Settings
of typepulldown_cmark_mdcat::Theme
(see GH-48).
pulldown_cmark_mdcat::Theme::default()
provides the standard mdcat 1.x colors and style. - mdcat now exposes resource handling via the new
pulldown_cmark_mdcat::resources::ResourceUrlHandler
trait (see GH-247). pulldown_cmark_mdcat
allows to disable SVG support and thus avoid theresvg
dependency by disabling thesvg
feature (see GH-249).pulldown_cmark_mdcat
allows to disable image processing support and thus avoid theimage
dependency by disabling theimage-processing
feature (see GH-250).
Changed
- Update all dependencies.
mdcat::Settings
now holds a reference to a syntax set, so the syntax set can now be shared among multiple different settings.- Explicitly set minimum rust version in
Cargo.toml
, and document MSRV policy. - Move all core rendering functions into a new crate
pulldown-cmark-mdcat
;mdcat
itself only contains the argument parsing and handling now (see GH-248).
If you were usingmdcat
as a library before, you likely want to usepulldown-cmark-mdcat
now. - Move HTTP resource handling into new crate
mdcat-http-reqwest
, in order to isolate the rather heavyreqwest
dependency (see GH-248). - Increase timeouts for HTTP resources to avoid aborting too early.
Removed
mdcat::Settings.resource_access
and the correspondingResourceAccess
enum (see GH-247).
[0.16...
mdcat-1.1.1
Fixed
- No longer elide tracing info below warn level in release builds (see GH-242)..
This allows downstream consumers to keep tracing info included in their release builds.
mdcat-1.1.0
Changed
- Update all dependencies.
This removes a transitive dependency on a vulnerable version ofremove_dir_all
, see GHSA-mc8h-8q98-g5hr. - No longer sniff mime type from contents to identify SVG images.
Instead rely on theContent-Type
header for HTTP(S) images and the file extension for local resources (see GH-239). - Render SVG images using the pure Rust
resvg
crate instead ofrsvg-convert
; mdcat no longer requires the latter tool at runtime (see GH-240).
Fixed
mdcat-1.0.0
Added
- Add
--detect-terminal
to print the name of the detected terminal program (see GH-232). - Add
--ansi
to skip terminal detection and use ANSI-formatting only (see GH-232).
Changed
- Replace
ureq
withreqwest
(see GH-229).
This implies that the default build now creates a binary linked against the system standard SSL library, i.e. openssl under Linux.
A fully static build now requires--no-default-features --features static
forcargo build
. - Terminal detection always checks
$TERM
first and trusts its value if it denotes a specific terminal emulator (see GH-232). - Update all dependencies.