Comments (7)
@adamdahan While I wish I could resolve every issue in a timely manner, I realistically cannot when I have other things to prioritize. I don't have any obligation or incentive to put this ahead of anything else. It's open source for a reason: you can read, extend, and modify the code on your own to suit your purposes rather than waiting on me to fix it for you.
@ryang1428 It looks like this may be an issue with a behavioural change in UIKit, I will investigate soon.
from cocoamarkdown.
To anyone who still struggles with this issue - try setting NSTextView/UITextView linkTextAttribues
to an empty dictionary and set all the needed attributes through CMTextAttributes linkAttributes
.
In my case the link always stayed blue. It appears as though the view overrides attributed string's attributes.
from cocoamarkdown.
I am also seeing a similar issue, but my links are always blue, even when setting
CMTextAttributes *cmAttrs = [[CMTextAttributes alloc] init];
cmAttrs.linkAttributes = @{NSForegroundColorAttributeName: [UIColor fp_pink]};
from cocoamarkdown.
@anton-barkov Thanks for the tips! Any idea how to do the same for NSTextField?
from cocoamarkdown.
@ianbytchek I'm not sure that links will work properly with NSTextField, you should probably consider using NSTextView. See this thread.
from cocoamarkdown.
@anton-barkov They work perfectly fine. The only issue is they are always displayed in blue while the attributed string specifies a different color.
from cocoamarkdown.
The conclusion here seems to be that the view being used to render the attributed string seems to override attributes that are set by CocoaMarkdown when generating the attributed string. Since this is a UIKit problem and not an issue with CMAttributedStringRenderer
, I am closing this issue.
from cocoamarkdown.
Related Issues (20)
- Some README code doesn't compile HOT 3
- Umbrella header for a framework build generates warnings in Xcode 7.3.1 (iOS framework build) HOT 3
- Probably code block bug with trailing ```
- Support two empty spaces at the end of line to trigger line return HOT 2
- CocoaPods not support HOT 1
- CocoaMarkdown does not compile on Sierra using /Applications/Xcode-beta 2.app/Contents/Developer HOT 1
- Improving the readme HOT 1
- cocoapods HOT 4
- Bulleted lists line break bug HOT 1
- CMTextAttributes HOT 1
- Failed to generate the attributed string for given text "<Test>"
- Sample apps not working after #49 merge HOT 3
- Image renders as a placeholder until user clicks on it HOT 3
- Link by cocopods with duplicate symbol error
- cache image
- Supporting URLRequest in inline image download HOT 11
- Use pod to directly reference the master branch code, running crash HOT 1
- Hello, the downloaded pictures need to be cached. Can you open the interface for custom downloading pictures?
- Custom hooks? HOT 1
- cmark has been deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoamarkdown.