private MDText [ ] handleSpans ( TextCursor cursor , int blockEnd ) { ArrayList < MDText > elements = new ArrayList < MDText > ( ) ; while ( handleSpan ( cursor , blockEnd , elements ) ) ; return elements . toArray ( new MDText [ elements . size ( ) ] ) ; }
Processing formatting spans