function Markdown_Parser::_doHeaders_callback_atx in Markdown 5
Same name and namespace in other branches
- 6 markdown.php \Markdown_Parser::_doHeaders_callback_atx()
1 method overrides Markdown_Parser::_doHeaders_callback_atx()
File
- ./
markdown.php, line 918
Class
Code
function _doHeaders_callback_atx($matches) {
$level = strlen($matches[1]);
$block = "<h{$level}>" . $this
->runSpanGamut($matches[2]) . "</h{$level}>";
return "\n" . $this
->hashBlock($block) . "\n\n";
}