mdcat

cat for markdown

MPL-2.0 License

Downloads
944
Stars
2.1K
Committers
25

Bot releases are hidden (Show)

mdcat -

Published by swsnr about 2 years ago

Changed

  • Update all dependencies, in particular syntect to 5.0.0 and pulldown-cmark to 0.9.2.
mdcat -

Published by swsnr about 2 years ago

Fixed

  • Build error on Windows (see #201).
mdcat -

Published by swsnr about 2 years ago

Added

  • Add extensive tracing output, to aid debugging (see #147).

Changed

  • mdcat no longer invokes file to detect SVG images, but now requires the presence of a system-wide magic database (see #154).
    Disable default features to restore the previous behaviour to invoke file to detect mimetypes.

Fixed

  • File completion with zsh (see #198).
mdcat -

Published by swsnr over 2 years ago

Changed

  • Always output links as OSC-8 hyperlinks unless --dump is given.
    In particular, mdcat now prints hyperlinks if invoked as mdless or with -p, as recent less versions support OCS-8 hyperlinks (see GH-191).
mdcat -

Published by swsnr about 4 years ago

Added

  • Enable OSC8 hyperlinks in Kitty (see GH-165).
    Kitty supports hyperlinks since version 0.19, see Kitty GH-68.
    Note that mdcat unconditionally prints hyperlinks if it detects a kitty terminal.
    It makes no attempt to detect whether the Kitty version is compatible or the allow_hyperlinks setting is enabled.
  • mdcat --version (but not mdcat -V) now informs whether HTTP/HTTPS support is builtin or requires curl.
  • mdcat now includes a manpage (see GH-167).

Changed

  • mdcat now asks the controlling terminal for the terminal size and thus correctly detects the terminal size even if standard input, s>
  • mdcat no longer requires kitty icat to detect the size of kitty windows (see GH-166).
    Consequently mdcat can now show images on Kitty terminals even over SSH.
  • mdcat --help no longer uses colours, and always wraps at 80 characters now.
mdcat -

Published by swsnr over 4 years ago

Fixed

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

Published by swsnr over 4 years ago

Fixed

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

Published by swsnr over 4 years ago

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 -

Published by swsnr over 4 years ago

Changed

  • Update pulldown-cmark to 0.7.
mdcat -

Published by swsnr almost 5 years ago

Added

  • Release builds now perform full link-time optimization to create a smaller
    binary. We do recommend to also strip the mdcat binary.
  • Render SVG images in [kitty] (see GH-114).
  • Update to reqwest 0.10.
  • Process file list as input (see GH-54 and GH-115, by @norman-abramovitz):
    • Add --fail flag to exit on the first error when processing a file list;
      the default behaviour is to continue with the next file in case of error.

Changed

  • Replace remote_resources feature with reqwest feature to use reqwest for
    retrieving remote resources, and fall back to the curl command if reqwest
    is disabled.
mdcat -

Published by swsnr over 5 years ago

Added

  • Render task lists nicely (see GH-72).
  • Render strike-through text (see GH-71). Some terminals do not support this
    feature, and mdcat does not have a fallback currently (see GH-73).
mdcat -

Published by swsnr almost 6 years ago

Fixed

  • Do not add newline after inline text with styles disabled (see GH-49).
mdcat -

Published by swsnr almost 6 years ago

Added

  • Add TerminalCapability struct as replacement for mdcat::Terminal trait to
    remove dynamic dispatch and allow for more accurate and less complicated
    conditional compilation of terminal support for different platforms (see
    GH-45).
  • Move to Rust 2018, and raise minimum supported Rust version to 1.31 (see
    GH-46).

Changed

  • Drop support for Rust 1.29 and older.
  • Do not test specific Rust on versions on Travis CI any longer; Rust stable
    becomes the lowest supported Rust version.

Removed

  • mdcat::Terminal trait and implementations (see GH-45).

Fixed

  • Set hostname to local hostname for inline links to file:// URLs, which
    should properly resolve file:// URLs over SSH (see OSC 8 file URLs,
    GH-42 and GH-44).
mdcat -

Published by swsnr almost 6 years ago

Changed

  • Always print colours regardless of whether stdout if a tty or not.
  • Replace --colour option with a --no-colour flag to turn off styled output.
  • mdcat::push_tty no longer takes ownership of the terminal argument (see
    GH-41).
mdcat - mdcat-0.10.1

Published by swsnr about 6 years ago

Fixed

  • Properly package musl binary on Travis CI; restores Linux binary in releases.
mdcat - mdcat-0.10.0

Published by swsnr about 6 years ago

Added

  • Support colours on Windows 10 console (see GH-36).
  • Support musl target on Linux (see GH-37 and GH-38).
  • Published Linux binary statically links musl now, and has no runtime
    dependencies (see GH-29 and GH-38).
mdcat -

Published by swsnr about 6 years ago

Fix auto-published binaries for macOS and Linux.

mdcat -

Published by swsnr about 6 years ago

Added

  • mdcat builds on Windows now (see GH-33 and GH-34).

Changed

  • Refactor internal terminal representation, replacing the terminal enum with a
    new Terminal trait and dynamic dispatch (see GH-35).
  • Disable specific terminal backends by default (see GH-35). You must build
    with --feature to enable iTerm2 or Terminology.
  • Update minimum Rust version to 1.27.
mdcat -

Published by swsnr over 6 years ago

Added

  • Render SVG images in iTerm2 with rsvg-convert (requires librsvg).
  • Expose TerminalWrite in mdcat crate (see [GH-20][]).