Class YamlFrontMatterBlockParser
java.lang.Object
org.commonmark.parser.block.AbstractBlockParser
org.commonmark.ext.front.matter.internal.YamlFrontMatterBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(SourceLine line) Add the part of a line that belongs to this block parser to parse (i.e.getBlock()voidparseInlines(InlineParser inlineParser) private static StringtryContinue(ParserState parserState) Methods inherited from class org.commonmark.parser.block.AbstractBlockParser
addSourceSpan, canContain, canHaveLazyContinuationLines, closeBlock, getDefinitions, isContainer
-
Field Details
-
REGEX_METADATA
-
REGEX_METADATA_LIST
-
REGEX_METADATA_LITERAL
-
REGEX_BEGIN
-
REGEX_END
-
inLiteral
private boolean inLiteral -
currentKey
-
currentValues
-
block
-
-
Constructor Details
-
YamlFrontMatterBlockParser
public YamlFrontMatterBlockParser()
-
-
Method Details
-
getBlock
-
addLine
Description copied from interface:BlockParserAdd the part of a line that belongs to this block parser to parse (i.e. without any container block markers). Note that the line will only include aSourceLine.getSourceSpan()if source spans are enabled for inlines.- Specified by:
addLinein interfaceBlockParser- Overrides:
addLinein classAbstractBlockParser
-
tryContinue
-
parseInlines
- Specified by:
parseInlinesin interfaceBlockParser- Overrides:
parseInlinesin classAbstractBlockParser
-
parseString
-