Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Custom attributes #3

@mikepulaski

Description

@mikepulaski

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions