-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support for WASM #169
Comments
I've created a wrapper module which detects WASM builds and isn't perfect, but is working well enough for my needs.
I wonder if there would be interest in integrating this into this crate, or if it better separated out into another crate. |
IMO a tool that does what you're asking, wrapping text in BTW, such a tool should probably use the appropriate HTML elements. As a usage example, perhaps something like this: assert_eq!("foo".strong().style("color: red;").to_string(), "<strong style=\"color: red;\">foo</strong>"); This could be achieved, for example, if You might want to check if a crate that does this already exists, because this usage I'm making up does feel vaguely familiar. |
Firstly, thanks for the crate!
Would it be possible to get this crate working when building for WASM?
I've built a text based adventure game which I'm also building for WASM and it's a shame for the colored text not to work: https://github.com/hseager/you-are-merlin
I thought I'd ask for some advice before diving in and to see if it's a terrible idea or not as I apprectiate this crate is built with the terminal in mind. Thanks!
The text was updated successfully, but these errors were encountered: