Class YamlFrontMatterExtension
java.lang.Object
com.vladsch.flexmark.ext.yaml.front.matter.YamlFrontMatterExtension
- All Implemented Interfaces:
Formatter.FormatterExtension, Parser.ParserExtension, Extension
public class YamlFrontMatterExtension
extends Object
implements Parser.ParserExtension, Formatter.FormatterExtension
Extension for YAML-like metadata.
Create it with create() and then configure it on the builders
The parsed metadata is turned into YamlFrontMatterNode. You can access the metadata using AbstractYamlFrontMatterVisitor.
-
Field Summary
Fields inherited from interface Extension
EMPTY_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic YamlFrontMatterExtensioncreate()voidextend(Formatter.Builder formatterBuilder) voidextend(Parser.Builder parserBuilder) This method is called on all extensions so that they can register their custom processorsvoidparserOptions(MutableDataHolder options) This method is called first on all extensions so that they can adjust the options that must be common to all extensions.voidrendererOptions(MutableDataHolder options) This method is called first on all extensions so that they can adjust the options.
-
Constructor Details
-
YamlFrontMatterExtension
private YamlFrontMatterExtension()
-
-
Method Details
-
rendererOptions
Description copied from interface:Formatter.FormatterExtensionThis method is called first on all extensions so that they can adjust the options.- Specified by:
rendererOptionsin interfaceFormatter.FormatterExtension- Parameters:
options- option set that will be used for the builder
-
extend
- Specified by:
extendin interfaceFormatter.FormatterExtension
-
extend
Description copied from interface:Parser.ParserExtensionThis method is called on all extensions so that they can register their custom processors- Specified by:
extendin interfaceParser.ParserExtension- Parameters:
parserBuilder- parser builder with which to register extensions- See Also:
-
parserOptions
Description copied from interface:Parser.ParserExtensionThis method is called first on all extensions so that they can adjust the options that must be common to all extensions.- Specified by:
parserOptionsin interfaceParser.ParserExtension- Parameters:
options- option set that will be used for the builder
-
create
-