You are here

function MarkdownExtra_Parser::_doHeaders_callback_atx in Markdown 5

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

Overrides Markdown_Parser::_doHeaders_callback_atx

File

./markdown.php, line 2237

Class

MarkdownExtra_Parser

Code

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