/** * Process the given line of markup starting at the provided offset. * * @param line * the markup line to process * @param offset * the offset at which to start processing * * @return a non-negative integer to indicate that processing of the block completed before the end of the line, or * -1 if the entire line was processed. */ public int processLine(String line, int offset) { getState().setLineCharacterOffset(offset); return processLineContent(line, offset); }
currentBlock.setParser(parser); lineOffset = currentBlock.processLineContent(line, lineOffset); if (currentBlock.isClosed()) { currentBlock = null;