-
Notifications
You must be signed in to change notification settings - Fork 333
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
AST To NSAttributedString #81
Conversation
AST to NSAttributedString
Hi @johnxnguyen 👋 This looks like quite the effort. I'd be curious to know why you took this approach (i.e. what does it offer over the alternative?). The more information you can provide, the better I can understand it if you re-open your PR. Also, please note that all Down code (in Swift) must be licensed under MIT or it will not be acceptable to merge. |
Hey @iwasrobbed ! My apologies, I mistakenly made the PR to your project, so you can ignore it. In any case, I'm a developer for Wire and have been tasked with integrating markdown into the app. We found generating the attributed text directly from HTML was a bit too limited as we needed a bit more control in how the attributed text is constructed. But I'd like to take this opportunity to thank you, this framework is fantastic! |
Glad to hear it! As I mentioned to others, also check out BonMot if you haven't already |
@johnxnguyen Looks like a lot of effort indeed. Would you consider making a PR? It would make a great feature! |
Hi @ianbytchek, sure I would be happy to make a PR. Though, I would first like to go over it one more and clean up some things. |
Thanks for the offer @johnxnguyen ! We'd happily welcome a PR and also happy to add you as a collaborator |
FYI: this is superseded by #132
The PR introduces changes that allow an
NSAttributedString
to be generated directly from the AST, rather than through the intermediate step of generating HTML and then instantiating the attributed string. Other changes include the newDownStyle
class to configure and style the attributed string.