Figured it out. Turns out I can do this just with NSTextTab
s, like below:
NSString *enumerator = @"\t\u2022\t"; // Bullet symbol
NSMutableParagraphStyle *enumeratorParagraphStyle = [paragraphStyle mutableCopy];
NSTextTab *enumeratorTabStop = [[NSTextTab alloc] initWithTextAlignment:NSTextAlignmentRight
location:eMarkdownRendererIndentationPoints
options:nil];
NSTextTab *contentTabStop = [[NSTextTab alloc] initWithTextAlignment:NSTextAlignmentLeft
location:contentLocation
options:nil];
enumeratorParagraphStyle.tabStops = @[enumeratorTabStop, contentTabStop];
[textStorage appendAttributedString:[[NSAttributedString alloc] initWithString:enumerator
attributes:@{NSParagraphStyleAttributeName: enumeratorParagraphStyle}]];