All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.parser.block.MatchedBlockParser Maven / Gradle / Ivy

Go to download

Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)

There is a newer version: 0.64.8
Show newest version
package com.vladsch.flexmark.parser.block;

import com.vladsch.flexmark.util.data.MutableDataHolder;
import com.vladsch.flexmark.util.sequence.BasedSequence;

import java.util.List;

/**
 * Open block parser that was last matched during the continue phase. This is different from the currently active
 * block parser, as an unmatched block is only closed when a new block is started.
 * 

This interface is not intended to be implemented by clients.

*/ public interface MatchedBlockParser { /** * @return current matched block parser instance */ BlockParser getBlockParser(); /** * Returns the current content of the paragraph if the matched block is a paragraph. The content can be multiple * lines separated by {@code '\n'}. * * @return paragraph content or {@code null} */ BasedSequence getParagraphContent(); List getParagraphLines(); List getParagraphEolLengths(); MutableDataHolder getParagraphDataHolder(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy