You are here

protected function MarkdownExtra::_doDefLists_callback in Express 8

* Callback for processing definition lists *

Parameters

array $matches: * @return string

File

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

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

protected function _doDefLists_callback($matches) {

  // Re-usable patterns to match list item bullets and number markers:
  $list = $matches[1];

  // Turn double returns into triple returns, so that we can make a
  // paragraph for the last item in a list, if necessary:
  $result = trim($this
    ->processDefListItems($list));
  $result = "<dl>\n" . $result . "\n</dl>";
  return $this
    ->hashBlock($result) . "\n\n";
}