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