Class TableParagraphPreProcessor

    • Field Detail

      • pipeCharacters

        private static java.util.BitSet pipeCharacters
      • separatorCharacters

        private static java.util.BitSet separatorCharacters
      • pipeNodeMap

        private static java.util.HashMap<java.lang.Character,​CharacterNodeFactory> pipeNodeMap
      • pipeIntelliJNodeMap

        private static java.util.HashMap<java.lang.Character,​CharacterNodeFactory> pipeIntelliJNodeMap
      • TABLE_HEADER_SEPARATOR

        java.util.regex.Pattern TABLE_HEADER_SEPARATOR
    • Constructor Detail

      • TableParagraphPreProcessor

        private TableParagraphPreProcessor​(DataHolder options)
    • Method Detail

      • getTableHeaderSeparator

        public static java.util.regex.Pattern getTableHeaderSeparator​(int minColumnDashes,
                                                                      java.lang.String intellijDummyIdentifier)
      • preProcessBlock

        public int preProcessBlock​(Paragraph block,
                                   ParserState state)
        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 interface ParagraphPreProcessor
        Parameters:
        block - paragraph node to process
        state - parser state
        Returns:
        number of characters processed from the start of the block
      • cleanUpInlinedSeparators

        java.util.List<Node> cleanUpInlinedSeparators​(InlineParser inlineParser,
                                                      TableRow tableRow,
                                                      java.util.List<Node> sepList)
      • getAlignment

        private static TableCell.Alignment getAlignment​(boolean left,
                                                        boolean right)