Class JekyllFrontMatterBlockParser

java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.jekyll.front.matter.internal.JekyllFrontMatterBlockParser
All Implemented Interfaces:
BlockParser

public class JekyllFrontMatterBlockParser extends AbstractBlockParser
  • Field Details

    • JEKYLL_FRONT_MATTER_BLOCK_START

      static final Pattern JEKYLL_FRONT_MATTER_BLOCK_START
    • JEKYLL_FRONT_MATTER_BLOCK_END

      static final Pattern JEKYLL_FRONT_MATTER_BLOCK_END
    • block

      private final JekyllFrontMatterBlock block
    • content

      private BlockContent content
    • inYAMLBlock

      private boolean inYAMLBlock
  • Constructor Details

  • Method Details

    • getBlock

      public Block getBlock()
      Returns:
      the block parser's block node instance
    • 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, 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)
    • parseInlines

      public void parseInlines(InlineParser inlineParser)
      Description copied from interface: BlockParser
      Do inline processing for the block content using the given inline parser interface
      Specified by:
      parseInlines in interface BlockParser
      Overrides:
      parseInlines in class AbstractBlockParser
      Parameters:
      inlineParser - instance of inline parser