Skip to content

An NSObject subclass that formats and outputs markdown in the form of NSAttributedStrings

Notifications You must be signed in to change notification settings

harisphnx/CXMarkdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CXMarkdown

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.

About

An NSObject subclass that formats and outputs markdown in the form of NSAttributedStrings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%