|
|
|
|
|
|
|
|
NSAttributedString *newAuthorAttributedString = [[NSAttributedString alloc] initWithString:author attributes:authorStringAttributes];
|
|
|
NSAttributedString *newAuthorAttributedString = [[NSAttributedString alloc] initWithString:author attributes:authorStringAttributes];
|
|
|
|
|
|
|
|
|
[authorNode setAttributedTitle:newAuthorAttributedString forState:UIControlStateNormal];
|
|
|
[authorNode setAttributedTitle:newAuthorAttributedString forState:UIControlStateNormal];
|
|
|
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
|
|
|
|
|
|
|
|
@try {
|
|
|
|
|
|
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
|
|
|
|
|
}
|
|
|
|
|
|
@catch (NSException *exc) {
|
|
|
|
|
|
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes isForPreview:NO]];
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
if ([data objectForKey:@"sender"]) {
|
|
|
if ([data objectForKey:@"sender"]) {
|
|
|
[data[@"sender"] setEnabled:YES];
|
|
|
[data[@"sender"] setEnabled:YES];
|
|
|
|
|
|
|
|
|
NSAttributedString* newAuthorAttributedString = [[NSAttributedString alloc] initWithString:authorTextString attributes:authorStringAttributes];
|
|
|
NSAttributedString* newAuthorAttributedString = [[NSAttributedString alloc] initWithString:authorTextString attributes:authorStringAttributes];
|
|
|
|
|
|
|
|
|
[authorNode setAttributedTitle:newAuthorAttributedString forState:UIControlStateNormal];
|
|
|
[authorNode setAttributedTitle:newAuthorAttributedString forState:UIControlStateNormal];
|
|
|
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
|
|
|
|
|
|
|
|
@try {
|
|
|
|
|
|
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes]];
|
|
|
|
|
|
}
|
|
|
|
|
|
@catch (NSException *exc) {
|
|
|
|
|
|
[bodyNode setAttributedString:[%c(MarkdownRenderer) attributedStringFromMarkdown:body withAttributes:apolloBodyAttributes isForPreview:NO]];
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
%end
|
|
|
%end
|