Skip to content
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

A faster substitute to NSHTMLTextDocumentType? #23

Closed
pmusolino opened this issue Feb 24, 2017 · 2 comments
Closed

A faster substitute to NSHTMLTextDocumentType? #23

pmusolino opened this issue Feb 24, 2017 · 2 comments

Comments

@pmusolino
Copy link

Hi!

Can be Down a better and faster substitute to render html inside a textview?
For example, is possible to use Down to improve the rendering of complex html inside a table view cell?
Actually i'm using an attributed string with this option [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType] but the rendering is too slow.

Thanks
-Paolo

@iwasrobbed
Copy link
Collaborator

iwasrobbed commented Feb 24, 2017

@codeido I haven't tried that before, but Down is mostly for translating Common Markdown into other types (such as HTML). You'd still need something to render those converted types and Down has no control over that.

DownView will render HTML since it's a simple web view subclass, but it's still bound by the same rendering performance constraints as any other web view. I would assume UITextView uses a different way of rendering HTML.

tl;dr: I'm not sure, but if you're rendering from markdown to html, then yes Down can help speed that up. Down will not help speed up HTML -> View rendering

@iwasrobbed
Copy link
Collaborator

Please look into the new AST functionality which will performantly render attributed strings in customized ways: #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants