com.vladsch.flexmark.parser.block.MatchedBlockParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark Show documentation
Show all versions of flexmark Show documentation
Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)
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