Convert TextSpan usage to new InlineSpan API