Added
- Custom heading markers and GFM alert icons/labels via
textin a
[theme.styles]entry in~/.config/mdcat/config.toml: seth2-h6to
override the marker written before heading text, oralert_note-
alert_cautionto override the icon and label written for that alert
(GH #23). pulldown-cmark-mdcat:Themegainedh2_marker-h6_markerand
alert_note_label-alert_caution_labelfields (all publicStrings)
controlling the text previously hardcoded in the renderer.--tocprints a numbered table of contents, generated from the document's
headings and nested by level, before its content. Entries link to
FILE#slug(a GitHub-style anchor) via OSC 8 so that terminals and later
viewers that resolve such anchors can jump to that heading; on standard
input entries are plain text, since there's no file to link to.--image-protocol/$MDCAT_IMAGE_PROTOCOL/defaults.image_protocolin
~/.config/mdcat/config.tomlforces a specific inline image protocol
(none,iterm2,kitty, orsixel), overriding terminal auto-detection.
Useful inside tmux/screen, where the outer terminal's capabilities usually
aren't visible to auto-detection. Precedence:--image-protocolwins over
$MDCAT_IMAGE_PROTOCOL, which wins over the config default.--tabs/defaults.tabsin~/.config/mdcat/config.tomlexpands literal
tabs in the input to spaces, using the given tab stop width, before
parsing. Off by default, so tabs pass through unchanged; without this, a
tab inside text content throws off line-wrapping and alignment width
calculations, since terminals render it as jumping to the next tab stop
rather than occupying a single column.
Fixed
- Syntax-highlighted fenced code blocks nested inside list items (or other
indented blocks) lost their indentation on every line after the first,
because only untagged (non-highlighted) code blocks re-applied indentation
after each line. - Inline images (badges, icons) rendered too small on Sixel and iTerm2, only
filling part of their allotted terminal row, since they were sent at
native pixel resolution rather than scaled to a whole number of cell
rows. Sixel images also drifted into a descending staircase when several
appeared in a row (e.g. consecutive README badges), and iTerm2 never
applied any explicit sizing at all (GH #22).