PHP Interface League\CommonMark\ElementRendererInterface

Afficher le fichier Open project: colinodell/commonmark-php Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

public escape ( string $string, boolean $preserveEntities = false ) : string
$string string
$preserveEntities boolean
Résultat string

getOption() public méthode

public getOption ( string $option, mixed $default = null ) : mixed
$option string
$default mixed
Résultat mixed

renderBlock() public méthode

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

renderBlocks() public méthode

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

renderInlines() public méthode

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