Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Releases: swsnr/mdcat

mdcat-2.1.2

11 Mar 16:18
mdcat-2.1.2
d14825c
Compare
Choose a tag to compare

Changed

  • Update dependencies to address Rust security advisories.
Read more

mdcat-2.1.1

15 Jan 22:12
mdcat-2.1.1
d0723af
Compare
Choose a tag to compare

Changed

  • Update all dependencies (see GH-274).
Read more

mdcat-2.1.0

16 Oct 20:09
mdcat-2.1.0
379eb33
Compare
Choose a tag to compare

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

  • Correct some iTerm2 inline image commands to better comply to the specification (see GH-267).
  • Always terminate OSC commands with ST instead of BEL, as the latter is the legacy form (see GH-267).
Read more

mdcat-2.0.4

03 Oct 07:00
mdcat-2.0.4
f7aa28d
Compare
Choose a tag to compare

Changed

  • Update all dependencies.
  • Bump MSRV to 1.72.
Read more

mdcat-2.0.3

24 Apr 20:01
mdcat-2.0.3
22e6341
Compare
Choose a tag to compare

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....

Read more

mdcat-2.0.2

19 Apr 20:56
mdcat-2.0.2
1771323
Compare
Choose a tag to compare

Changed

  • Update dependencies.

Fixed

  • Fix SVG rendering:
    • Correctly enable SVG rendering and image processing features by default in mdcat (see GH-256).
    • Ignore charset and other mime type parameters when checking for image/svg+xml (see GH-256).
Read more

mdcat-2.0.1

16 Apr 16:54
mdcat-2.0.1
4ce2014
Compare
Choose a tag to compare

Fixed

  • Properly reset line wrapping state in list items (see GH-254).
  • Flush trailing spaces before starting a link to avoid link styling over an initial whitespace (see GH-255).
Read more

mdcat-2.0.0

15 Apr 15:09
mdcat-2.0.0
d33daa9
Compare
Choose a tag to compare

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 in pulldown_cmark_mdcat::Settings of type pulldown_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 the resvg dependency by disabling the svg feature (see GH-249).
  • pulldown_cmark_mdcat allows to disable image processing support and thus avoid the image dependency by disabling the image-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 using mdcat as a library before, you likely want to use pulldown-cmark-mdcat now.
  • Move HTTP resource handling into new crate mdcat-http-reqwest, in order to isolate the rather heavy reqwest dependency (see GH-248).
  • Increase timeouts for HTTP resources to avoid aborting too early.

Removed

  • mdcat::Settings.resource_access and the corresponding ResourceAccess enum (see GH-247).

[0.16...

Read more

mdcat-1.1.1

18 Mar 06:46
mdcat-1.1.1
da855ca
Compare
Choose a tag to compare

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

27 Feb 17:34
mdcat-1.1.0
919f7fd
Compare
Choose a tag to compare

Changed

  • Update all dependencies.
    This removes a transitive dependency on a vulnerable version of remove_dir_all, see GHSA-mc8h-8q98-g5hr.
  • No longer sniff mime type from contents to identify SVG images.
    Instead rely on the Content-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 of rsvg-convert; mdcat no longer requires the latter tool at runtime (see GH-240).

Fixed

  • Use less -r instead of less -R in mdless if both $PAGER and $MDCAT_PAGER are unset (see GH-238).
  • Time out external resources if no data was read for 100ms. Previously mdcat waited for 1s before timing out (see GH-241).
Read more