-
Notifications
You must be signed in to change notification settings - Fork 21
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
Link/Code text colour doesn't work #14
Comments
Yes, I confirm the bug. link colors and font just won't work. |
markdownParser is returning an NSAttributedString. Colors for link will depend on the UI element: See what I wrote in this other project: https://github.com/laptobbe/TSMarkdownParser/blob/3.x/TSMarkdownParser/TSMarkupParser.h:
So, you need:
And only then I may be able to help. |
@swaterfall the example that you've pinpointed at is using a. UITextView's tintColor property is controlling all links color, links are clickable. |
@Coeur in my case, the markdown was applied to a UILabel. Links remains blue. In my particular case, I don't need a clicable link. Beyond of this, what is the point about restricting the style of a link? I mean : if I explicitely set Thanks. |
Setting the colour attribute for Link/Code doesn't work:
To recreate just add the following code to example project in
Exemple2ViewController
:markdownParser.link.color = UIColor.red
markdownParser.code.color = UIColor.red
The text was updated successfully, but these errors were encountered: