Re:Surprises When Designing An iPhone App
by SeoxyS on Tuesday December 11, 2012 @03:01PM
(#4906490)
You might be interested in something I plan to open source at some point: a native Markdown lexing / parsing engine meant to be used to stylize markdown for Core Text / NSAttributedString.
Here's the meat of it in a gist: https://gist.github.com/29dabe4b6e762ee221df
Re:Surprises When Designing An iPhone App
by andrew_k on Tuesday December 11, 2012 @05:24PM
(#4907270)
Thanks a lot for the link, I was going to write Markdown -> NSAttributedString library myself, because I couldn't find one. Right now I'm just using DTCoreText and convert Markdown to HTML on the server.
Re:Surprises When Designing An iPhone App
by SeoxyS on Tuesday December 11, 2012 @07:20PM
(#4907845)
You might also want to look into GitHub's Sundown library. It's an awesome library and being written in pure C, you can use it natively.
The reason I wrote myself is that my use case was more markdown highlighting than markdown parsing. I needed to preserve the markdown source untouched, which Sundown doesn't support.
At some point, I'd love to incorporate a Fireball markdown parser so that authored and styled content from our servers can just be pulled from our app.