protected function MarkdownExtra::_stripAbbreviations_callback in Markdown 7
* Callback for stripping abbreviations *
Parameters
array $matches: * @return string
File
- includes/
MarkdownExtra.php, line 1736
Class
- MarkdownExtra
- Markdown Extra Parser Class
Namespace
MichelfCode
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
}