Top Description Fields Methods
com.vladsch.flexmark.html

public Interface RendererBuilder

extends DataHolder
Known Direct Implementers
com.vladsch.flexmark.html.HtmlRenderer.Builder
Imports
com.vladsch.flexmark.html.renderer.HeaderIdGeneratorFactory, com.vladsch.flexmark.util.data.DataHolder, org.jetbrains.annotations.NotNull

Extension point for RenderingExtensions that only provide attributes, link resolvers or html id generators

Field Summary

Inherited from com.vladsch.flexmark.util.data.DataHolder:
NULL

Method Summary

Modifier and TypeMethod and Description
public @NotNull RendererBuilder

Returns:

this
attributeProviderFactory
(@NotNull AttributeProviderFactory
the attribute provider factory to add
attributeProviderFactory
)

Add an attribute provider for adding/changing HTML attributes to the rendered tags.

public @NotNull RendererBuilder

Returns:

this
contentResolverFactory
(@NotNull UriContentResolverFactory
the factory for creating a node renderer
contentResolverFactory
)

Add a factory for resolving URI to content

public @NotNull RendererBuilder

Returns:

this
htmlIdGeneratorFactory
(@NotNull HeaderIdGeneratorFactory
the factory for generating header tag id attributes
htmlIdGeneratorFactory
)

Add a factory for generating the header id attribute from the header's text

public @NotNull RendererBuilder

Returns:

this
linkResolverFactory
(@NotNull LinkResolverFactory
the factory for creating a node renderer
linkResolverFactory
)

Add a factory for resolving links in markdown to URI used in rendering

Inherited from com.vladsch.flexmark.util.data.DataHolder:
containsgetgetAllgetKeysgetOrComputesetIntoDataSettoImmutabletoMutable

Method Detail

attributeProviderFactoryback to summary
public @NotNull RendererBuilder attributeProviderFactory(@NotNull AttributeProviderFactory attributeProviderFactory)

Add an attribute provider for adding/changing HTML attributes to the rendered tags.

Parameters
attributeProviderFactory:@NotNull AttributeProviderFactory

the attribute provider factory to add

Returns:@NotNull RendererBuilder

this

Annotations
@NotNull
contentResolverFactoryback to summary
public @NotNull RendererBuilder contentResolverFactory(@NotNull UriContentResolverFactory contentResolverFactory)

Add a factory for resolving URI to content

Parameters
contentResolverFactory:@NotNull UriContentResolverFactory

the factory for creating a node renderer

Returns:@NotNull RendererBuilder

this

Annotations
@NotNull
htmlIdGeneratorFactoryback to summary
public @NotNull RendererBuilder htmlIdGeneratorFactory(@NotNull HeaderIdGeneratorFactory htmlIdGeneratorFactory)

Add a factory for generating the header id attribute from the header's text

Parameters
htmlIdGeneratorFactory:@NotNull HeaderIdGeneratorFactory

the factory for generating header tag id attributes

Returns:@NotNull RendererBuilder

this

Annotations
@NotNull
linkResolverFactoryback to summary
public @NotNull RendererBuilder linkResolverFactory(@NotNull LinkResolverFactory linkResolverFactory)

Add a factory for resolving links in markdown to URI used in rendering

Parameters
linkResolverFactory:@NotNull LinkResolverFactory

the factory for creating a node renderer

Returns:@NotNull RendererBuilder

this

Annotations
@NotNull