Class RawContentParser
java.lang.Object
org.commonmark.ext.front.matter.parser.RawContentParser
- All Implemented Interfaces:
FrontMatterParser
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.commonmark.ext.front.matter.parser.FrontMatterParser
FrontMatterParser.SeparatorRole -
Constructor Summary
Constructors -
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)
-
Constructor Details
-
RawContentParser
public RawContentParser()
-
-
Method Details
-
onNextLine
- Specified by:
onNextLinein interfaceFrontMatterParser
-
onEndingSeparator
public FrontMatterParser.SeparatorRole onEndingSeparator(YamlFrontMatterBlock block, org.commonmark.parser.SourceLine separator) Description copied from interface:FrontMatterParserNotifies 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.- Specified by:
onEndingSeparatorin interfaceFrontMatterParser- Parameters:
block- Main block nodeseparator- `---` or `...`- Returns:
- Separator role: block end or the part of the front matter content
-