You are here

function MarkdownExtra_Parser::_doHeaders_callback_atx in Markdown 6

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

Overrides Markdown_Parser::_doHeaders_callback_atx

File

./markdown.php, line 2643

Class

MarkdownExtra_Parser

Code

function _doHeaders_callback_atx($matches) {
  $level = strlen($matches[1]);
  $attr = $this
    ->doExtraAttributes("h{$level}", $dummy =& $matches[3]);
  $block = "<h{$level}{$attr}>" . $this
    ->runSpanGamut($matches[2]) . "</h{$level}>";
  return "\n" . $this
    ->hashBlock($block) . "\n\n";
}