- #18 Added
renderTags(withStyles:)func inStringextension. It will a shortcut to parse an html-tagged string and return theNSMutableAttributedStringinstance. - #19
MarkupStringclasses does notthrowsanymore; when parsing fails to invalid strings it will returnnil. - #5 A new function is added to parse multiple regular expressions and apply to each one one or more styles. It's called
func set(regExpStyles: [RegExpPatternStyles], default dStyle: Style? = nil) -> NSMutableAttributedStringand accepts an array ofRegExpPatternStylesstructs (which defines the regexp rule, options and and array ofStyleto apply on match).defaultparameter allows you to set a default style to apply before rules are evaluated. - #2 Resolved an issue with CocoaPods
- #20 Added compatibility with
watchOS,tvOSandmacOS.