Skip to content

v2.12.0

Choose a tag to compare

@andyfeller andyfeller released this 25 Mar 14:28
· 26 commits to trunk since this release
61bf393

Introducing experimental support for rendering markdown with customizable, accessible colors

Users with low vision or color blindness rely upon the terminal's ability to change how colors appear, however this requires CLIs to use a limited set of colors:

Screenshot of Mac Terminal preferences, highlighting ANSI color wells

The markdown rendered for GitHub CLI and extensions defaults to 8-bit colors that users cannot easily customize in this way.

Now, users can force rendered markdown to use customizable, accessible colors by doing one of the following:

  1. Set GH_ACCESSIBLE_COLORS environment variable to a truthy value

    export GH_ACCESSIBLE_COLORS=1
  2. Set accessible_colors configuration setting

    gh config set accessible_colors enabled
Experimental.accessible.markdown.colors.mp4

Users with a customcharmbracelet/glamour style will continue to have markdown rendered using it.

For more information, see #186

Introducing new experimental github.com/cli/go-gh/v2/pkg/x package

cli/go-gh provides capabilities used by both the GitHub CLI and CLI extensions. Some of these packages are stable, however some like the new experimental markdown support are not.

The github.com/cli/go-gh/v2/pkg/x package has been created to contain experimental features that are subject to change without notice.

Introducing new string matcher functions for Go templates

The following string matcher functions from Masterminds/sprig have been incorporated for more robust Go template support in GitHub CLI and CLI extensions:

For more information, see cli/cli#6370 and sprig documentation

What's Changed

✨ Features

New Contributors

Full Changelog: v2.11.2...v2.12.0