This repository was archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Custom attributes #3
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I think it'd be neat to be able to provide custom attributes when creating attributed strings. For example, a chat application might want to make headers bold without altering the size, or a note-taking application might want to render links with a specific a tint color.
I think this could be done fairly easily by adding an optional parameter (where appropriate) such that the existing API signature(s) don't change and the current attributes are used as default values.
Do you have any thoughts on this? I'd be happy to make a PR (plus any tweaks based on your feedback) if this is something you'd like upstream.
Thanks again for sharing!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request