PHP Interface League\CommonMark\ElementRendererInterface

Datei anzeigen Open project: colinodell/commonmark-php Interface Usage Examples

Public Methods

Method Description
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

Method Details

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

renderInlines() public method

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