Interface FrontMatterParser
- All Known Implementing Classes:
RawContentParser,YamlSubsetParser
public interface FrontMatterParser
Parses the content of the front matter block between `---` separators. The implementations should
add at least 1 child node to
YamlFrontMatterBlock to store the result of the parsing.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptiononEndingSeparator(YamlFrontMatterBlock block, org.commonmark.parser.SourceLine separator) Notifies about finding the line with the ending separator (`---` or `...`, without initial whitespace).voidonNextLine(YamlFrontMatterBlock block, org.commonmark.parser.SourceLine line)
-
Method Details
-
onNextLine
-
onEndingSeparator
FrontMatterParser.SeparatorRole onEndingSeparator(YamlFrontMatterBlock block, org.commonmark.parser.SourceLine separator) Notifies about finding the line with the ending separator (`---` or `...`, without initial whitespace). Advanced parsers may be able to determine that the separator is a part of the single-/double-quoted multiline string and returnFrontMatterParser.SeparatorRole.CONTENTto include it in the front matter content. In this case, front matter parsing continues until finding another separator. To end the parsing, returnFrontMatterParser.SeparatorRole.BLOCK_END.- Parameters:
block- Main block nodeseparator- `---` or `...`- Returns:
- Separator role: block end or the part of the front matter content
-