Class FencedCodeBlockParser

    • Constructor Detail

      • FencedCodeBlockParser

        public FencedCodeBlockParser​(com.vladsch.flexmark.util.data.DataHolder options,
                                     char fenceChar,
                                     int fenceLength,
                                     int fenceIndent,
                                     int fenceMarkerIndent)
    • Method Detail

      • getBlock

        public com.vladsch.flexmark.util.ast.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
      • addLine

        public void addLine​(ParserState state,
                            com.vladsch.flexmark.util.sequence.BasedSequence line)
        Description copied from interface: BlockParser
        Add another line to the block
        Specified by:
        addLine in interface BlockParser
        Overrides:
        addLine in class AbstractBlockParser
        Parameters:
        state - parser state
        line - line sequence
      • closeBlock

        public void closeBlock​(ParserState state)