@SuppressWarnings("unused")
  private int findEndOfNowikiGreedy(int startBlock) {
    // NOTE: this method could step back one char from startBlock position
    int nextBlock=startBlock-3;
    do {
      do {
        nextBlock=wikiText.indexOf("{{{", nextBlock+3);
      } while (nextBlock>0 && wikiChars[nextBlock-1]=='~');
      if (nextBlock<0) nextBlock=wikiLength;
      int endBlock=wikiText.lastIndexOf("}}}", nextBlock);
      if (endBlock>=startBlock && wikiChars[endBlock-1]!='~') return endBlock;
    } while (nextBlock<wikiLength);
    return wikiLength;
  }