You are here

protected function MarkdownExtra::_stripAbbreviations_callback in Express 8

* Callback for stripping abbreviations *

Parameters

array $matches: * @return string

File

vendor/michelf/php-markdown/Michelf/MarkdownExtra.php, line 1736

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

protected function _stripAbbreviations_callback($matches) {
  $abbr_word = $matches[1];
  $abbr_desc = $matches[2];
  if ($this->abbr_word_re) {
    $this->abbr_word_re .= '|';
  }
  $this->abbr_word_re .= preg_quote($abbr_word);
  $this->abbr_desciptions[$abbr_word] = trim($abbr_desc);
  return '';

  // String that will replace the block
}