PHP Class League\CommonMark\HtmlRenderer

Inheritance: implements League\CommonMark\ElementRendererInterface
Datei anzeigen Open project: colinodell/commonmark-php Class Usage Examples

Protected Properties

Property Type Description
$environment Environment

Public Methods

Method Description
__construct ( Environment $environment )
escape ( string $string, boolean $preserveEntities = false ) : string
getOption ( string $option, mixed $default = null ) : mixed
renderBlock ( AbstractBlock $block, boolean $inTightList = false ) : string
renderBlocks ( AbstractBlock[] $blocks, boolean $inTightList = false ) : string
renderInlines ( AbstractInline[] $inlines ) : string

Protected Methods

Method Description
renderInline ( AbstractInline $inline ) : string

Method Details

__construct() public method

public __construct ( Environment $environment )
$environment Environment

escape() public method

public escape ( string $string, boolean $preserveEntities = false ) : string
$string string
$preserveEntities boolean
return string

getOption() public method

public getOption ( string $option, mixed $default = null ) : mixed
$option string
$default mixed
return mixed

renderBlock() public method

public renderBlock ( AbstractBlock $block, boolean $inTightList = false ) : string
$block League\CommonMark\Block\Element\AbstractBlock
$inTightList boolean
return string

renderBlocks() public method

public renderBlocks ( AbstractBlock[] $blocks, boolean $inTightList = false ) : string
$blocks League\CommonMark\Block\Element\AbstractBlock[]
$inTightList boolean
return string

renderInline() protected method

protected renderInline ( AbstractInline $inline ) : string
$inline League\CommonMark\Inline\Element\AbstractInline
return string

renderInlines() public method

public renderInlines ( AbstractInline[] $inlines ) : string
$inlines League\CommonMark\Inline\Element\AbstractInline[]
return string

Property Details

$environment protected_oe property

protected Environment,League\CommonMark $environment
return Environment