function MarkdownExtra_Parser::_stripAbbreviations_callback in Markdown 6
Same name and namespace in other branches
- 5 markdown.php \MarkdownExtra_Parser::_stripAbbreviations_callback()
File
- ./
markdown.php, line 3203
Class
Code
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
}