Comments (3)
I should have mentioned: MacOS 10.14
from cocoamarkdown.
I found a workaround... we were using an NSTextField, which causes the above issue. Switching it to an NSTextView makes it render correctly, as in the example app. Not sure why this would matter but I'm past my problem now at least.
from cocoamarkdown.
Actually NSTextField
should not be used for markdown-related attributed string display because a text field is a NSControl
intended for text entry, so it has a number of limitations compared to NSTextView.
According to Apple Developer Documentation:
The Field Editor
The field editor is a single NSTextView object that is shared among all the controls, including text fields, in a window. This text view object inserts itself into the view hierarchy to provide text entry and editing services for the currently active text field. When the user shifts focus to a text field, the field editor begins handling keystroke events and display for that field. Figure 4-3 illustrates the field editor in relation to the text field it is editing.
@tsfischer Can you therefore close 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
- 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.