瀏覽代碼

Merge bc2ce3915b into 2189ff3b66

pull/10/merge
IntriguingTiles 3 年之前
父節點
當前提交
1270a74ecb
No account linked to committer's email address
共有 2 個文件被更改,包括 13 次插入2 次删除
  1. +1
    -0
      tweak/Apollo.h
  2. +12
    -2
      tweak/Apollo.xm

+ 1
- 0
tweak/Apollo.h 查看文件

@@ -77,6 +77,7 @@
@interface MarkdownRenderer
+ (id)attributedStringFromMarkdown:(id)arg1 withAttributes:(id)arg2;
+ (id)attributedStringFromMarkdown:(id)arg1 withAttributes:(id)arg2 isForPreview:(BOOL)arg3;
@end
@interface ActionController

+ 12
- 2
tweak/Apollo.xm 查看文件

@@ -318,7 +318,12 @@ id apolloCommentsControllerForContext;
NSAttributedString *newAuthorAttributedString = [[NSAttributedString alloc] initWithString:author attributes:authorStringAttributes];
[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"]) {
[data[@"sender"] setEnabled:YES];
@@ -377,7 +382,12 @@ id apolloCommentsControllerForContext;
NSAttributedString* newAuthorAttributedString = [[NSAttributedString alloc] initWithString:authorTextString attributes:authorStringAttributes];
[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

Loading…
取消
儲存