code: 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()]);
      }
docs: Processing formatting spans
  
  @param cursor   text cursor
  @param blockEnd code span search limit
  @return built text segments