Class TableParagraphPreProcessor
java.lang.Object
com.vladsch.flexmark.ext.tables.internal.TableParagraphPreProcessor
- All Implemented Interfaces:
ParagraphPreProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TableParserOptions
private static BitSet
private static HashMap<Character,
CharacterNodeFactory> private static HashMap<Character,
CharacterNodeFactory> private static BitSet
(package private) Pattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncleanUpInlinedSeparators
(InlineParser inlineParser, TableRow tableRow, List<Node> sepList) static ParagraphPreProcessorFactory
Factory()
private static TableCell.Alignment
getAlignment
(boolean left, boolean right) static Pattern
getTableHeaderSeparator
(int minColumnDashes, String intellijDummyIdentifier) private List<TableCell.Alignment>
parseAlignment
(BasedSequence separatorLine) int
preProcessBlock
(Paragraph block, ParserState state) Process Paragraph Content on closing of the paragraph block to removeIndex non-text lines.private static List<BasedSequence>
split
(BasedSequence input, boolean columnSpans, boolean wantPipes)
-
Field Details
-
pipeCharacters
-
separatorCharacters
-
pipeNodeMap
-
pipeIntelliJNodeMap
-
options
-
TABLE_HEADER_SEPARATOR
Pattern TABLE_HEADER_SEPARATOR
-
-
Constructor Details
-
TableParagraphPreProcessor
-
-
Method Details
-
Factory
-
getTableHeaderSeparator
-
preProcessBlock
Description copied from interface:ParagraphPreProcessor
Process 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:
preProcessBlock
in interfaceParagraphPreProcessor
- Parameters:
block
- paragraph node to processstate
- parser state- Returns:
- number of characters processed from the start of the block
-
cleanUpInlinedSeparators
-
parseAlignment
-
split
private static List<BasedSequence> split(BasedSequence input, boolean columnSpans, boolean wantPipes) -
getAlignment
-