You are here

protected function MarkdownExtra::_processDefListItems_callback_dt in Express 8

* Callback for <dt> elements in definition lists *

Parameters

array $matches: * @return string

File

vendor/michelf/php-markdown/Michelf/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";
}