Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Parse HTML on main thread #84

Merged
merged 2 commits into from
Jan 9, 2019
Merged

Conversation

aelkady
Copy link
Contributor

@aelkady aelkady commented Jan 9, 2019

Description

Workaround for johnxnguyen/Down#116

DevQA

DevQA Prep

  • Run pod install
  • Test RichTextView to ensure that it passes (unit and UI tests)
  • Navigate to the Example project in the root Example folder and run the app
  • Ensure that everything in the Example app looks visually correct

return self.getAttributedTextFromDown(with: input)
}

var output = NSAttributedString(string: input)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to convert input to a NSAttributedString, it will be replaced with the return value of getAttributedTextFromDown anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a way to initialize output as a non-optional NSAttributedString, but yes I will replace with an empty string.

@tophat-danger
Copy link

1 Message
📖

If anything other than RichTextView appears in the code coverage section please add it
to the exclude_targets property of the xcov.report() function in the Dangerfile

Current coverage for RichTextView.framework is 90.71%

Files changed - -
RichTextParser.swift 94.26%

Powered by xcov

Generated by 🚫 Danger

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aelkady aelkady merged commit 5624cd7 into master Jan 9, 2019
@aelkady aelkady deleted the bugfix/parse-html-on-main-thread branch January 9, 2019 22:35
@iwasrobbed
Copy link

Just an FYI, this will be much faster if you use the new AST renderer in v0.7.0 and above. See johnxnguyen/Down#132

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

Successfully merging this pull request may close these issues.

3 participants