NimbusKit / markdown

A Markdown NSAttributedString parser.
Apache License 2.0
656 stars 63 forks source link

Added speedup improvement #28

Closed gskbyte closed 10 years ago

gskbyte commented 10 years ago

Adds a speedup improvement, that can be quite high with markdown strings without too much markup.

It works like this:

Doing this avoids allocating a new NSAttributedString and their associated attributes every time that we read a token (that can be just one letter for unformatted text), and the overhead of adding it to the existing parsed text.