Failed to generate the attributed string for given text "<Test>"
srinivas-kurakula opened this issue · comments
srinivas-kurakula commented
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];