HtmlRenderer
in package
implements
ElementRendererInterface
Renders a parsed AST to HTML
Interfaces, Classes and Traits
- ElementRendererInterface
- Renders a parsed AST to a string representation
Table of Contents
- $environment : EnvironmentInterface
- __construct() : mixed
- getOption() : mixed|null
- renderBlock() : string
- renderBlocks() : string
- renderInline() : string
- renderInlines() : string
Properties
$environment
protected
EnvironmentInterface
$environment
Methods
__construct()
public
__construct(EnvironmentInterface $environment) : mixed
Parameters
- $environment : EnvironmentInterface
Return values
mixed —getOption()
public
getOption(string $option[, mixed $default = null ]) : mixed|null
Parameters
- $option : string
- $default : mixed = null
Return values
mixed|null —renderBlock()
public
renderBlock(AbstractBlock $block[, bool $inTightList = false ]) : string
Parameters
- $block : AbstractBlock
- $inTightList : bool = false
Tags
Return values
string —renderBlocks()
public
renderBlocks(array<string|int, AbstractBlock> $blocks[, bool $inTightList = false ]) : string
Parameters
- $blocks : array<string|int, AbstractBlock>
- $inTightList : bool = false
Return values
string —renderInline()
public
renderInline(AbstractInline $inline) : string
Parameters
- $inline : AbstractInline
Tags
Return values
string —renderInlines()
public
renderInlines(array<string|int, AbstractInline> $inlines) : string
Parameters
- $inlines : array<string|int, AbstractInline>