Code for turning links into styles in CAttributedString. stackimport generates links for group text.