You are here

function MarkdownExtra_Parser::_doDefLists_callback in Markdown 6

Same name and namespace in other branches
  1. 5 markdown.php \MarkdownExtra_Parser::_doDefLists_callback()

File

./markdown.php, line 2824

Class

MarkdownExtra_Parser

Code

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";
}