Package com.vladsch.flexmark.html
Interface RendererBuilder
- All Superinterfaces:
DataHolder
,MutableDataSetter
- All Known Implementing Classes:
HtmlRenderer.Builder
Extension point for RenderingExtensions that only provide attributes, link resolvers or html id generators
-
Field Summary
Fields inherited from interface com.vladsch.flexmark.util.data.DataHolder
NULL
-
Method Summary
Modifier and TypeMethodDescription@NotNull RendererBuilder
attributeProviderFactory
(@NotNull AttributeProviderFactory attributeProviderFactory) Add an attribute provider for adding/changing HTML attributes to the rendered tags.@NotNull RendererBuilder
contentResolverFactory
(@NotNull UriContentResolverFactory contentResolverFactory) Add a factory for resolving URI to content@NotNull RendererBuilder
htmlIdGeneratorFactory
(@NotNull HeaderIdGeneratorFactory htmlIdGeneratorFactory) Add a factory for generating the header id attribute from the header's text@NotNull RendererBuilder
linkResolverFactory
(@NotNull LinkResolverFactory linkResolverFactory) Add a factory for resolving links in markdown to URI used in renderingMethods inherited from interface com.vladsch.flexmark.util.data.DataHolder
contains, get, getAll, getKeys, getOrCompute, setIn, toDataSet, toImmutable, toMutable
-
Method Details
-
attributeProviderFactory
@NotNull @NotNull RendererBuilder attributeProviderFactory(@NotNull @NotNull AttributeProviderFactory attributeProviderFactory) Add an attribute provider for adding/changing HTML attributes to the rendered tags.- Parameters:
attributeProviderFactory
- the attribute provider factory to add- Returns:
this
-
linkResolverFactory
@NotNull @NotNull RendererBuilder linkResolverFactory(@NotNull @NotNull LinkResolverFactory linkResolverFactory) Add a factory for resolving links in markdown to URI used in rendering- Parameters:
linkResolverFactory
- the factory for creating a node renderer- Returns:
this
-
contentResolverFactory
@NotNull @NotNull RendererBuilder contentResolverFactory(@NotNull @NotNull UriContentResolverFactory contentResolverFactory) Add a factory for resolving URI to content- Parameters:
contentResolverFactory
- the factory for creating a node renderer- Returns:
this
-
htmlIdGeneratorFactory
@NotNull @NotNull RendererBuilder htmlIdGeneratorFactory(@NotNull @NotNull HeaderIdGeneratorFactory htmlIdGeneratorFactory) Add a factory for generating the header id attribute from the header's text- Parameters:
htmlIdGeneratorFactory
- the factory for generating header tag id attributes- Returns:
this
-