Skip to content

Releases: swsnr/mdcat

mdcat-0.21.1

01 Sep 18:41
Compare
Choose a tag to compare

Fixed

  • Update pulldown cmark to correctly ignore footnote refs (see GH-155).

mdcat-0.21.0

12 Aug 08:01
Compare
Choose a tag to compare

Added

  • Add --paginate flag to paginate the output of mdcat (see GH-152);
    with this flag mdcat sends it output to less -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, if mdcat is hard-linked to mdless.

Fixed

  • Render email autolinks (i.e. <hello@example.com>) as mailto: links.

mdcat-0.20.0

05 Jul 09:27
Compare
Choose a tag to compare

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 an mdcat::Environment instead of base_dir.
    base_dir is now part of mdcat::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 uses Option 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

19 Jun 17:45
Compare
Choose a tag to compare

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

14 Jun 15:19
Compare
Choose a tag to compare

Fixed

  • Fix typo in release workflow.
  • Update all dependencies to no longer depend on yanked crate versions.

mdcat-0.18.3

14 Jun 15:10
Compare
Choose a tag to compare

Fixed

  • Properly ignore alt text of inline images (see GH-148).

mdcat-0.18.2

31 May 16:56
Compare
Choose a tag to compare

Fixed

  • Properly upload binaries for releases.

mdcat-0.18.1

31 May 16:10
Compare
Choose a tag to compare

Fixed

  • Fix release workflow.

mdcat-0.18.0

31 May 20:22
Compare
Choose a tag to compare

Added

  • Add mdcat::Error as type alias to std::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 with std::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

24 May 14:09
Compare
Choose a tag to compare
mdcat 0.17.1