-
Notifications
You must be signed in to change notification settings - Fork 79
1.0 to 2.0 migration
You can replace old feature:
parser.paragraphFont = font;
With new one:
parser.defaultAttributes = @{NSFontAttributeName: font};
And same change for other properties.
You can disable it by creating a your own parser without the rule.
You can use addMonospacedParsingWithFormattingBlock: to create your custom parser with the old rule.
You can't create a list with standardParser using *list, +list or -list anymore.
You should create a list with standardParser using * list, + list or - list now.
But you can use addShortListParsingWithMaxLevel:1 leadFormattingBlock:... textFormattingBlock:nil to create your custom parser with the old rule.
You can use addListParsingWithMaxLevel:1 leadFormattingBlock:... textFormattingBlock:nil to create your custom parser with the old rule.
You can disable it by creating a your own parser without the rule.
You can disable it by creating a your own parser without the rule.
It was a bug.
But you can use addParsingRuleWithRegularExpression:withBlock: to create your custom parser with support of || and |, like @"(\\*\\*|__|\\|\\|).+?\\1" for strong and @"(\\*|_|\\|).+?\\1" for emphasis.
It was a bug.
But you can use addParsingRuleWithRegularExpression:withBlock: to create your custom parser with support for it, like @"(\\*|_){2}.+?(\\*|_){2}" for strong.