title: Rich text (with images) performance - UITextView vs UIWebview
body: <p>I need to display rich text which may include a lot of images as is formatted as Markdown.</p>
  
  <p>After some research I see that there are 2 most common approaches:</p>
  
  <ul>
  <li>parse <strong>Markdown</strong> to <strong>HTML</strong> and display it within <code>UIWebView</code></li>
  <li>parse <strong>Markdown</strong> to  <code>NSAttributedString</code> and feed it into <code>UITextView</code> which can use <code>NSTextAttachment</code>s to display <code>UIImage</code>s.</li>
  </ul>
  
  <p>I'm wondering about possible issues with both approaches but mostly performance.
  I'm aware that with <code>UITextView</code> I'm a bit limited as I can't use CSS to customise its look etc., but if you had some experience and there are a lot of issues with images alignment in <code>UITextView</code> that would be good to know too.</p>
  
  <p>Additionally, as this may be relevant to others searching for possible functionality, I'm listing libs that I'm considering to use to handle <strong>Markdown</strong>:</p>
  
  <ul>
  <li><a href="https://github.com/dreamwieber/AttributedMarkdown" rel="nofollow">AttributedMarkdown</a></li>
  <li><a href="https://github.com/Uncodin/bypass" rel="nofollow">Bypass</a></li>
  <li><a href="https://github.com/indragiek/CocoaMarkdown" rel="nofollow">CocoaMarkdown</a></li>
  <li><a href="https://github.com/indragiek/MarkdownTextView" rel="nofollow">MarkdownTextView</a></li>
  </ul>