Class FencedCodeBlockParser

    • Field Detail

      • OPENING_FENCE

        private static final java.util.regex.Pattern OPENING_FENCE
      • CLOSING_FENCE

        private static final java.util.regex.Pattern CLOSING_FENCE
      • fenceChar

        private final char fenceChar
      • fenceLength

        private final int fenceLength
      • fenceIndent

        private final int fenceIndent
      • fenceMarkerIndent

        private final int fenceMarkerIndent
      • matchingCloser

        private final boolean matchingCloser
      • codeContentBlock

        private final boolean codeContentBlock
    • Constructor Detail

      • FencedCodeBlockParser

        public FencedCodeBlockParser​(DataHolder options,
                                     char fenceChar,
                                     int fenceLength,
                                     int fenceIndent,
                                     int fenceMarkerIndent)
    • Method Detail

      • getBlock

        public Block getBlock()
        Returns:
        the block parser's block node instance
      • getFenceIndent

        public int getFenceIndent()
      • getFenceMarkerIndent

        public int getFenceMarkerIndent()
      • tryContinue

        public BlockContinue tryContinue​(ParserState state)
        Description copied from interface: BlockParser
        See if the block parser can continue parsing the current block
        Parameters:
        state - current parsing state
        Returns:
        block continue instance
      • closeBlock

        public void closeBlock​(ParserState state)