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 TypeMethodDescriptionvoid
addLine
(SourceLine line) Add the part of a line that belongs to this block parser to parse (i.e.getBlock()
void
parseInlines
(InlineParser inlineParser) private static String
tryContinue
(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:BlockParser
Add 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:
addLine
in interfaceBlockParser
- Overrides:
addLine
in classAbstractBlockParser
-
tryContinue
-
parseInlines
- Specified by:
parseInlines
in interfaceBlockParser
- Overrides:
parseInlines
in classAbstractBlockParser
-
parseString
-