mdcat

cat for markdown

MPL-2.0 License

Downloads
944
Stars
2.1K
Committers
25

Bot releases are visible (Hide)

mdcat - mdcat-0.25.1

Published by github-actions[bot] almost 3 years ago

Changed

  • Update pulldown-cmark to 0.9.1 which fixes a minor parsing issue.
mdcat - mdcat-0.25.0

Published by github-actions[bot] almost 3 years ago

Changed

  • Update pulldown-cmark to 0.9.
  • Buffer writes to terminal and pager, to reduce the amount of syscalls.
mdcat - mdcat-0.24.2

Published by github-actions[bot] almost 3 years ago

Added

  • Added support for $TERM=foot* (see GH-193).

Fixed

  • Fix compiler error with newer anyhow versions (see GH-192).
mdcat - mdcat-0.24.1

Published by github-actions[bot] almost 3 years ago

Fixed

  • Fix semi-broken release.
  • Document support for foot in manpage.
mdcat - mdcat-0.24.0

Published by github-actions[bot] almost 3 years ago

Added

mdcat - mdcat-0.23.2

Published by github-actions[bot] over 3 years ago

Changed

  • WezTerm is now detected by TERM and TERM_PROGRAM environment variables (see GH-186).
mdcat - mdcat-0.23.1

Published by github-actions[bot] over 3 years ago

Changed

  • Use TERM_PROGRAM for determining WezTerm terminal (see GH-185).
mdcat - mdcat-0.23.0

Published by github-actions[bot] over 3 years ago

Added

mdcat - mdcat-0.22.4

Published by github-actions[bot] over 3 years ago

Changed

  • Update dependencies
mdcat - mdcat-0.22.3

Published by github-actions[bot] over 3 years ago

Added

  • Refuse to read more than 100MiB from external resources, e.g. images; mdcat cannot display images of that size reasonably anyway (see GH-176).

Fixed

  • Fix type error on FreeBSD (see GH-177).
mdcat - mdcat-0.22.2

Published by github-actions[bot] almost 4 years ago

Changed

  • Replace reqwest with ureq to fetch images via HTTP/HTTPS (see GH-168 and GH-169);
    the latter has considerably less dependencies and builds faster.
    It also builds statically out of the box, hence the static musl builds no longer require curl to fetch images.

Removed

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 - mdcat-0.22.1

Published by github-actions[bot] about 4 years ago

Fixed

  • Include manpage source in Windows packages.
    Currently the manpage doesn't build on Windows CI.
mdcat - mdcat-0.21.1

Published by github-actions[bot] about 4 years ago

Fixed

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

Published by github-actions[bot] about 4 years ago

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

mdcat - mdcat-0.20.0

Published by github-actions[bot] over 4 years ago

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 - mdcat-0.19.0

Published by github-actions[bot] over 4 years ago

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 -

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