Class EnumeratedReferenceParagraphPreProcessor
java.lang.Object
com.vladsch.flexmark.ext.enumerated.reference.internal.EnumeratedReferenceParagraphPreProcessor
- All Implemented Interfaces:
ParagraphPreProcessor
public class EnumeratedReferenceParagraphPreProcessor
extends Object
implements ParagraphPreProcessor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static Pattern(package private) static Stringprivate final EnumeratedReferenceRepositoryprivate final EnumeratedReferenceOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParagraphPreProcessorFactoryFactory()intpreProcessBlock(Paragraph block, ParserState state) Process Paragraph Content on closing of the paragraph block to removeIndex non-text lines.
-
Field Details
-
ENUM_REF_ID
-
ENUM_REF_DEF_PARAGRAPH_PATTERN
-
options
-
enumeratedReferences
-
-
Constructor Details
-
EnumeratedReferenceParagraphPreProcessor
EnumeratedReferenceParagraphPreProcessor(DataHolder options)
-
-
Method Details
-
preProcessBlock
Description copied from interface:ParagraphPreProcessorProcess Paragraph Content on closing of the paragraph block to removeIndex non-text lines.This is used by extensions to take leading lines from a paragraph and convert them to other blocks
by Default leading lines that define references are removed and Reference nodes are inserted before.
- Specified by:
preProcessBlockin interfaceParagraphPreProcessor- Parameters:
block- paragraph node to processstate- parser state- Returns:
- number of characters processed from the start of the block
-
Factory
-