protected function MarkdownExtra::_processDefListItems_callback_dd in Express 8
* Callback for <dd> elements in definition lists *
Parameters
array $matches: * @return string
File
- vendor/
michelf/ php-markdown/ Michelf/ MarkdownExtra.php, line 1377
Class
- MarkdownExtra
- Markdown Extra Parser Class
Namespace
MichelfCode
protected function _processDefListItems_callback_dd($matches) {
$leading_line = $matches[1];
$marker_space = $matches[2];
$def = $matches[3];
if ($leading_line || preg_match('/\\n{2,}/', $def)) {
// Replace marker with the appropriate whitespace indentation
$def = str_repeat(' ', strlen($marker_space)) . $def;
$def = $this
->runBlockGamut($this
->outdent($def . "\n\n"));
$def = "\n" . $def . "\n";
}
else {
$def = rtrim($def);
$def = $this
->runSpanGamut($this
->outdent($def));
}
return "\n<dd>" . $def . "</dd>\n";
}