github swsnr/mdcat mdcat-2.0.0

latest releases: mdcat-2.5.0, mdcat-2.4.0, mdcat-2.3.1...
19 months ago

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

Don't miss a new mdcat release

NewReleases is sending notifications on new releases.