PHP Trait cebe\markdown\inline\LinkTrait

This trait conflicts with the HtmlTrait. If both are used together, you have to define a resolution, by defining the HtmlTrait::parseInlineHtml as private so it is not used directly: php use block\HtmlTrait { parseInlineHtml as private parseInlineHtml; } If the method exists it is called internally by this trait. Also make sure to reset references on prepare(): php protected function prepare() { reset references $this->references = []; }
Show file Open project: cebe/markdown

Protected Properties

Property Type Description
$references a list of defined references in this document.

Protected Methods

Method Description
consumeReference ( $lines, $current ) Consume link references
identifyReference ( $line ) references
lookupReference ( $key )
parseImage ( $markdown ) Parses an image indicated by ![.
parseLink ( $markdown ) Parses a link indicated by [.
parseLinkOrImage ( $markdown )
parseLt ( $text ) Parses inline HTML.
renderEmail ( $block )
renderImage ( $block )
renderLink ( $block )
renderUrl ( $block )
replaceEscape ( $text ) : string Remove backslash from escaped characters

Method Details

consumeReference() protected method

Consume link references
protected consumeReference ( $lines, $current )

identifyReference() protected method

references
protected identifyReference ( $line )

lookupReference() protected method

protected lookupReference ( $key )

parseImage() protected method

Parses an image indicated by ![.
protected parseImage ( $markdown )

parseLinkOrImage() protected method

protected parseLinkOrImage ( $markdown )

parseLt() protected method

Parses inline HTML.
protected parseLt ( $text )

renderEmail() protected method

protected renderEmail ( $block )

renderImage() protected method

protected renderImage ( $block )

renderUrl() protected method

protected renderUrl ( $block )

replaceEscape() protected method

Remove backslash from escaped characters
protected replaceEscape ( $text ) : string
$text
return string

Property Details

$references protected property

a list of defined references in this document.
protected $references