You are here

protected function MarkdownExtra::_processDefListItems_callback_dt in Markdown 7

* Callback for <dt> elements in definition lists *

Parameters

array $matches: * @return string

File

includes/MarkdownExtra.php, line 1362

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

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