Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Custom
token type variant which takes a styling, for tokens without particular semantics.Formatting.Element
that supersedes Formatting.Tree
.Formatting.Interfaces.TO_ELEMENT
interface which establishes the contract to convert to a formatting element that is used by formatting and printing utilitary functions such as format
and IO.print_formatted
.Int8
module that is used by Color
.Token.number
to easily construct a number literal token.Formatting.Tree
, Formatting.TOKENIZABLE
and its associated functions. Use Formatting.Element
instead.Prelude
module. It has merged with the core Ansifmt
module.print_formatted
alias from the prelude. The function can still be found as IO.print_formatted
.make_styling
alias from the prelude. The function can still be found as Styling.create
.Utils
to Internal
.Formatting
is now a directory instead of a file containing all its submodules.List.intersperse
and List.singleton
(used in Formatting.Element
).Bool.tautology
(used in Formatting.Element
).luminance
and best_for_contrast
. (by @chshersh in #5)fg
, bg
, bold
, dim
, italic
, underlined
. (by @chshersh in #6)&
. (by @chshersh in #6)make_rgb_hex
to parse hexadecimal codes into RGB colors. (by @chshersh in #7)Color.t
and Color.Ground.t
are now polymorphic variants. (by @chshersh in #5)Util.parenthesize_if
which is deemed unuseful and is kind of a duplicate of Tree.parenthesize_if
in Formatting
.m
characters would appear in the output before every colored tokenFormatting.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.print_formatted
and the IO
submodule.First pre-release.