protected function Markdown::_doImages_inline_callback in Markdown 7
* Callback to parse inline image tags *
Parameters
array $matches: * @return string
1 method overrides Markdown::_doImages_inline_callback()
- MarkdownExtra::_doImages_inline_callback in includes/
MarkdownExtra.php  - * Callback for inline images *
 
File
- includes/
Markdown.php, line 881  
Class
- Markdown
 - Markdown Parser Class
 
Namespace
MichelfCode
protected function _doImages_inline_callback($matches) {
  $whole_match = $matches[1];
  $alt_text = $matches[2];
  $url = $matches[3] == '' ? $matches[4] : $matches[3];
  $title =& $matches[7];
  $alt_text = $this
    ->encodeAttribute($alt_text);
  $url = $this
    ->encodeURLAttribute($url);
  $result = "<img src=\"{$url}\" alt=\"{$alt_text}\"";
  if (isset($title)) {
    $title = $this
      ->encodeAttribute($title);
    $result .= " title=\"{$title}\"";
    // $title already quoted
  }
  $result .= $this->empty_element_suffix;
  return $this
    ->hashPart($result);
}