I just open-sourced a project that takes raw markdown and converts it into an NSAttributedString:
https://github.com/dreamwieber/AttributedMarkdown
It's a work-in-progress and includes a demo application which shows how to assign attributes to the various markdown elements.