You are here

function MarkdownExtra_Parser::_processDefListItems_callback_dt in Markdown 6

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

File

./markdown.php, line 2879

Class

MarkdownExtra_Parser

Code

function _processDefListItems_callback_dt($matches) {
  $terms = explode("\n", trim($matches[1]));
  $text = '';
  foreach ($terms as $term) {
    $term = $this
      ->runSpanGamut(trim($term));
    $text .= "\n<dt>" . $term . "</dt>";
  }
  return $text . "\n";
}