code: private void handleUrls(TextCursor cursor, int limit, ArrayList<MDText> elements) {
  
          if (mode == MODE_FULL || mode == MODE_ONLY_LINKS) {
              while (true) {
                  TitledUrl url = findFormattedUrl(cursor, limit);
                  if (url != null) {
  
                      // Handling text before url first
                      handleRawText(cursor, url.getStart(), elements);
  
                      // Adding url
                      String title = cursor.text.substring(url.getStart() + 1, url.getMiddle());
                      String urlVal = cursor.text.substring(url.getMiddle() + 2, url.getEnd());
                      elements.add(new MDUrl(title, urlVal));
  
                      // Adjusting offset
                      cursor.currentOffset = url.getEnd() + 1;
                  } else {
                      break;
                  }
              }
          }
  
          // Handling remaining text
          handleRawText(cursor, limit, elements);
      }
docs: Handling urls
  
  @param cursor
  @param limit
  @param elements