-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add hex formatting options to frontmatter #8
Comments
i assume you mean |
ah yep, good catch! edited. |
@rubyowo has rightly pointed out that we already have some of this implemented, but it's undocumented. i would advise not relying on the frontmatter options in their current form as we might change then, but if they solve a big problem right now then they are technically usable. |
completed in #18 |
it'd be nice to be able to configure how whiskers represents colour as hexadecimal.
for example, this template:
would produce
#D20F39
instead of the defaultd20f39
.capitalize
+prefix
as options gives us a good amount of flexibility out of the box for common formats like#RRGGBB
and0xRRGGBB
, but it's worth considering a more complex implementation that could allow more control, for example being able to specify a format string like0x{a:02X}{b:02X}{g:02X}{r:02X}
to produce0xAABBGGRR
format colours.The text was updated successfully, but these errors were encountered: