Homestyx hydra
Diffusion hydra 4d12d014fd9d

Add PhutilRemarkupHexColorCodeRule, a new remarkup rule to format color codes

Description

Add PhutilRemarkupHexColorCodeRule, a new remarkup rule to format color codes

Summary:
Implements a remarkup rule that formats the background color to match the value of inline hex color codes.

The format for this rule looks like {#RRGGBB} and it will be formatted the same as monospace text, so #RRGGBB with the background set to the specified color.

Test Plan:

  • run arc unit and see the tests pass
  • create some markup with {#ff0000} color codes for all of your favorite colors {#ee33ee}

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, aklapper, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15744

Differential Revision: https://we.phorge.it/D25540

Details

Provenance
Mukunda ModellAuthored on Feb 24 2024, 8:40 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:5444e1c885c3: Fix PHP 8.1 "strlen(null)" exception for "/bin/storage renamespace" without…
Branches
Unknown
Tags
Unknown

Event Timeline