An NSObject subclass that formats and outputs markdown in the form of NSAttributedStrings
The CXMarkdown NSObject subclass allows for NSString instances containing markdown to be rendered as NSAttributedStrings. It iteratively parses and formats a CFMutableAttributedString before returning it as an NSAttributedString with the markdown translated into font attributes. CXMarkdown currently only renders:
- Italics: As such.
- Bold: As such.
- Strikethoughs: As
such - Superscript: Assuch
- Hyperlinks: As such.
CXMarkdown will be extended to support quotes, and code blocks. Please inform me of bugs and other issues if applicable. Finally, please don't parse strings larger than 216 characters in length unless you plan on convering the indexing variables to 32 bit integer types.