brovador / NSString-CommonMark

NSString category for binding with CommonMark c implementation in objective c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSString+CommonMarkdown

NSString category to use CommonMarkdown c implementation as a method of NSString. It defines the following method:

/*
Returns the html result from the markdown string 
or nil if there are errors during the conversion
*/
- (NSString*)cmd_htmlRepresentation:(NSError**)error

Errors

(very basic, needs to be be improved)

Errors will be treated as Parse or Generator errors in the same domain:

extern NSString* const CMDMarkdownGenerationErrorDomain;
extern const NSInteger CMDMarkdownParserErrorCode;
extern const NSInteger CMDMarkdownGeneratorErrorCode;

About

NSString category for binding with CommonMark c implementation in objective c


Languages

Language:C 99.2%Language:Objective-C 0.8%