Skip to content

mdcat-2.16.0

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Sep 10:14
mdcat-2.16.0
c755060

Added

  • New --full-width flag (and defaults.full_width in ~/.config/mdcat/config.toml) to use the
    full terminal width instead of capping output at 80 columns, without having to pass
    --columns $(tput cols) (see #42).

Fixed

  • Clarify in the docs that Renderer::text_from_str/text_from_read (and the free
    text_from_str function) never render actual images, only alt text, because a Ratatui Text is
    plain styled spans that cannot carry image data; RenderOptions::images only affects
    MdcatWidget/MdcatWidgetState, which draw decoded images as overlays on top of the text. This
    was a common source of confusion for callers using Renderer directly without the widget (see
    #36).
  • Fix a panic when a table cell contains a footnote reference (e.g. 2[^1]). Table cells handle
    inline events directly instead of going through the generic Inline state that footnote
    references were only wired up for, so FootnoteReference inside a TableBlock fell through to
    the "impossible event" panic (see #43).

Changed

  • Lower the "Terminal does not support images, rendering image as link" log message from INFO
    to DEBUG. This message fires on every image when rendering into Ratatui Text, because that
    code path deliberately disables inline image protocols and renders images as overlays instead;
    at INFO it drowned out other diagnostics for ratatui-based consumers (see #37).