Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.17 KB

CHANGES.md

File metadata and controls

39 lines (22 loc) · 1.17 KB

0.2.0

Features

  • Add color functions luminance and best_for_contrast. (by @chshersh in #5)
  • Add styling functions fg, bg, bold, dim, italic, underlined. (by @chshersh in #6)
  • Add styling composition with &. (by @chshersh in #6)
  • Add function make_rgb_hex to parse hexadecimal codes into RGB colors. (by @chshersh in #7)

Breaking Changes

  • Color.t and Color.Ground.t are now polymorphic variants. (by @chshersh in #5)

Removed

  • Util.parenthesize_if which is deemed unuseful and is kind of a duplicate of Tree.parenthesize_if in Formatting.

0.1.3

Fixes

  • Fixed a bug where unwanted m characters would appear in the output before every colored token

0.1.2

Fixes

  • Moved Formatting.tokenize and Formatting.format to a dedicated Formatting.Util submodule - it is common for users who wish to implement TOKENIZABLE to open Formatting, and Formatting.tokenize would then shadow the user's own function, making it cumbersome if the latter was recursive. This does not affect the Ansifmt prelude - format stays available.

0.1.1

Features

  • Added print_formatted and the IO submodule.

0.1.0

First pre-release.