Skip to content
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

Implement functional variant of the styled macro #42

Closed
tecosaur opened this issue Mar 9, 2024 · 2 comments
Closed

Implement functional variant of the styled macro #42

tecosaur opened this issue Mar 9, 2024 · 2 comments

Comments

@tecosaur
Copy link
Collaborator

tecosaur commented Mar 9, 2024

I think it would be rather nice to be able to take a "styled representation" (e.g. {magenta:hey}) and transform it to an AnnotatedString as the styled"" macro does, but with a function.

This would require a major refactor to stylemacro.jl, and I think we'd want to chop out the code-evaluation related functionality from the functional form, but I think it would be worth having.

@tecosaur
Copy link
Collaborator Author

tecosaur commented Mar 9, 2024

I'm now trying to create a PR-ready branch in https://github.com/JuliaLang/StyledStrings.jl/tree/functional-styled-markup, I'll make a PR as soon as it seems viable and of sufficient quality.

@tecosaur
Copy link
Collaborator Author

Implemented in #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant