indragiek / CocoaMarkdown

Markdown parsing and rendering for iOS and OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to generate the attributed string for given text "<Test>"

srinivas-kurakula opened this issue · comments

Below is the code to generate an AttributedString in iOS

NSString * markdown = @""
CMDocument *doc = [[CMDocument alloc] initWithData: [markdown dataUsingEncoding: NSUTF8StringEncoding] options: 0];
CMTextAttributes *markdownAttributes = [[CMTextAttributes alloc]init];
CMAttributedStringRenderer *renderer = [[CMAttributedStringRenderer alloc] initWithDocument: doc attributes: markdownAttributes];
return [render render];